From: J. P. <xa...@gm...> - 2008-04-14 14:35:26
|
Hi, I tried to compile log4cpp-1.0 in Windows using MinGW but the configure will fail saying that the pthreads where no there, although I put the pthread-win32 library and headers in the /lib and /include folders of mingw. Then I create a config-mingw32.h file myself and create a project in Eclipse to compile it there using the -mthreads flag. I had two problems: 1) Priority::ERROR was not recognize. 2) undefine reference to _imp__pthread_self (although I was using -lpthread pointing to the pthread-win32 library) Then I replace in the config-mingw32.h the LOG4CPP_USE_PTHREADS by LOG4CPP_USE_MSTHREADS and everything worked and compiled fine. Does anybody know what the problem with the pthreads maybe? Cheers Javi |