From: Vincent Favre-N. <vi...@us...> - 2005-05-03 10:47:14
|
On Mardi 03 Mai 2005 11:20, Yuri D'Elia wrote: > On Tue, May 03, 2005 at 05:33:51AM +0200, Vincent Favre-Nicolin wrote: > > The only problem is that this implies to have /usr/include/GL in the > > include path, not only the standard /usr/include. When I look at the > > headers in /usr/include/GL, *all* of them use the syntax #include > > "GL/header.h" to include another GL-related header. > > Hi Vicent. > > For files included with "" syntax the path containing the source file is > searched first. The inclusion scheme is correct. > > > in glut.h and freeglut.h ? Adding a -I/usr/include/GL is trivial, but it > > breaks (although trivially) existing glut code. > > It should not. What compiler/platform are you using? It's a Fedora Core 3 PC (I only got a temporary acces). OK, I reviewed *more* carefully my compiling options and found my mistak= e.=20 It turns out that for some strange reason I am using a "gcc -I- [...]"=20 option, and the -I- option (now deprecated, see=20 http://gcc.gnu.org/onlinedocs/gcc-4.0.0/gcc/Directory-Options.html) implies= =20 that the current directory (where the file calling the include is) is not=20 searched. Sorry for the mistake, and thanks for the answer and the great project ! Cheers, Vincent =2D-=20 Vincent Favre-Nicolin Universit=E9 Joseph Fourier http://v.favrenicolin.free.fr ObjCryst & Fox : http://objcryst.sourceforge.net |