Error while compiling in DEV-C++(SDL)

Asked

Viewed 130 times

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

And by Devpak(DOWNLOAD)

  • 1

    You have the SDL installed?

  • I edited my question to better understand.

  • You specified the SDL directory as explained in the tutorial? Dev C++Compiler Options flap Directoriesflap C++ includes, see the image.

  • The build problem has been solved, but now this i.stack.Imgur.com/Ntba0.png problem happens in the Makefile.win file

  • 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.

  • Yes, but this warning does not allow running the program.

  • What happens if you confirm the message and re-compile the code?

  • The message appears again.

  • Click on the "Compile Log" tab and post what appeared there.

  • Appeared as follows: http://pastebin.com/Gk70w0CZ

  • 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.

  • I also suggest you do the [tour] if you haven’t done it yet.

  • I’ll open a new question

  • 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

  • Yes, I did everything exactly like the tutorial, however it keeps giving the same error in Makefile.win

Show 10 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.