Hi Daniel,

when you link with a static library, only symbols whose definitions
are being looked for will be pulled into the resulting executable or shared library. Adding the options -Xlinker -whole-archive to the linker should do the trick. Actually the fileio classes are not referenced in the OpenSG lib itself nor your executable so they are not linked into it and never get instantiated and this leads to the NULL pointer, well the NULL pointer is a bug I fixed it. Thanks for the report.

Andreas

Hello,

I just compiled the OPENSG1.4 release.
Then I tried to link the static dbgLnk libs.
I renamed them by removing the Lnk, such that my Makefiles dont need to
be changed.
Why did u add the Lnk to the lib names? Is there a special reason?

Well, my problem is that my program segfaults at the
ScenefileHandler::the().read call, because _the is a NULL pointer.
The same for the 10loading tutorial.

When using the dynamic .so libs all works as usual.

Anybody any ideas, i would really appreciate the option to link my
executables statically...

Greets,
        Daniel Grest



--
Andreas Zieringer       [EMAIL PROTECTED]
Fraunhofer IGD - A4     phone +49 (0)6151 155 289
Fraunhoferstr. 5        fax   +49 (0)6151 155 196
D-64283 Darmstadt       www.igd.fhg.de/www/igd-a4


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to