Hi,
I try to Link my compiled object file with gcc, but
it gives me 50 lines of "undefined reference" errors, despite
the compile phase goes fine?!
well, I have installed all the required libraries for gcc, I think,Code:... Utils.o(.text+0xf):Utils.cpp: undefined reference to `operator new(unsigned long)' Utils.o(.text+0x2e):Utils.cpp: undefined reference to `operator delete(void*)' Utils.o(.text+0x5e):Utils.cpp: undefined reference to `std::ios_base::Init::Init()' Utils.o(.text+0xbc):Utils.cpp: undefined reference to `std::ios_base::Init::~Init()' Utils.o(.gnu.linkonce.t._ZN5Utils7printDescriptionEv+0xf):Utils.cpp: undefined reference to `std::cout' ...
These are what I have included in the source file:
Code:using namespace std; #include <iostream> #include <string> #include <vector> #include <fstream> #include "FileUtils.cpp"




Reply With Quote