How correct compile Irr and SDL in VS2005?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Jekano
Posts: 7
Joined: Thu Oct 12, 2006 9:21 pm

How correct compile Irr and SDL in VS2005?

Post by Jekano »

I try compile Irrlicht + SDL.
Lib and include directory correct, libs added to project, dll copy to directory with project.
I can compile irrlicht program, and can compile SDL program.

In documentation SDL says:
Set the C runtime to "Multi-threaded DLL" in the menu: Project|Settings|C/C++ tab|Code Generation|Runtime Library

Irrlicht correct compile with:
"Multi-threaded Debug (/MTd)"

When I try recompile irrlicht with Runtime Library = "Multi-threaded DLL" I see MessageBox: "Program can't start, becouse MSVCP80D.dll not found."

How correct compile Irrlicht and SDL? Which option for Runtime Library and other?
zenaku
Posts: 212
Joined: Tue Jun 07, 2005 11:23 pm

Post by zenaku »

For VC 2005 'multithreaded DLL', you need to copy the redistributable runtimes out of "\program files\Microsoft Visual Studio 8\VC\redist\" and put them in your exe's folder.

Normally, your exe would have an installer app do that for you.

It shouldn't really matter though. You should be able to use Irrlicht 'multithreaded' + SDL 'multithreaded DLL' without issues.

The only time it really matters is if you do a 'new' in the Irrlicht DLL and then do a 'delete' on the same pointer in the SDL DLL. Then you need to use multithreaded DLL in both projects.
-------------------------------------
IrrLua - a Lua binding for Irrlicht
http://irrlua.sourceforge.net/
Post Reply