Hello Rafael,
Rafael Menezes wrote:
> Gentleman
>
> I am back here with a thread question. Not exactly usage of threads with
> OpenSG (yet : ), but why my VC 2005 project keep asking me on linking
> about threadbase and so on. A little dump can be more information then i
> provide, so, here come:
> Creating library .\..\lib\opt/OSGBase.lib and object
> .\..\lib\opt/OSGBase.exp
do you intentionally build a static library? For the "base" library that
might work, but you will run into problems with the "system" library,
because it makes extensive use of static initialization to register
types with factories. This causes trouble if the linker removes unused
symbols, because most of the library appears to be unused and gets removed.
> OSGBaseInitFunctions.obj : error LNK2001: unresolved external symbol
> "protected: static class *OSG::BaseThread* *
> *OSG::BaseWinThreadBase*::_pThreadLocal" ([EMAIL PROTECTED]
> [EMAIL PROTECTED]@@[EMAIL PROTECTED]@A)
>
> See? And there is more about the same subject...
>
[SNIP]
>
> ..\lib\opt\OSGBase.dll : fatal error LNK1120: 19 unresolved externals
>
> Before this, i have no warnings or errors (ok, 1 warning about a
> redefine OUT).
>
> I work very hard to qui nowt, but i really don't know what library is
> missed. Some help will be the thing to be glad (and maybe finish this
> build!!).
hm, my windows development experience is rather limited, but all these
symbols should be in OpenSG's objects files that get linked together for
OSGBase.
The only idea that comes to mind is that there is some problem with the
dllexport/dllimport annotation. Do you pass the correct
OSG_COMPILE<LIBRARYNAME>LIB defines, i.e. OSG_COMPILEBASELIB or
OSG_COMPILESYSTEMLIB, to the compiler when creating the object files for
the respective lib ?
Sorry, maybe someone with more experience with the windows linker can
provide more helpful tips here,
Carsten
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users