I am using CodeBlocks 13.12 with the mingw compiler. I downloaded spring using this:
git clone --recursive git://github.com/spring/spring.git -b develop
cd spring
git clone https://github.com/spring/mingwlibs
Then I created the CodeBlocks project file using cmake-gui. I set the source code path to "C:\spring" and the build directory to "C:\spring\build" and clicked Generate.
Then I opened the project in CodeBlocks and compiled it. Everything was going fine until I get these errors:
Code: Select all
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x2a2): undefined reference to `_InterlockedCompareExchange'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x2d0): undefined reference to `_InterlockedCompareExchange'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x344): undefined reference to `_InterlockedExchange'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x406): undefined reference to `_InterlockedIncrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x426): undefined reference to `_InterlockedCompareExchange'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x6c1): undefined reference to `_InterlockedIncrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x6e6): undefined reference to `_InterlockedCompareExchange'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0xb12): undefined reference to `_InterlockedCompareExchange'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0xb40): undefined reference to `_InterlockedCompareExchange'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0xbb4): undefined reference to `_InterlockedExchange'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0xca3): undefined reference to `_InterlockedIncrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0xcc3): undefined reference to `_InterlockedCompareExchange'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0xe41): undefined reference to `_InterlockedIncrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0xe66): undefined reference to `_InterlockedCompareExchange'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x10ad): undefined reference to `_InterlockedIncrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x1184): undefined reference to `_InterlockedIncrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x11f6): undefined reference to `_InterlockedIncrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x121b): undefined reference to `_InterlockedIncrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x1228): undefined reference to `_InterlockedDecrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x12a7): undefined reference to `_InterlockedIncrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x12b4): undefined reference to `_InterlockedDecrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x131a): undefined reference to `_InterlockedDecrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x136a): undefined reference to `_InterlockedDecrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x13ef): undefined reference to `_InterlockedIncrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x141a): undefined reference to `_InterlockedDecrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x14f3): undefined reference to `_InterlockedIncrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x152c): undefined reference to `_InterlockedDecrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x15fb): undefined reference to `_InterlockedIncrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x1606): undefined reference to `_InterlockedDecrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x1669): undefined reference to `_InterlockedIncrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x2dd2): undefined reference to `_gmtime32'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x3cf6): undefined reference to `_InterlockedIncrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x3d88): undefined reference to `_InterlockedDecrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x3d9e): undefined reference to `_InterlockedDecrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x3ec2): undefined reference to `_InterlockedIncrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x3f4f): undefined reference to `_InterlockedDecrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x3fd2): undefined reference to `_InterlockedDecrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x40c5): undefined reference to `_InterlockedIncrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text+0x40d9): undefined reference to `_InterlockedDecrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text$_ZN5boost6detail21intrusive_ptr_releaseEPNS0_16thread_data_baseE[__ZN5boost6detail21intrusive_ptr_releaseEPNS0_16thread_data_baseE]+0x11): undefined reference to `_InterlockedDecrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text$_ZN5boost6detail20rollback_once_regionERNS_9once_flagERNS0_12once_contextE[__ZN5boost6detail20rollback_once_regionERNS_9once_flagERNS0_12once_contextE]+0x1b): undefined reference to `_InterlockedExchange'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text$_ZN5boost6detail24basic_condition_variable10notify_allEv[__ZN5boost6detail24basic_condition_variable10notify_allEv]+0x57): undefined reference to `_InterlockedCompareExchange'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text$_ZN5boost6detail24basic_condition_variable10notify_allEv[__ZN5boost6detail24basic_condition_variable10notify_allEv]+0x95): undefined reference to `_InterlockedCompareExchange'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text$_ZN5boost6detail24basic_condition_variable10notify_allEv[__ZN5boost6detail24basic_condition_variable10notify_allEv]+0xd0): undefined reference to `_InterlockedExchange'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text$_ZN5boost6detail24basic_condition_variable10notify_allEv[__ZN5boost6detail24basic_condition_variable10notify_allEv]+0x134): undefined reference to `_InterlockedCompareExchange'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text$_ZN5boost6detail24basic_condition_variable10notify_allEv[__ZN5boost6detail24basic_condition_variable10notify_allEv]+0x1b4): undefined reference to `_InterlockedDecrement'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text$_ZN5boost6detail24basic_condition_variable10notify_allEv[__ZN5boost6detail24basic_condition_variable10notify_allEv]+0x2b8): undefined reference to `_InterlockedCompareExchange'
../../../mingwlibs/lib/libboost_thread-mt.a(thread.o):thread.cpp:(.text$_ZN5boost6detail24basic_condition_variable10notify_allEv[__ZN5boost6detail24basic_condition_variable10notify_allEv]+0x346): undefined reference to `_InterlockedCompareExchange'