Skip to content
Snippets Groups Projects
Benedict Gaster's avatar
BG Dummy authored
04767278
History

OSX

clang++ -std=c++17 -L./osx/lib/ -lSDL2 -lSDL2_ttf -lSDL2_image -lfreetype -lpng -lwebp -ltiff -ljpeg -lbz2 -lz -I./osx/include/ -I./osx/include/SDL2/ -I./include ./SDL_FontCache.o src/context.cpp src/app.cpp examples/splat.cpp -framework OpenGL

We need to build font cache

clang -c -I./osx/include/ -I./osx/include/SDL2/ -I./include src/SDL_FontCache.c

Windows

cl /EHsc /Iwindows\include /c main.cpp

and then link with:

link /SUBSYSTEM:CONSOLE /LIBPATH:windows\lib\x64 main.obj SDL2.lib SDL2main.lib /NODEFAULTLIB:libcmtd.lib opengl32.lib shell32.lib