SDL problems with C++ [SOLVED]

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
elijahm

SDL problems with C++ [SOLVED]

Post by elijahm »

Hello. I've just installed SDL for C++, but I'm getting an error saying that the file is not found...

root@edward:~# g++ -Wall test.cpp -o test
test.cpp:1:49: error: SDL.h: No such file or directory

Do I need to put the SDL.h file into the same directory as my file or did I not install SDL properly?

Thanks.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
DrHu

Re: SDL problems with C++

Post by DrHu »

elijahm wrote:Do I need to put the SDL.h file into the same directory as my file or did I not install SDL properly
http://forums.linuxmint.com/viewtopic.p ... 61&start=0
More context data needed: software
  • Excuse my ignorance, but I prefer not to have to translate or find acronyms, so what is SDL exactly in you system
    --maybe someone else has another SDL ? that is not the same thing ?
Do I need to put the SDL.h file into the same directory...
That always helps, at least they know each other then!
--or make sure that the sdl directory is linked to the location, where you put the source code
--or put most data in /home/user/app_location
did I not install SDL properly
Who knows, you would have to provide much more data/context for ..
  • How I installed SDL
  • How I obtained SDL, source or deb package from Mint repository or elsewhere
  • Any configuration tests suggested by SDL installation instructions ?
    --that kind of thing
SDL Simple Direct Layer (multimedia/games), Linux
http://www.linuxjournal.com/article/4401
http://forums.libsdl.org/viewtopic.php?p=21733
http://pbeblog.wordpress.com/2008/06/10 ... ian-linux/

You might also want to take a look at code:blocks and IDE for C or C++
http://www.codeblocks.org/
elijahm

Re: SDL problems with C++

Post by elijahm »

nvm I got it
Locked

Return to “Software & Applications”