Hello, maybe I'm missing something completely obvious here but I'm trying to use UEStudio to create some small c++ programs, but I'm getting the following problem when trying to build and run the following code:
I am using the MinGW compiler, installed with their latest installer including all of the available packages. This is installed at c:\MinGW and the path is set as that in the compiler paths settings.
The file is called test.cpp and is part of a project within UEStudio called test. I can compile this with no problems (i.e. create test.o) but when trying to build the application and create the exe file I get the following in my output box at the bottom:
obviously something wrong here... but I'm not sure if this is perhaps some kind of issue with an incorrect/missing path or what... but I can't figure it out
help?
Code: Select all
#include <iostream>
using namespace std;
int main ()
{
cout << "Hello World!";
return 0;
}
The file is called test.cpp and is part of a project within UEStudio called test. I can compile this with no problems (i.e. create test.o) but when trying to build the application and create the exe file I get the following in my output box at the bottom:
Code: Select all
--------------------Configuration: test - Debug--------------------
test.o:C:/MinGW/BIN/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/locale_facets.tcc:2494: undefined reference to `std::string::size() const'
test.o:C:/MinGW/BIN/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/locale_facets.tcc:2503: undefined reference to `std::string::operator[](unsigned int) const'
test.o:C:/MinGW/BIN/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/locale_facets.tcc:2505: undefined reference to `std::string::operator[](unsigned int) const'
test.o:C:/MinGW/BIN/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/bits/locale_facets.tcc:2508: undefined reference to `std::string::operator[](unsigned int) const'
test.o: In function `main':C:\Documents and Settings\Mark\My Documents\Projects\test\Debug/../test.cpp:7: undefined reference to `std::cout'
:C:\Documents and Settings\Mark\My Documents\Projects\test\Debug/../test.cpp:7: 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*)'
test.o: In function `_static_initialization_and_destruction_0':C:/MinGW/BIN/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/iostream:77: undefined reference to `std::ios_base::Init::Init()'
:C:/MinGW/BIN/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/iostream:77: undefined reference to `std::ios_base::Init::~Init()'
collect2: ld returned 1 exit status
test.EXE - 0 error(s), 0 warning(s)
help?