几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】symbol Odrxfree Referenced Symbol Not Found (http://www.dimcax.com/hust/showthread.php?t=18701)

yang686526 2009-05-07 04:35 PM

【转帖】symbol Odrxfree Referenced Symbol Not Found
 
symbol odrxfree: referenced symbol not found
symbol odrxfree: referenced symbol not found
hi,
i have a shared library which uses the solaris builds of dwgdirect. when my main program tries to load this library (using dlopen), i get an error relating to odrxfree not being found: "...symbol odrxfree: referenced symbol not found..."
this problem occurs with both gcc and non-gcc solaris builds of dwgdirect. i have no ideas of how to fix this - all of the dwgdirect libs are available on the library search path, but i don't know where this method should be coming from - i assume odalloc?
how can i fix this problem?
note: this is using 1.14.02 build of dwgdirect
--------------------------------------------------------------------------------
ryan lohan
integration developer
objective corporation limited
--------------------------------------------------------------------------------
has anyone seen this?
--------------------------------------------------------------------------------
ryan lohan
integration developer
objective corporation limited
--------------------------------------------------------------------------------
perhaps something went wrong in the solaris build. you may add memory management functions yourself, somethere in your application. the code looks like this:
code:
extern "c"
{
void* odrxalloc(size_t s)
{
return ::malloc( s );
}
void* odrxrealloc(void* p, size_t new_size, size_t /*old_size*/)
{
return ::realloc( p, new_size );
}
void odrxfree(void* p)
{
::free( p );
}
} // extern "c"
vladimir


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