Im trying to compile my game, but when i try to compile the game Undefined Reference Errors comes up to mingw64
I have SDL2 installed
My makefile command: g++ -I C:/msys64/mingw64/include/SDL2 -L C:msys64mingw64lib -o main main.cpp -lmingw32 -lSDL2main -lSDL2
The Log when i try to compile the game:
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x10b): undefined reference to LTexture::LTexture()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x17d): undefined reference to
pipe::init()’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x18f): undefined reference to land::init()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x19f): undefined reference to
sound::init()’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x236): undefined reference to woomy::Free()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x246): undefined reference to
pipe::Free()’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x258): undefined reference to land::Free()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x268): undefined reference to
sound::Free()’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x274): undefined reference to LTexture::free()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x327): undefined reference to
IMG_Quit’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x32c): undefined reference to TTF_Quit' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x4a5): undefined reference to
IMG_Init’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x4d1): undefined reference to TTF_Init' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x58e): undefined reference to
LTexture::LTexture()’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x616): undefined reference to LTexture::Load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x686): undefined reference to
LTexture::Load(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, double)’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x6f6): undefined reference to LTexture::Load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x76c): undefined reference to
LTexture::Load(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, double)’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x7eb): undefined reference to LTexture::Load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x86d): more undefined references to
LTexture::Load(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, double)’ follow
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0xa94): undefined reference to LTexture::getWidth()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0xb21): undefined reference to
LTexture::Render(short, short, short, SDL_Rect*, SDL_RendererFlip)’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0xb4a): undefined reference to LTexture::free()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0xd8b): undefined reference to
LTexture::LTexture()’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0xe03): undefined reference to LTexture::Load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0xe6c): undefined reference to
LTexture::Load(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, double)’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0xed5): undefined reference to LTexture::Load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0xf44): undefined reference to
LTexture::Load(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, double)’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0xfbc): undefined reference to LTexture::Load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x1037): more undefined references to
LTexture::Load(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, double)’ follow
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x1242): undefined reference to LTexture::getWidth()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x12be): undefined reference to
LTexture::Render(short, short, short, SDL_Rect*, SDL_RendererFlip)’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x12ed): undefined reference to LTexture::free()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x15b9): undefined reference to
LTexture::LTexture()’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x164d): undefined reference to LTexture::Load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x16cf): undefined reference to
LTexture::Load(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, double)’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x1751): undefined reference to LTexture::Load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x17d3): undefined reference to
LTexture::Load(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, double)’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x1855): undefined reference to LTexture::Load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x18d7): more undefined references to
LTexture::Load(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, double)’ follow
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x1afe): undefined reference to LTexture::getWidth()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x1b8b): undefined reference to
LTexture::Render(short, short, short, SDL_Rect*, SDL_RendererFlip)’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x1bb4): undefined reference to LTexture::free()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x1e49): undefined reference to
LTexture::LTexture()’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x1e89): undefined reference to LTexture::Load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x1eae): undefined reference to
LTexture::getWidth()’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x1eed): undefined reference to LTexture::Render(short, short, short, SDL_Rect*, SDL_RendererFlip)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x1ef9): undefined reference to
LTexture::free()’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x1f67): undefined reference to LTexture::LTexture()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x1fa7): undefined reference to
LTexture::Load(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, double)’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x1fee): undefined reference to LTexture::Render(short, short, short, SDL_Rect*, SDL_RendererFlip)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x1ffa): undefined reference to
LTexture::free()’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2069): undefined reference to LTexture::LTexture()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x20a9): undefined reference to
LTexture::Load(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, double)’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x20f0): undefined reference to LTexture::Render(short, short, short, SDL_Rect*, SDL_RendererFlip)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x20fc): undefined reference to
LTexture::free()’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x216b): undefined reference to LTexture::LTexture()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x21ab): undefined reference to
LTexture::Load(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, double)’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x21d0): undefined reference to LTexture::getHeight()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x21e8): undefined reference to
LTexture::getWidth()’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2224): undefined reference to LTexture::Render(short, short, short, SDL_Rect*, SDL_RendererFlip)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2230): undefined reference to
LTexture::free()’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x229f): undefined reference to LTexture::LTexture()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x22df): undefined reference to
LTexture::Load(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, double)’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2326): undefined reference to LTexture::Render(short, short, short, SDL_Rect*, SDL_RendererFlip)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2332): undefined reference to
LTexture::free()’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x23a1): undefined reference to LTexture::LTexture()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x23e1): undefined reference to
LTexture::Load(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, double)’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2428): undefined reference to LTexture::Render(short, short, short, SDL_Rect*, SDL_RendererFlip)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2434): undefined reference to
LTexture::free()’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x24a3): undefined reference to LTexture::LTexture()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x24e3): undefined reference to
LTexture::Load(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, double)’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2508): undefined reference to LTexture::getWidth()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2547): undefined reference to
LTexture::Render(short, short, short, SDL_Rect*, SDL_RendererFlip)’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2553): undefined reference to LTexture::free()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x25c1): undefined reference to
LTexture::LTexture()’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2601): undefined reference to LTexture::Load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2648): undefined reference to
LTexture::Render(short, short, short, SDL_Rect*, SDL_RendererFlip)’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2654): undefined reference to LTexture::free()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x26c9): undefined reference to
LTexture::LTexture()’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2709): undefined reference to LTexture::Load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2750): undefined reference to
LTexture::Render(short, short, short, SDL_Rect*, SDL_RendererFlip)’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2790): undefined reference to LTexture::Load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x27d7): undefined reference to
LTexture::Render(short, short, short, SDL_Rect*, SDL_RendererFlip)’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x27e3): undefined reference to LTexture::free()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x28dd): undefined reference to
LTexture::LTexture()’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x291d): undefined reference to LTexture::Load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2942): undefined reference to
LTexture::getWidth()’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2981): undefined reference to LTexture::Render(short, short, short, SDL_Rect*, SDL_RendererFlip)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x298d): undefined reference to
LTexture::free()’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2a08): undefined reference to LTexture::LTexture()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2a75): undefined reference to
LTexture::Load(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, double)’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2aed): undefined reference to LTexture::Load(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, double)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2b4e): undefined reference to
LTexture::Load(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, double)’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2b98): undefined reference to LTexture::Render(short, short, short, SDL_Rect*, SDL_RendererFlip)' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2ba7): undefined reference to
LTexture::free()’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2c6f): undefined reference to LTexture::LTexture()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2caf): undefined reference to
LTexture::Load(std::__cxx11::basic_string<char, std::char_traits, std::allocator >, double)’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2cd4): undefined reference to LTexture::getWidth()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2d13): undefined reference to
LTexture::Render(short, short, short, SDL_Rect*, SDL_RendererFlip)’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text+0x2d1f): undefined reference to LTexture::free()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text$_ZN5woomyC1Ev[_ZN5woomyC1Ev]+0x17): undefined reference to
LTexture::LTexture()’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text$_ZN4pipeC1Ev[_ZN4pipeC1Ev]+0x14): undefined reference to LTexture::LTexture()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text$_ZN5soundC1Ev[_ZN5soundC1Ev]+0x14): undefined reference to
LTexture::LTexture()’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.text$_ZN4landC1Ev[_ZN4landC1Ev]+0x14): undefined reference to LTexture::LTexture()' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.rdata$.refptr._ZN8LTexture3dieE[.refptr._ZN8LTexture3dieE]+0x0): undefined reference to
LTexture::die’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.rdata$.refptr._ZN8LTexture5scoreE[.refptr._ZN8LTexture5scoreE]+0x0): undefined reference to LTexture::score' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.rdata$.refptr._ZN8LTexture9gRendererE[.refptr._ZN8LTexture9gRendererE]+0x0): undefined reference to
LTexture::gRenderer’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.rdata$.refptr._ZN8LTexture7gWindowE[.refptr._ZN8LTexture7gWindowE]+0x0): undefined reference to LTexture::gWindow' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.rdata$.refptr._ZN8LTexture4quitE[.refptr._ZN8LTexture4quitE]+0x0): undefined reference to
LTexture::quit’
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64tmpcclOceE0.o:main.cpp:(.rdata$.refptr._ZN8LTexture5eventE[.refptr._ZN8LTexture5eventE]+0x0): undefined reference to LTexture::event' C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64mingw64lib/libSDL2main.a(SDL_windows_main.o): in function
main_getcmdline’:
/Users/valve/release/SDL2/SDL2-2.30.5-source/foo-x64/../src/main/windows/SDL_windows_main.c:80:(.text+0x152): undefined reference to `SDL_main’
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:2: all] Error 1
DavidModPhone is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.