| | |
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: 2
0
#4 21 Days Ago
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; 21 Days Ago 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 |
api array arrays based beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete deploy desktop directshow dll download dynamic encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news node number output parameter pointer problem program programming project proxy python read recursion recursive return string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word 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()'

