Hi,
Im new to C++ and to Irrlicht engine. Ive been working on the Hello World tutorial today. I wrote all the code. Im guessing this isnt a problem with my code and some setting that I having to change in Visual C++ (version 6.0). Here is the error message I get when I try to compile
I still get the error. It compiles fine (sorry bout the first post saying it didnt compile), its when I try to build the exe I get that message. Ive tried making a new empty project and then adding the cpp file in..same thing. Sorry for being such a pain.
If you're starting a new project then you must modify some of the settings.
in VC++ select your project on the left (below workspace), right click on it and select settings. Go to the 3rd tab and in "preprocessor definitions" paste this:
WIN32,NDEBUG,_CONSOLE,_MBCS
the on the same tab, on "project options", paste this:
You can also try adding the /nodefaultlib:"LIBCD" to the project options. Also if i remember right you need to make sure you have your project is selected as Win32 app if you try to call WinMain. Calling winmain witht he console project will give this error if my memory serves me, so if you are calling WinMain in a console project just change it to int main(). Hope this helps.
Thanks a lot for that guys Really valuable info to me. It all compiles and builds now. Now it cant find the Irrlicht.dll file. Ive checked in the options 10 times...Ive definetley put the correct path in. Is there another snag in this?
Sorry for my extreme lack of knowledge, Im trying my best to learn.
To find the irrlicht.dll file, you need to put the file in the same directory as the exe file, or becuase you're using VC++ the exe file is in the Debug folder, put the dll file in the one above that.
So, if you have "c:\helloWorld" and the exe file gets compiled into "c:\helloWorld\Debug" then the dll goes into "c:\helloWorld", but this is only if you are running from within VC++. If you are just using Explorer and double clicking on the exe, then the dll needs to be in the same directory as the exe.
"The reputation of a thousand years may be determined by the conduct of one hour."
-Japanese Proverb
Woo hoo it worked Thanks a lot for that. lol at first I tried to copy the .lib file and then realised I needed the .dll file. Well I learn well from mistakes and thats really what these Hello World apps are for. Thanks for the help guys I really appreciate it.