Ticket #55 (new enhancement)

Opened 2 years ago

Last modified 2 years ago

Add autolinking of libs on Windows

Reported by: marcusl Assigned to: unassigned
Priority: major Milestone: 2.0 Release
Component: Build Version:
Keywords: Cc:
Completion:

Description

See how boost does this. It's pretty neat as it avoids a lot of confusion with linking to wrong libraries (debug/relaese & dynamic/static).

Change History

10/15/06 14:15:33 changed by marcusl

For reference, this is how it could look if we do something really simple. (i.e. not full-blown versioning like boost):

In OSGWindowGLUT.h:

#ifdef _DEBUG
#pragma comment(lib, "OSGBaseD.lib")
#pragma comment(lib, "OSGSystemD.lib")
#pragma comment(lib, "OSGWindowGLUTD.lib")
#else
#pragma comment(lib, "OSGBase.lib")
#pragma comment(lib, "OSGSystem.lib")
#pragma comment(lib, "OSGWindowGLUT.lib")
#endif

#pragma comment(lib, "Winmm.lib.")