My favorites | Sign in
Project Home Downloads Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 5: Static linkage on VS
  Back to list
Status:  Fixed
Owner:  ----
Closed:  Jan 2010


 
Project Member Reported by jkypr...@gmail.com, Jan 20, 2010
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
(No comment was entered for this change.)
Labels: -Type-Defect Type-Enhancement
Jan 20, 2010
Project Member #2 jkypr...@gmail.com
r102
Status: Fixed

Powered by Google Project Hosting