Compiling in MS Visual C++ Express 2008
Compiling in MS Visual C++ Express 2008
Hi!
I am an absolute newbie, I am just learning the C++ language(of course I have programming experience but in VB.NET). I tried to compile a demo which I downloaded with the engine, but it did not want to compile it, header files were missing. I replaced them, but the it said that there are over 100 errors in the code. Can anybody help? I'm sorry if this question has been asked somewhere else too.
I am an absolute newbie, I am just learning the C++ language(of course I have programming experience but in VB.NET). I tried to compile a demo which I downloaded with the engine, but it did not want to compile it, header files were missing. I replaced them, but the it said that there are over 100 errors in the code. Can anybody help? I'm sorry if this question has been asked somewhere else too.
-
- Posts: 45
- Joined: Thu Apr 24, 2008 7:54 pm
- Location: Wickede, Germany
^ on the other hand, if you never start you never get started...
Tutorial 1 Hello World shows how to set up a very old of version of visual studio and even if it looks different today the basics are the same. Give visual studio the path to the includes and libraries... The turorials are a recommendable way to start anyway, so maybe look there.
Tutorial 1 Hello World shows how to set up a very old of version of visual studio and even if it looks different today the basics are the same. Give visual studio the path to the includes and libraries... The turorials are a recommendable way to start anyway, so maybe look there.
-
- Posts: 102
- Joined: Sat Jan 17, 2009 4:33 am
- Location: Pune
- Contact:
i'm using MinGW 5.1.4 as my developemnt environment. When i try to compile the source code it gives me crtdbg.h not found error. I then modified the source code of irrlicht.cpp to skip the check but only a libitrrlicht.a file is produced. I need a DLL file which should hav DX8, 9 , OPENGL, and other engine support in it. the DLL which comes for win32 GCC supports only OpenGL!
-I then tried using the dlltool of MinGW to produce a dll using a .def file - one of the output file of source code compilation. But i get DLL refernce error.
-I even tried using reimp to convert irrlicht.lib to libIrrlicht.a , but again get the same entry point error.
Can any one help me with the compilation problem?
-I then tried using the dlltool of MinGW to produce a dll using a .def file - one of the output file of source code compilation. But i get DLL refernce error.
-I even tried using reimp to convert irrlicht.lib to libIrrlicht.a , but again get the same entry point error.
Can any one help me with the compilation problem?
-
- Posts: 102
- Joined: Sat Jan 17, 2009 4:33 am
- Location: Pune
- Contact:
You need macros, like __GNUWIN32__, for your MingW gcc compiler.abhishekdey1985 wrote:i'm using MinGW 5.1.4 as my developemnt environment. When i try to compile the source code it gives me crtdbg.h not found error.
abhishekdey1985 wrote: I then modified the source code of irrlicht.cpp to skip the check but only a libitrrlicht.a file is produced.
If I were you, I would not do that. Sooner or later you will find conflict problems or something like that.
I wrote a small tool called irrBuild, it can build DLL using Code::Blocks with MingW gcc compiler. If you do not want to use any IDE, I think you can export necessary Makefiles from Code::Blocks. To use that tool, just double-click the script/bat file and you can build all the library, examples and testsuite with different configuration (static/shared, release/debug) using the generated solution/workspace/makefile.abhishekdey1985 wrote: I need a DLL file which should hav DX8, 9 , OPENGL, and other engine support in it. the DLL which comes for win32 GCC supports only OpenGL!
-I then tried using the dlltool of MinGW to produce a dll using a .def file - one of the output file of source code compilation. But i get DLL refernce error.
-I even tried using reimp to convert irrlicht.lib to libIrrlicht.a , but again get the same entry point error.
Can any one help me with the compilation problem?
Download it here. And search this forum you will find an more detailed introduction in my mind.
Hope you can save your time for other interesting/important things.
Regards,
Jiang
-
- Posts: 102
- Joined: Sat Jan 17, 2009 4:33 am
- Location: Pune
- Contact:
-
- Posts: 102
- Joined: Sat Jan 17, 2009 4:33 am
- Location: Pune
- Contact: