![]() |
【转帖】aix odmutex.cpp
aix odmutex.cpp
aix odmutex.cpp hi, i am using dwgdirect 1.12 with visualage c++ professional version 5. i get a compiler error when compiling odmutex.cpp with the od_posix_threads flag turned on: "source/misc/odmutex.cpp", line 25.45: 1540-0274 (s) the name lookup for "m_data" did not find a declaration. /usr/vacpp/bin/xlc -c -o lib/aix32pic/odmutex.o -doda_aix -qrtti -qsuppress=1500-029 -qmaxmem=4096 -qprocimported -qdataimported -qenum=intlong -qthreaded -doda_gcc -dhave_prototypes -dod_posix_threads -doda -d_cpp_toolkit_ -ddd_client_build -o -isource/misc -isource/ge -ithirdparty/freetype/freetype-2.1.7/include -ithirdparty/freetype/freetype-2.1.7/include/freetype -iinclude -iinclude/ge -iinclude/gi -iinclude/gs -iinclude/br -iinclude/wr -isource/database/dwgfiler -isource/database -isource/database/entities -isource/database/objects -isource/database/tables -isource/database/dwgfiler/out -isource/database/dwgfiler/in -isource/database/dwgfiler/r12 -isource/database/dxfio/in -isource/misc -isource -isource/gi -ithirdparty/freetype/freetype-2.1.7/include source/misc/odmutex.cpp the m_data in this file is not declared in any of the headers that it includes. i assume that m_data should actually be _mutex? changing m_data to _mutex seems to work fine. out of the box it is: pthread_mutex_destroy((pthread_mutex_t*)m_data);[/font] should it be the following? pthread_mutex_destroy(&_mutex); thanks kelly last edited by kmah; 4th may 2005 at 10:05 amfff">. hi kelly, that fix is correct, however, we don't recommend using multiple threads to access dwgdirect objects with the current 1.13 version of our libraries. we intend to firm up our threading support in the next major release (1.14). |
所有的时间均为北京时间。 现在的时间是 06:49 AM. |