andrezc
(usa Debian)
Enviado em 09/01/2011 - 20:27h
Sim, ainda é valida. Só um exemplo: eu, com meu gcc versão 4.3.2, vou compilar um código pequeno em C++.
andre@darkstar:~$ gcc soma.cpp -o soma
/tmp/ccjMkGpq.o: In function `__static_initialization_and_destruction_0(int, int)':
soma.cpp:(.text+0x33): undefined reference to `std::ios_base::Init::Init()'
soma.cpp:(.text+0x38): undefined reference to `std::ios_base::Init::~Init()'
/tmp/ccjMkGpq.o: In function `main':
soma.cpp:(.text+0xb7): undefined reference to `std::cout'
soma.cpp:(.text+0xbc): 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*)'
soma.cpp:(.text+0xc8): undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(int)'
soma.cpp:(.text+0xd0): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&)'
soma.cpp:(.text+0xd7): undefined reference to `std::cout'
soma.cpp:(.text+0xdc): undefined reference to `std::basic_ostream<char, std::char_traits<char> >::operator<<(std::basic_ostream<char, std::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char> >&))'
/tmp/ccjMkGpq.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status
agora o mesmo código ao compilar com o g++ versão 4.3.2:
andre@darkstar:~$ g++ soma.cpp -o soma
andre@darkstar:~$
sem erro nenhum.