几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】static Dwg Libraries In A Shared Library (http://www.dimcax.com/hust/showthread.php?t=18662)

yang686526 2009-05-07 04:22 PM

【转帖】static Dwg Libraries In A Shared Library
 
static dwg libraries in a shared library
static dwg libraries in a shared library
hi,
my application loads extra functionaries (plugins) at runtime. one of these plugins is a dwg importer using opendesign libraries. on windows and macosx it works fine but on linux the library is no loaded.
i'm using the dlopen. i tried both rtld_lazy and rtld_now flags without success.
the compiler flags are:
-pipe -fpic
using gcc 3.4.4 and the last version of the libraries (downloaded today) for linux gcc 3.4. i tried also both lnxx86 and lnxx86pic versions.
any idea?
thanks,
david
as a test, you might try excluding dwgdirect from the shared library you are creating, and then trying to load that version of the shared lib. that will verify that it is the addition of dwgdirect that is causing problems, and not some other issue with the shared library itself.


所有的时间均为北京时间。 现在的时间是 07:19 AM.