Dirk Reiners wrote:

>Marcus Lindblom wrote:
>  
>
>>Yeah, you'd have to use nifty-counters everywhere to make sure all code 
>>is referenced, but that's not really difficult to add, just 
>>time-consuming. :)
>>  
>>    
>>
>It just doesn't seem to be worth it, IMHO. So I don't mind not having 
>static libs.
>
>    Dirk
>  
>
So back to the initial question then, can we get rid of statics and 
change the code in all the def files to be like this?

#if defined(WIN32)                            
#   ifdef OSG_COMPILESYSTEMLIB
#       define OSG_SYSTEM_DLLMAPPING  __declspec(dllexport)
#       define OSG_SYSTEM_EXPIMP_TMPL
#   else
#       define OSG_SYSTEM_DLLMAPPING  __declspec(dllimport)
#       define OSG_SYSTEM_EXPIMP_TMPL   extern
#   endif
#else
#define OSG_SYSTEM_DLLMAPPING
#define OSG_SYSTEM_EXPIMP_TMPL
#endif



-Allen

>
>-------------------------------------------------------------------------
>Take Surveys. Earn Cash. Influence the Future of IT
>Join SourceForge.net's Techsay panel and you'll get the chance to share your
>opinions on IT & business topics through brief surveys -- and earn cash
>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>_______________________________________________
>Opensg-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/opensg-users
>
>  
>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to