Hello,
I am trying to make an SDL app, that uses SDL_ttf to create a starting menu, but I can’t figure out how to build it in Windows. It works in Linux, but I would personally like to also have a Windows build. My file structure looks as such:
include/
libs/SDL/
libs/SDL_TTF/
src/
run.bat
Sans.ttf
SDL2_ttf.dll
SDL2.dll
both files in libs also have an include/ and lib/. In run.bat, I have the following command to try to compile it:
clang++ -Iinclude .\src\*.cpp -o chip8 -Ilibs/SDL/include -Llibs/SDL/lib -lSDL2 -Ilibs/SDL_TTF/include -Llibs/SDL_TTF/lib -lSDL2_ttf
However, there is an issue with libs/SDL_TTF/include/SDL2/SDL_ttf.h: It can’t find SDL.h, begin_code.h, and close_code.h, to which I try to change them to my standard <SDL2/[name].h>, and then clang says: cannot find -lSDL2: No such file or directory
What am I doing wrong here?