| | |
C++ compile error on linux
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Dec 2008
Posts: 57
Reputation:
Solved Threads: 0
I don't know if this is the right board for this but here goes
I have finsihed writing my program and it compiles fine on windows using the MinGW compiler. Ihave it compiling and running fine
I tried compiling on a linux machine to create an executable but i an getting loads of errors and none of them are helpful
Here is a list of the output.
Does anyone know what any of this means and how i can get rid of them?
I have finsihed writing my program and it compiles fine on windows using the MinGW compiler. Ihave it compiling and running fine
I tried compiling on a linux machine to create an executable but i an getting loads of errors and none of them are helpful
Here is a list of the output.
Does anyone know what any of this means and how i can get rid of them?
•
•
•
•
> > > >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)]+0xd5): undefined reference to `std::basic_string<char, std::char_traits <char>, std::allocator<char> >::operator=(std::basic_string<char, std::char_trai ts<char>, std::allocator<char> > const&)'
Unmatched `.
blue94.ex.ac.uk% scanner.cpp.text._ZNSt6vectorISsSaISsEE13_M_insert_auxEN9__gnu_cxx17__normal_i teratorIPSsS1_EERKSs[std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits <char>, std::allocator<char> > > >::_M_insert_aux(__gnu_cxx::__normal_iterator<s td::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::vec tor<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std: :allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)]+0xe0): undefined reference to `std::basic_string<char, std::char_traits <char>, std::allocator<char> >::~basic_string()'
Unmatched `.
blue94.ex.ac.uk% scanner.cpp.text._ZNSt6vectorISsSaISsEE13_M_insert_auxEN9__gnu_cxx17__normal_i teratorIPSsS1_EERKSs[std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits <char>, std::allocator<char> > > >::_M_insert_aux(__gnu_cxx::__normal_iterator<s td::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::vec tor<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std: :allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)]+0xf6): undefined reference to `std::basic_string<char, std::char_traits <char>, std::allocator<char> >::~basic_string()'
Unmatched `.
blue94.ex.ac.uk% scanner.cpp.text._ZNSt6vectorISsSaISsEE13_M_insert_auxEN9__gnu_cxx17__normal_i teratorIPSsS1_EERKSs[std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits <char>, std::allocator<char> > > >::_M_insert_aux(__gnu_cxx::__normal_iterator<s td::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::vec tor<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std: :allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)]+0x133): undefined reference to `std::__throw_length_error(char const*)'
Unmatched `.
blue94.ex.ac.uk% scanner.cpp.text._ZNSt6vectorISsSaISsEE13_M_insert_auxEN9__gnu_cxx17__normal_i teratorIPSsS1_EERKSs[std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits <char>, std::allocator<char> > > >::_M_insert_aux(__gnu_cxx::__normal_iterator<s td::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::vec tor<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std: :allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)]+0x339): undefined reference to `__cxa_begin_catch'
Unmatched `.
blue94.ex.ac.uk% scanner.cpp.text._ZNSt6vectorISsSaISsEE13_M_insert_auxEN9__gnu_cxx17__normal_i teratorIPSsS1_EERKSs[std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits <char>, std::allocator<char> > > >::_M_insert_aux(__gnu_cxx::__normal_iterator<s td::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::vec tor<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std: :allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)]+0x39f): undefined reference to `__cxa_rethrow'
Unmatched `.
blue94.ex.ac.uk% scanner.cpp.text._ZNSt6vectorISsSaISsEE13_M_insert_auxEN9__gnu_cxx17__normal_i teratorIPSsS1_EERKSs[std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits <char>, std::allocator<char> > > >::_M_insert_aux(__gnu_cxx::__normal_iterator<s td::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::vec tor<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std: :allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)]+0x3c0): undefined reference to `__cxa_end_catch'
•
•
Join Date: Feb 2009
Posts: 141
Reputation:
Solved Threads: 3
0
#4 Nov 9th, 2009
Your making reference to function you have not defined or you simply type in the wrong name for the header file you are typing to include that contains this functions prototype, simply your compiler cannot make reference to the function you called check your spelling on your includes
Last edited by power_computer; Nov 9th, 2009 at 11:41 pm.
![]() |
Similar Threads
- for loop compile error (C++)
- Compile error for RTTI (C++)
- compile error (C++)
- Compile Error - Multi-file - Classes (C++)
- Stack Compile Error (Java)
- Compile Error: Object Required (Visual Basic 4 / 5 / 6)
- compile error (C++)
- compile error (C)
- PLEASE help with project - compile error (C++)
Other Threads in the C++ Forum
- Previous Thread: guys can you help me with this??
- Next Thread: Class Association
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete deploy developer display dll dynamiccharacterarray email encryption error file format forms fstream function functions game generator givemetehcodez graph homeworkhelp iamthwee ifstream image input int java lib list loop looping loops map math matrix memory multiple newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg simple sorting spoonfeeding string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets



.text._ZNSt6vectorISsSaISsEE13_M_insert_auxEN9__gnu_cxx17__normal_i teratorIPSsS1_EERKSs[std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits <char>, std::allocator<char> > > >::_M_insert_aux(__gnu_cxx::__normal_iterator<s td::basic_string<char, std::char_traits<char>, std::allocator<char> >*, std::vec tor<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std: :allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)]+0xe0): undefined reference to `std::basic_string<char, std::char_traits <char>, std::allocator<char> >::~basic_string()'

