Using Irrlicht with Visual C++ 2010
Using Irrlicht with Visual C++ 2010
Hey,
I want to use Irllicht with Visual C++ 2010 but I have problems.
I had a look at the first tutorial and that way isnt possible in 2010 or I´m too stupid to find the options menu.
I tried to set the path to irrlich in the project properties but that don´t work
I don´t find any information for this with google
Hope someone can help me
I want to use Irllicht with Visual C++ 2010 but I have problems.
I had a look at the first tutorial and that way isnt possible in 2010 or I´m too stupid to find the options menu.
I tried to set the path to irrlich in the project properties but that don´t work
I don´t find any information for this with google
Hope someone can help me
-
- Posts: 39
- Joined: Mon Sep 06, 2010 5:09 pm
- Location: Italy
Are you sure you have set up directories correctly?
After you've created your project, you have to right-click on your project, select properties and under configuration properties select VC++ Directories and set your include and lib paths. Then click apply and every should be fine.
If you've done all correctly, then could you post the compiler/application errors?
After you've created your project, you have to right-click on your project, select properties and under configuration properties select VC++ Directories and set your include and lib paths. Then click apply and every should be fine.
If you've done all correctly, then could you post the compiler/application errors?
-
- Posts: 39
- Joined: Mon Sep 06, 2010 5:09 pm
- Location: Italy
This error comes out when you attempt to make for example an irrlicht application starting with a Win32 application. What you need to do is make a console application.1>MSVCRTD.lib(crtexew.obj) : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_WinMain@16" in Funktion "___tmainCRTStartup".
Then for the directories, click on includeverzeichnisse ,select <Edit...>(or the german world for it), add an new folder and put in it your irrlicht include path.
Do the same for the libs.(Bibliotheksverzeichnisse-><Edit...>->newfolder->irrlicht lib folder(Win32-visualstudio)).
-
- Posts: 39
- Joined: Mon Sep 06, 2010 5:09 pm
- Location: Italy
Have you defined the int main() function in your project?
Also googled a bit and i found this:
Also googled a bit and i found this:
THE ERRORs if you SET subsystem to CONSOLE is:
MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup
OR THE ERROR if you SET subsystem to WINDOWS is:
MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function _WinMainCRTStartup
The error means you do not have the main visible to the the linker. But you are editing the file with main or WinMain in the VS Editor, so what is wrong?
Visual Studio can be used as a stand alone editor giving you the illusion that the stuff you are editing can and should be compilable. So the solution is simple you failed to add the file you are editing to the project.
Right click on solution name->Add->Existing Item->file with main
-
- Posts: 126
- Joined: Wed Sep 29, 2010 8:23 pm