User forums > Using Code::Blocks
freeBSD parametres of llvm/clang
BlueHazzard:
are you sure that it does not display? Or does it display and closes immediately?
What if you call your program from the console? Does it work?
philo_neo:
hi,
when i start C::B at the first time >>does it display and closes immediately !
but when i load a c++ program a little complex , this is my output of build log:
--- Code: ----------------- Build: Release in fonction002 (compiler: LLVM Clang Compiler)---------------
clang++ -o bin/Release/fonction002 obj/Release/main.o -s
obj/Release/main.o: In function `main':
/home/phipo/langage_c++/fonction002/main.cpp:(.text+0x43): undefined reference to `std::cout'
/home/phipo/langage_c++/fonction002/main.cpp:(.text+0x48): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
/home/phipo/langage_c++/fonction002/main.cpp:(.text+0x53): undefined reference to `std::cout'
/home/phipo/langage_c++/fonction002/main.cpp:(.text+0x58): undefined reference to `std::ostream::operator<<(int)'
/home/phipo/langage_c++/fonction002/main.cpp:(.text+0x72): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
/home/phipo/langage_c++/fonction002/main.cpp:(.text+0x88): undefined reference to `std::ostream& std::ostream::_M_insert<double>(double)'
/home/phipo/langage_c++/fonction002/main.cpp:(.text+0xb4): undefined reference to `std::ctype<char>::_M_widen_init() const'
/home/phipo/langage_c++/fonction002/main.cpp:(.text+0xd3): undefined reference to `std::ostream::put(char)'
/home/phipo/langage_c++/fonction002/main.cpp:(.text+0xdb): undefined reference to `std::ostream::flush()'
/home/phipo/langage_c++/fonction002/main.cpp:(.text+0xf3): undefined reference to `std::__throw_bad_cast()'
obj/Release/main.o: In function `_GLOBAL__sub_I_main.cpp':
/home/phipo/langage_c++/fonction002/main.cpp:(.text.startup+0xb): undefined reference to `std::ios_base::Init::Init()'
/home/phipo/langage_c++/fonction002/main.cpp:(.text.startup+0x22): undefined reference to `std::ios_base::Init::~Init()'
clang-5.0: error: linker command failed with exit code 1 (use -v to see invocation)
Process terminated with status 1 (0 minute(s), 0 second(s))
13 error(s), 0 warning(s) (0 minute(s), 0 second(s))
--- End code ---
i don't anderstand but under linux all work fine !
regards
philippe
Navigation
[0] Message Index
[*] Previous page
Go to full version