| Issue 5: | Static linkage on VS | |
| Back to list |
Hello, currently there is no support for static linkage on Visual Studio (I mean just including the lib3ds source files into your app/game project file). Kabey fixed this, here is the (simple) patch. Note that he did not add a configuration to the visual studio project, but this could be easily done by you. Here is the patch for it, hope you enjoy: --- trunk/3d/lib3ds/lib3ds.h 2008-06-18 17:07:36 UTC (rev 1020) +++ trunk/3d/lib3ds/lib3ds.h 2008-06-21 17:45:38 UTC (rev 1021) @@ -25,6 +25,8 @@ #ifdef _MSC_VER #ifdef LIB3DS_EXPORTS #define LIB3DSAPI __declspec(dllexport) + #elif defined(LIB3DS_STATIC) + #define LIB3DSAPI #else #define LIB3DSAPI __declspec(dllimport) #endif @@ -33,6 +35,7 @@ #endif #endif
Jan 20, 2010
Project Member
#1
jkypr...@gmail.com
Labels:
-Type-Defect Type-Enhancement
|