高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|