[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#208692: picprog doesn't compile with g++-4.1



Jaakko Hyvätti <jaakko.hyvatti@iki.fi> schreef:

> To compile, just remove the picport:: part in front of that
> set_clock_data definition in picport.h.

I have tried that, but when I type make I get a lot of error-messages:

 pts/2  jan /tmp/picprog/picprog-1.8.1$ make dep
g++ -M -O2 -Wall -W -Wwrite-strings *.cc > .depend
 pts/2  jan /tmp/picprog/picprog-1.8.1$ make
g++ -O2 -Wall -W -Wwrite-strings   -c -o main.o main.cc
g++ -O2 -Wall -W -Wwrite-strings   -c -o picport.o picport.cc
g++ -O2 -Wall -W -Wwrite-strings   -c -o hexfile.o hexfile.cc
g++ -O2 -Wall -W -Wwrite-strings   -c -o program.o program.cc
g++ -s main.o picport.o hexfile.o program.o -o picprog
main.o: In function `__static_initialization_and_destruction_0(int, int)':
main.cc:(.text+0x20): undefined reference to `std::ios_base::Init::Init()'
main.o: In function `main':
main.cc:(.text+0x419): undefined reference to `std::cerr'
main.cc:(.text+0x41e): undefined reference to `std::basic_ostream<char, std::char_traits<char>>& std::operator<<
main.cc:(.text+0x42a): undefined reference to `std::basic_ostream<char, std::char_traits<char>>& std::operator<<
main.cc:(.text+0x43b): undefined reference to `std::basic_ostream<char, std::char_traits<char>>& std::operator<<
main.cc:(.text+0x447): undefined reference to `std::basic_ostream<char, std::char_traits<char>>& std::operator<<
main.cc:(.text+0x458): undefined reference to `std::basic_ostream<char, std::char_traits<char>>& std::operator<<
main.cc:(.text+0x5c5): undefined reference to `operator delete[](void*)'
main.cc:(.text+0x5d4): undefined reference to `operator delete[](void*)'
main.cc:(.text+0x628): undefined reference to `operator delete[](void*)'
[cut]
program.cc:(.text+0x7bc): undefined reference to `__gnu_cxx::__exchange_and_add(int volatile*, int)'
program.cc:(.text+0x7cf): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char>>::_Rep::_M_destroy(std::allocator<char> const&)'
program.o: In function `__tcf_0':
program.cc:(.text+0xcc): undefined reference to `std::ios_base::Init::~Init()'
program.o: In function `program::~program()':
program.cc:(.text+0xe1): undefined reference to `operator delete[](void*)'
program.o: In function `program::~program()':
program.cc:(.text+0x101): undefined reference to `operator delete[](void*)'
program.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
make: *** [picprog] Fout 1

Are there other things that I can try?


-- 
Met vriendelijke groetjes         - Jan Wagemakers -

 - Debian GNU/Linux testing/unstable - 



Reply to: