Guest
#1700969
Hi, I am getting following linker errors using g++ ***`__static_initialization_and_destruction_0' ***iostream:76: undefined reference to `std::ios_base::Init::Init()' ***iostream:76: undefined reference to `std::ios_base::Init::~Init()' GNU/Linux using g++ .\Objects\main.o: In function `__static_initialization_and_destruction_0': /cygdrive/c/Hitex/GnuToolPackageArm/bin/../lib/gcc/arm-hitex-elf/4.1.1/. ./../../../include/c++/4.1.1/iostream:76: undefined reference to `std::ios_base::Init::Init()' /cygdrive/c/Hitex/GnuToolPackageArm/bin/../lib/gcc/arm-hitex-elf/4.1.1/. ./../../../include/c++/4.1.1/iostream:76: undefined reference to `std::ios_base::Init::~Init()' It is a very simple C++ code which is not using any special C++ features. The code compiles,links and runs fine when <iostream> is "NOT" included in the main.cpp file. but as soon as <iostream> is included in the main.cpp file, the code compiles, but the above linker error is generated. Any help is appreciated!!! Thanks!