[CMake] dll build error, possible bug

andtsk at sibmail.com andtsk at sibmail.com
Wed Jan 5 04:49:56 EST 2011


Dear all,

I working on windows and use "Cmake 2.8" + "MinGw"

I am try to build .dll from "pthreads-win32" sources
(http://sourceware.org/pthreads-win32/)


by writing CMakeLists.txt (attached) and putting them to src directory
he creates makefile i run it, and after invoking of command:

gcc    -shared -o libpthreadGC2.dll -Wl,--out-implib,libpthreadGC2.dll.a
-Wl,--major-image-version,0,--minor-image-version,0 -Wl, at CMak
eFiles\pthreadGC2.dir\objects1.rsp -lkernel32 -luser32 -lgdi32 -lwinspool
-lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32

and i got many errors "...indefined reference..." (attached)

But when i  run "mingw32-make clean GC" hes invoking command is:

gcc -D__CLEANUP_C -O3 -finline-functions -shared -o pthreadGC2.dll attr.o
barrier.o cancel.o cleanup.o condvar.o create.o dll.o errno.o exit.o
fork.o global.o m
isc.o mutex.o nonportable.o private.o rwlock.o sched.o semaphore.o
signal.o spin.o sync.o tsd.o version.o
...
and .dll builds

thanks in advance

P.S. sorry for my english
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeLists.txt
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110105/df40d730/attachment-0001.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: error_log
Type: /
Size: 29151 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110105/df40d730/attachment-0001.bin>


More information about the CMake mailing list