linking problem

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Notsosuperhero
Posts: 10
Joined: Sat Dec 18, 2004 3:22 am
Location: NY
Contact:

linking problem

Post by Notsosuperhero »

I've went into the options->directories and added the lib folder and the include folder and all that but it still says that it can't find the irrlicht.lib I've tried using #pragma comment and all that but still nothing. I'm using M$ VC++ .NET 2003. Please Help :(
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

In your project settings, under Linker->General. Add the path to the directory where Irrlicht.lib resides to "Additional Library Directories"

Or you could go to Tools->Options. Select the Projects group and the VC++ Directories. In the upper right, the combo box labeled - "Show Directories For", change it to Library Files and then add the directory to Irrlicht.lib there.

Setting it in your project, will only work for that project. Setting it in Tools->Options, will set it for every C++ project/solution in VS.
Notsosuperhero
Posts: 10
Joined: Sat Dec 18, 2004 3:22 am
Location: NY
Contact:

Post by Notsosuperhero »

Okay that solved now when I try to run the program it says that Irrlicht.dll was not found. hmm? :cry:
The only thing that won't fail you in life is death.
killer7
Posts: 14
Joined: Fri Dec 10, 2004 2:42 am
Location: Chicago, USA

Post by killer7 »

take the dll and put it in the same folder as the exe.
Know modeling?

Got spare time?

Email me: moe@cgispy.com
Notsosuperhero
Posts: 10
Joined: Sat Dec 18, 2004 3:22 am
Location: NY
Contact:

Post by Notsosuperhero »

Thank you very much you've been a great help
The only thing that won't fail you in life is death.
Notsosuperhero
Posts: 10
Joined: Sat Dec 18, 2004 3:22 am
Location: NY
Contact:

Post by Notsosuperhero »

What .lib or whatever do I need to include besides the Irrlicht.lib. When I compile a program Linker error 2019 pops up and says
JJDemo error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup
The only thing that won't fail you in life is death.
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

Your project is not setup properly to use WinMain ( for GUI win app ). either use the standard main ( for console apps ) or configure your project properly for gui win app.
Notsosuperhero
Posts: 10
Joined: Sat Dec 18, 2004 3:22 am
Location: NY
Contact:

Post by Notsosuperhero »

I am using main(console app) though

NEVERMIND I FINALLY FIGURED IT OUT :D :D
The only thing that won't fail you in life is death.
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

I'm curious, what was wrong?
Notsosuperhero
Posts: 10
Joined: Sat Dec 18, 2004 3:22 am
Location: NY
Contact:

Post by Notsosuperhero »

I forgot to to include WinMain I think(I know pretty dumb huh) and I probably didn't choose Win32 app to start with(another dumb mistake).
I was really tired and out of it when I did this though.
The only thing that won't fail you in life is death.
Post Reply