0
I did all the procedure to use SDL2, but when I compile the following error happens
[Error]SDL/SDL.h: No such file or directory
This is the content of the line where the error occurs
<SDL/SDL.h>
What should I do ?? I researched a lot and found nothing to solve my problem.
I installed the manual form
You have the SDL installed?
– stderr
I edited my question to better understand.
– Lucas Caresia
You specified the SDL directory as explained in the tutorial? Dev C++ ⇢ Compiler Options flap
Directories
flapC++ includes
, see the image.– stderr
The build problem has been solved, but now this i.stack.Imgur.com/Ntba0.png problem happens in the Makefile.win file
– Lucas Caresia
It is not an error, it is just a message warning that the file has been modified, and so it is necessary to reload it again.
– stderr
Yes, but this warning does not allow running the program.
– Lucas Caresia
What happens if you confirm the message and re-compile the code?
– stderr
The message appears again.
– Lucas Caresia
Click on the "Compile Log" tab and post what appeared there.
– Victor Stafusa
Appeared as follows: http://pastebin.com/Gk70w0CZ
– Lucas Caresia
Lucas, despite the help of colleague @qmechanik, your question has already changed its error twice (Initially it was a problem with the missing configuration of the directory of includes, now it is a problem with the lack of configuration of the directory of libs - you followed carefully the tutorial that mentions?). The fact is that the SOPT is not a forum, and intends to have objective questions that can be answered equally objectively (to be useful also for other people besides you). If throughout your work/learning/leisure you have other questions, post on different questions.
– Luiz Vieira
I also suggest you do the [tour] if you haven’t done it yet.
– Luiz Vieira
I’ll open a new question
– Lucas Caresia
I don’t know why Makefile is being changed, but in the log there are still Linker errors: in addition to indicating the paths (paths) for the SDL headers, you also need to specify the libraries (Libraries). Is that missing? http://lazyfoo.net/SDL_tutorials/lesson01/windows/devcpp/lib.png
– njsg
Yes, I did everything exactly like the tutorial, however it keeps giving the same error in Makefile.win
– Lucas Caresia