If you are using windows, it is common for the system to set hidden extensions by default, you can easily change that with a google, all programmers usually have this option on. Obj\Release\main.o:main.cpp:(.text+0x744): undefined reference to `cordinates::cordinates(int, std::string)'Ĭ:/Program Files (x86)/CodeBlocks/MinGW/bin/./lib/gcc/mingw32/4.9.2/././././mingw32/bin/ld.exe: obj\Release\main.o: bad reloc address 0x3c in section `.rdata'Ĭ:/Program Files (x86)/CodeBlocks/MinGW/bin/./lib/gcc/mingw32/4.9.2/././././mingw32/bin/ld.exe: final link failed: Invalid operationĬollect2.exe: error: ld returned 1 exit status Obj\Release\main.o:main.cpp:(.text+0圆b9): undefined reference to `cordinates::getX()' Obj\Release\main.o:main.cpp:(.text+0圆a1): undefined reference to `cordinates::solve()'
Obj\Release\main.o:main.cpp:(.text+0圆44): undefined reference to `cordinates::cordinates(int, std::string)' Obj\Release\main.o:main.cpp:(.text+0x5b9): undefined reference to `cordinates::getX()' Obj\Release\main.o:main.cpp:(.text+0x5a1): undefined reference to `cordinates::solve()' Obj\Release\main.o:main.cpp:(.text+0x3a7): undefined reference to `cordinates::getY()' Obj\Release\main.o:main.cpp:(.text+0x39c): undefined reference to `cordinates::getX()' Obj\Release\main.o:main.cpp:(.text+0x38b): undefined reference to `cordinates::solve()' Obj\Release\main.o:main.cpp:(.text+0x34b): undefined reference to `cordinates::cordinates(int, std::string)' Obj\Release\main.o:main.cpp:(.text+0x306): undefined reference to `cordinates::getX()' Obj\Release\main.o:main.cpp:(.text+0x2f5): undefined reference to `cordinates::solve()' Obj\Release\main.o:main.cpp:(.text+0x2b5): undefined reference to `cordinates::cordinates(int, std::string)' Obj\Release\main.o:main.cpp:(.text+0x270): undefined reference to `cordinates::getX()'
Obj\Release\main.o:main.cpp:(.text+0x25f): undefined reference to `cordinates::solve()' Obj\Release\main.o:main.cpp:(.text+0x21f): undefined reference to `cordinates::cordinates(int, std::string)' Mingw32-g++.exe -o bin\Release\cordinateMath.exe obj\Release\main.o -s -lmingw32 -lSDL2 -lSDL2main "C:\Program Files (x86)\CodeBlocks\MinGW\lib\" "C:\Program Files (x86)\CodeBlocks\MinGW\lib\libSDL2main.a" Mingw32-g++.exe -o bin\Release\cordinateMath.exe obj\Release\main.o -s -lmingw32 -lSDL2 -lSDL2main "C:\Program Files (x86)\CodeBlocks\MinGW\lib\" "C:\Program Files (x86)\CodeBlocks\MinGW\lib\libSDL2main.a" this is with cordinates.cpp included By manually I meant I selected the project and instead of selecting add class I chose add file > add c/c++ header and add c/c++ source file