Hi Guys

Just need a lil help getting the basics of cpp working with cegcc or 
mingw32ce. If I try and compile a standard cpp prog such as

#include <iostream>

using namespace std;

int main(void) {
cout << "test" << endl;
}

then I try compiling like

arm-wince-cegcc-gcc -o test.exe test.cpp

I get the following output

Info: resolving _CRT_MT by linking to __imp__CRT_MT (auto-import)
/tmp/ccD6oqgJ.o:test.cpp:(.text+0x38): undefined reference to 
`std::ios_base::Init::Init()'
/tmp/ccD6oqgJ.o:test.cpp:(.text+0x5c): undefined reference to 
`std::ios_base::Init::~Init()'
/tmp/ccD6oqgJ.o:test.cpp:(.text+0xc8): 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*)'
/tmp/ccD6oqgJ.o:test.cpp:(.text+0xd8): 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/ccD6oqgJ.o:test.cpp:(.text+0xe8): undefined reference to `std::cout'
/tmp/ccD6oqgJ.o:test.cpp:(.text+0xf0): 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> >&)'
collect2: ld returned 1 exit status

Any ideas as to what I need to do to get it working here?

James


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to