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,@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
cmake_minimum_required(VERSION 2.8)
set(SRC_DLL attr.c
barrier.c
cancel.c
cleanup.c
condvar.c
create.c
dll.c
errno.c
exit.c
fork.c
global.c
misc.c
mutex.c
nonportable.c
private.c
rwlock.c
sched.c
semaphore.c
signal.c
spin.c
sync.c
tsd.c)
include_directories(./)
add_definitions(-D__CLEANUP_C)
add_library(pthreadGC2 SHARED ${SRC_DLL})
error_log
Description: /
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
