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?
> > > >, 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'