Hi all, I'm new to programming in Linux and have picked up Kdevelop in the last few days. I'm currently building my first project with C++ and am playing with SDL. However, when I try and compile, i'm being told that SDL.h cannot be found. The compiler only appears to be looking in /usr/include/g++ and my SDL libraries are in /usr/include/SDL How can I open up its search path? Thanks in advance.
On Saturday 05 June 2004 00:28, Gedi wrote:
Hi all,
I'm new to programming in Linux and have picked up Kdevelop in the last few days. I'm currently building my first project with C++ and am playing with SDL.
However, when I try and compile, i'm being told that SDL.h cannot be found.
The compiler only appears to be looking in /usr/include/g++ and my SDL libraries are in /usr/include/SDL
How can I open up its search path?
Assuming you are using the automake buildsystem, you can open up the automake manager tab and click on the subproject settings and set some "external" include paths there. You are probably looking for a command, like `sdl-config --cflags` for includes and `sdl-config --libs` for external linking. Regards, -- tinus.
On Tuesday 08 June 2004 21:49, Martijn Houtman wrote:
Assuming you are using the automake buildsystem, you can open up the automake manager tab and click on the subproject settings and set some "external" include paths there. You are probably looking for a command, like `sdl-config --cflags` for includes and `sdl-config --libs` for external linking.
Yes, I would normally add `sdl-config --libs` from the command line. Can I put that in the includes section? If so, do you need to keep it in the backquotes to get bash to execute it? Thanks.
participants (2)
-
Gedi
-
Martijn Houtman