I've compiled boost with:
b2 --build-dir=C:\_PRG\boost_1_55_0\tmp toolset=gcc variant=debug,release link=static threading=multi address-model=32 runtime-link=static --build-type=complete stage
After that I could compile some simple programs.
Now I've reorganized my Laptop and reinstalled WinXP SP3 (and addtional Linux Mint 17).
I installed TDM-GCC-32 again.
I've tried to installed Codelite 6.1, but it starts terrible slow on my Core2Duo
(it needs some minutes, until the codelite window appears), so I deinstalled it
and returned to Codelite 6.0.
I copied boost to D:\_LIB\boost_1_55_0 from my backup.
I now can compile and link my hello world program, but get problems linking all other programs,
for example the following:
Code: Select all
// main.cpp
#include <boost/lambda/lambda.hpp>
#include <iostream>
#include <iterator>
#include <algorithm>
int main()
{
using namespace boost::lambda;
typedef std::istream_iterator<int> in;
std::for_each(
in(std::cin), in(), std::cout << (_1 * 3) << " " );
}
Code: Select all
C:\WINDOWS\system32\cmd.exe /c "mingw32-make.exe -j 2 -e -f Makefile"
"----------Building project:[ tstbst32 - Debug ]----------"
mingw32-make.exe[1]: Entering directory 'D:/P2014/_PRJ/_CL/tstbst32'
gcc -o ./Debug/tstbst32 @"tstbst32.txt" -LD:/_LIB/boost_1_55_0 -L.
./Debug/main.cpp.o: In function `main':
D:/P2014/_PRJ/_CL/tstbst32/main.cpp:7: undefined reference to `__gxx_personality_sj0'
D:/P2014/_PRJ/_CL/tstbst32/main.cpp:12: undefined reference to `std::cout'
D:/P2014/_PRJ/_CL/tstbst32/main.cpp:12: undefined reference to `std::cin'
./Debug/main.cpp.o: In function `_tcf_0':
c:/_prg/tdm-gcc-32/lib/gcc/mingw32/4.8.1/include/c++/iostream:74: undefined reference to `std::ios_base::Init::~Init()'
./Debug/main.cpp.o: In function `_static_initialization_and_destruction_0':
c:/_prg/tdm-gcc-32/lib/gcc/mingw32/4.8.1/include/c++/iostream:74: undefined reference to `std::ios_base::Init::Init()'
./Debug/main.cpp.o: In function `ZN5boost6lambdalsINS0_19lambda_functor_baseINS0_14bitwise_actionINS0_16leftshift_actionEEENS_6tuples5tupleIRSoNS0_14lambda_functorINS2_INS0_17arithmetic_actionINS0_15multiply_actionEEENS7_INS9_INS0_11placeholderILi1EEEEEKiNS6_9null_typeESH_SH_SH_SH_SH_SH_SH_EEEEEESH_SH_SH_SH_SH_SH_SH_SH_EEEEA2_cEEKNS9_INS2_IS5_NS7_INS9_IT_EENS0_19const_copy_argumentIKT0_E4typeESH_SH_SH_SH_SH_SH_SH_SH_EEEEEERKSP_RSS_':
D:/_LIB/boost_1_55_0/boost/lambda/detail/operators.hpp:114: undefined reference to `__gxx_personality_sj0'
./Debug/main.cpp.o: In function `ZNSt16istream_iteratorIicSt11char_traitsIcEiE7_M_readEv':
c:/_prg/tdm-gcc-32/lib/gcc/mingw32/4.8.1/include/c++/bits/stream_iterator.h:118: undefined reference to `std::basic_ios<char, std::char_traits<char> >::operator void*() const'
c:/_prg/tdm-gcc-32/lib/gcc/mingw32/4.8.1/include/c++/bits/stream_iterator.h:121: undefined reference to `std::istream::operator>>(int&)'
c:/_prg/tdm-gcc-32/lib/gcc/mingw32/4.8.1/include/c++/bits/stream_iterator.h:122: undefined reference to `std::basic_ios<char, std::char_traits<char> >::operator void*() const'
./Debug/main.cpp.o: In function `ZN5boost6tuples5tupleINS_6lambda14lambda_functorINS2_11placeholderILi1EEEEEKiNS0_9null_typeES8_S8_S8_S8_S8_S8_S8_EC1ERKS6_RS7_':
D:/_LIB/boost_1_55_0/boost/tuple/detail/tuple_basic.hpp:488: undefined reference to `__gxx_personality_sj0'
./Debug/main.cpp.o: In function `ZN5boost6tuples5tupleIRSoNS_6lambda14lambda_functorINS3_19lambda_functor_baseINS3_17arithmetic_actionINS3_15multiply_actionEEENS1_INS4_INS3_11placeholderILi1EEEEEKiNS0_9null_typeESD_SD_SD_SD_SD_SD_SD_EEEEEESD_SD_SD_SD_SD_SD_SD_SD_EC1ES2_RKSG_':
D:/_LIB/boost_1_55_0/boost/tuple/detail/tuple_basic.hpp:488: undefined reference to `__gxx_personality_sj0'
./Debug/main.cpp.o: In function `ZN5boost6tuples5tupleINS_6lambda14lambda_functorINS2_19lambda_functor_baseINS2_14bitwise_actionINS2_16leftshift_actionEEENS1_IRSoNS3_INS4_INS2_17arithmetic_actionINS2_15multiply_actionEEENS1_INS3_INS2_11placeholderILi1EEEEEKiNS0_9null_typeESG_SG_SG_SG_SG_SG_SG_EEEEEESG_SG_SG_SG_SG_SG_SG_SG_EEEEEERA2_KcSG_SG_SG_SG_SG_SG_SG_SG_EC1ERKSM_SP_':
D:/_LIB/boost_1_55_0/boost/tuple/detail/tuple_basic.hpp:488: undefined reference to `__gxx_personality_sj0'
./Debug/main.cpp.o: In function `ZNK5boost6lambda19lambda_functor_baseINS0_14bitwise_actionINS0_16leftshift_actionEEENS_6tuples5tupleINS0_14lambda_functorINS1_IS4_NS6_IRSoNS7_INS1_INS0_17arithmetic_actionINS0_15multiply_actionEEENS6_INS7_INS0_11placeholderILi1EEEEEKiNS5_9null_typeESG_SG_SG_SG_SG_SG_SG_EEEEEESG_SG_SG_SG_SG_SG_SG_SG_EEEEEERA2_KcSG_SG_SG_SG_SG_SG_SG_SG_EEE4callIS8_SF_KSG_ST_ST_EET_RT0_RT1_RT2_RT3_':
D:/_LIB/boost_1_55_0/boost/lambda/detail/operator_lambda_func_base.hpp:212: undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
./Debug/main.cpp.o: In function `ZNK5boost6lambda19lambda_functor_baseINS0_14bitwise_actionINS0_16leftshift_actionEEENS_6tuples5tupleIRSoNS0_14lambda_functorINS1_INS0_17arithmetic_actionINS0_15multiply_actionEEENS6_INS8_INS0_11placeholderILi1EEEEEKiNS5_9null_typeESG_SG_SG_SG_SG_SG_SG_EEEEEESG_SG_SG_SG_SG_SG_SG_SG_EEE4callIS7_SF_KSG_SN_SN_EET_RT0_RT1_RT2_RT3_':
D:/_LIB/boost_1_55_0/boost/lambda/detail/operator_lambda_func_base.hpp:212: undefined reference to `std::ostream::operator<<(int)'
collect2.exe: error: ld returned 1 exit status
mingw32-make.exe[1]: *** [Debug/tstbst32] Error 1
mingw32-make.exe: *** [All] Error 2
tstbst32.mk:82: recipe for target 'Debug/tstbst32' failed
mingw32-make.exe[1]: Leaving directory 'D:/P2014/_PRJ/_CL/tstbst32'
Makefile:4: recipe for target 'All' failed
14 errors, 0 warnings
Code: Select all
00:43:38: Loading accelerators from 'C:\_PRG\CodeLite\config\accelerators.conf.default'
00:43:38: Loading accelerators from 'C:\_PRG\CodeLite\plugins\resources\abbreviation.accelerators'
00:43:38: Loading accelerators from 'C:\_PRG\CodeLite\plugins\resources\cscope.accelerators'
00:43:38: Loading accelerators from 'C:\_PRG\CodeLite\plugins\resources\external_tools.accelerators'
00:43:38: Loading accelerators from 'C:\_PRG\CodeLite\plugins\resources\wxcrafter.accelerators'
00:43:39: Loading accelerators from 'C:\_PRG\CodeLite/config/accelerators.conf.default'
00:43:39: Loading accelerators from 'C:\_PRG\CodeLite\plugins\resources\abbreviation.accelerators'
00:43:39: Loading accelerators from 'C:\_PRG\CodeLite\plugins\resources\cscope.accelerators'
00:43:39: Loading accelerators from 'C:\_PRG\CodeLite\plugins\resources\external_tools.accelerators'
00:43:39: Loading accelerators from 'C:\_PRG\CodeLite\plugins\resources\wxcrafter.accelerators'
00:43:41: Initializing refactoring database for workspace: tstbst32
00:43:41: Initializing refactoring database for workspace: tstbst32... done
00:43:41: Symbols file loaded into OS file system cache (0 seconds)
00:43:41: INFO: Retag workspace completed in 0 seconds (No files were retagged)
00:44:07: Error: can't open file 'D:\P2014\_PRJ\_CL\tstbst32\.codelite\compilation.db.txt' (error 0: der Vorgang wurde erfolgreich beendet.)
Thx, dlchnr