Skip to content

Compile Error in C++11 #2

@arsari

Description

@arsari

I trying to text the example in the readme file and I get the following errors:

c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\arqas\AppData\Local\Temp\ccrDVK6R.o:text-parser.cpp:(.text+0x77): undefined reference to `csv::Parser::Parser(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, csv::DataType const&, char)'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\arqas\AppData\Local\Temp\ccrDVK6R.o:text-parser.cpp:(.text+0xa8): undefined reference to `csv::Parser::operator[](unsigned int) const'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\arqas\AppData\Local\Temp\ccrDVK6R.o:text-parser.cpp:(.text+0xc2): undefined reference to `csv::Row::operator[][abi:cxx11](unsigned int) const'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\arqas\AppData\Local\Temp\ccrDVK6R.o:text-parser.cpp:(.text+0x107): undefined reference to `csv::Parser::operator[](unsigned int) const'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\arqas\AppData\Local\Temp\ccrDVK6R.o:text-parser.cpp:(.text+0x11a): undefined reference to `csv::operator<<(std::ostream&, csv::Row const&)'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\arqas\AppData\Local\Temp\ccrDVK6R.o:text-parser.cpp:(.text+0x164): undefined reference to `csv::Parser::operator[](unsigned int) const'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\arqas\AppData\Local\Temp\ccrDVK6R.o:text-parser.cpp:(.text+0x17d): undefined reference to `csv::Row::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\arqas\AppData\Local\Temp\ccrDVK6R.o:text-parser.cpp:(.text+0x1cf): undefined reference to `csv::Parser::rowCount() const'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\arqas\AppData\Local\Temp\ccrDVK6R.o:text-parser.cpp:(.text+0x1fd): undefined reference to `csv::Parser::columnCount() const'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\arqas\AppData\Local\Temp\ccrDVK6R.o:text-parser.cpp:(.text+0x239): undefined reference to `csv::Parser::getHeaderElement[abi:cxx11](unsigned int) const'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\arqas\AppData\Local\Temp\ccrDVK6R.o:text-parser.cpp:(.text+0x277): undefined reference to `csv::Parser::~Parser()'
c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: C:\Users\arqas\AppData\Local\Temp\ccrDVK6R.o:text-parser.cpp:(.text+0x30c): undefined reference to `csv::Parser::~Parser()'
collect2.exe: error: ld returned 1 exit status

I'm using minGW32 v8.2.0-3 on Eclipse 2018-12 and VS Code 1.30.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions