suggestion : IrrlichD.lib / IrrlichtD.dll
suggestion : IrrlichD.lib / IrrlichtD.dll
hello,
I just compiled Irrlicht for the 1st time (from the trunk) and I'm used to output my debug dlls/libs with a 'D' for the debug version.
So why not naming the debug versions with a D to be able to have both debug and release version in the same folder ?
I will do it locally, but it will be nice to have it in the official build.
Stephane
I just compiled Irrlicht for the 1st time (from the trunk) and I'm used to output my debug dlls/libs with a 'D' for the debug version.
So why not naming the debug versions with a D to be able to have both debug and release version in the same folder ?
I will do it locally, but it will be nice to have it in the official build.
Stephane
-
- Posts: 1186
- Joined: Fri Dec 29, 2006 12:04 am
Re: suggestion : IrrlichD.lib / IrrlichtD.dll
Yeah, good idea. That is how wxWidgets does it, too.
-
- Admin
- Posts: 3590
- Joined: Mon Oct 09, 2006 9:36 am
- Location: Scotland - gonnae no slag aff mah Engleesh
- Contact:
Me too.
[Trivia: the 3rd page of Google image results for "me too" in moderately safe mode throws up an Alyson Hannigan hit]
[Trivia: the 3rd page of Google image results for "me too" in moderately safe mode throws up an Alyson Hannigan hit]
Please upload candidate patches to the tracker.
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
Need help now? IRC to #irrlicht on irc.freenode.net
How To Ask Questions The Smart Way
-
- Posts: 362
- Joined: Sun Dec 16, 2007 9:25 pm
Wow, rofl. (You search for some weird things! )rogerborg wrote:Me too.
[Trivia: the 3rd page of Google image results for "me too" in moderately safe mode throws up an Alyson Hannigan hit]
Post this userbar I made on other websites to show your support for Irrlicht!
http://img147.imageshack.us/img147/1261 ... wernq4.png
http://img147.imageshack.us/img147/1261 ... wernq4.png
if you link with irrlichtD.lib, irrlichtD.dll will be usedMasterGod wrote:If you have both Irrlicht's dll, IrrlichtD.dll and Irrlicht.dll. When you compile your app using Debug build/Release build, how can it use the appropriate dll?
so, in your code :
Code: Select all
#ifdef _DEBUG
#pragma comment(lib, "IrrlichtD.lib")
#else
#pragma comment(lib, "Irrlicht.lib")
#endif
Stephane
Thanks!stephaneR wrote:if you link with irrlichtD.lib, irrlichtD.dll will be usedMasterGod wrote:If you have both Irrlicht's dll, IrrlichtD.dll and Irrlicht.dll. When you compile your app using Debug build/Release build, how can it use the appropriate dll?
so, in your code :Code: Select all
#ifdef _DEBUG #pragma comment(lib, "IrrlichtD.lib") #else #pragma comment(lib, "Irrlicht.lib") #endif
Stephane
Good idea that 'D' thing, thanks for mentioning .
-
- Posts: 362
- Joined: Sun Dec 16, 2007 9:25 pm
Yeah, I always liked doing that.
Post this userbar I made on other websites to show your support for Irrlicht!
http://img147.imageshack.us/img147/1261 ... wernq4.png
http://img147.imageshack.us/img147/1261 ... wernq4.png
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Errr, if this will be kept in the MSVC projects only you can do whatever you want What if you want to debug your app, but not the library? Just create several libraries in different directories and set the lib path properly (or copy the dll to your app's directory if your OS doesn't have an LD_LIBRARY_PATH)
removing the generated irrlichtD.pdb will remove the ability to trace into the debug irrlicht dll.hybrid wrote:What if you want to debug your app, but not the library?
but i always prefer to have everything in debug, so I can trace into the external libraries (i.e. not my code) if something goes wrong.
ex (during dev phase) :
Code: Select all
bool MyFunction()
{
if ( externalLib->DoSomething() == false )
{
//something went wrong
#ifdef _DEBUG
//redo the call to trace into it.
bool retval = externalLib->DoSomething(); //put a breakpoint here to trace into the external lib
#endif
return false;
}
return true;
}
I already had some crazy hours searching a bug when I was linking/using the wrong .lib/.dll. So now I take care of my generated dlls.
And in case I want to be able to trace into a release build, sometimes I also add a "Release with debug info" build configuration
to sum up, usually i have :
<lib>.dll : release dll
<lib>D.dll : debug dll
if i generate static libs :
<lib>S.lib : static release
<lib>SD.lib : static debug
sometimes even more, depending on the projects and needs.
(multithread, multithread dll, release with debug info, etc... )
Stephane
Hallo
I find that actually using seperate folders for debug and release code is the way to go. In many instances you rely on other external libraries as well (both release and debug versions of those). Might it not be better to keep the DLL's named the same, but place them in a Debug or Release folder (you might extend this include other types of builds as well). Using this method, you can keep your debug and release builds completely isolated.
Anton
I find that actually using seperate folders for debug and release code is the way to go. In many instances you rely on other external libraries as well (both release and debug versions of those). Might it not be better to keep the DLL's named the same, but place them in a Debug or Release folder (you might extend this include other types of builds as well). Using this method, you can keep your debug and release builds completely isolated.
Anton