Hello, everybody!
I have a problem with my sublime. I want make a sdl2 app and for this task i create the new build system/ Here is code:
{
“cmd”: [“g++”, “${file}”,-I"C:\cpp\sdl2\include",-L"C:\cpp\sdl2\lib",-lSDL2main,-lSDL2, “-o”, “${file_path}/${file_base_name}”],
“file_regex”: “^(…[^:]):([0-9]+):?([0-9]+)?:? (.)$”,
“working_dir”: “${file_path}”,
“selector”: “source.makefile”,
“shell”: true,
“variants”:
[
{
“name”: “RunSDL2”,
“cmd”: [“g++”, “${file}”, “-o”, “${file_path}/${file_base_name}”, “&&”, “start”, “${file_path}/${file_base_name}”] ,
“shell”: true
}
]
}
but when i try to complie my simple sdl2 hello word code i cant see anything (no error, just clea console)
if i delete this text:
,-I"C:\cpp\sdl2\include",-L"C:\cpp\sdl2\lib",-lSDL2main,-lSDL2,
i have a error “where is sdl2.h file” (you know)
also in my work dir i have a Makefile. Here text:
build:
gcc -std=c99
./*.c
-I"C:\cpp\sdl2\include"
-L"C:\cpp\sdl2\lib"
-lmingw32
-lSDL2main
-lSDL2
-o example.exe
Help me please!