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.
SDL problems with C++ [SOLVED]
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
SDL problems with C++ [SOLVED]
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.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Re: SDL problems with C++
http://forums.linuxmint.com/viewtopic.p ... 61&start=0elijahm wrote:Do I need to put the SDL.h file into the same directory as my file or did I not install SDL properly
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 ?
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
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/