new came

elekis elekis at gawab.com
Wed Sep 1 15:22:14 BST 2004


hi, I ve just tried kdevelop, and I like, (I'm discovering again now,and 
it's cool)

But I have a trouble with include mod.
i try to compil that in a project. ( the project is constructed)

main.cc
-------------------------------------------------------------------------------------------

#include "SDL.h"   /* All SDL App's need this */
#include <stdio.h>

int main() {
    
    printf("Initializing SDL.\n");
    
    /* Initialize defaults, Video and Audio */
    if((SDL_Init(SDL_INIT_VIDEO|SDL_INIT_AUDIO)==-1)) { 
        printf("Could not initialize SDL: %s.\n", SDL_GetError());
        exit(-1);
    }

    printf("SDL initialized.\n");

    printf("Quiting SDL.\n");
    
    /* Shutdown all subsystems */
    SDL_Quit();
    
    printf("Quiting....\n");

    exit(0);
}

but when i compil, i can just going to fuck myself.
duild-->configure is good
but build --> make say that


make all-recursive
make[1]: Entering directory `/home/elekis/Projects/pdn'
Making all in pdn
make[2]: Entering directory `/home/elekis/Projects/pdn/pdn'
source='main.cpp' object='main.o' libtool=no \
depfile='.deps/main.Po' tmpdepfile='.deps/main.TPo' \
depmode=gcc3 /bin/sh ../admin/depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wnon-virtual-dtor -Wno-long-long 
-Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes 
-Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align 
-Wconversion -O2 -O3 -g3 -Wall -fno-exceptions -fno-check-new -c -o 
main.o `test -f 'main.cpp' || echo './'`main.cpp
In file included from /usr/include/c++/3.3/backward/iostream.h:31,
from main.cpp:22:
/usr/include/c++/3.3/backward/backward_warning.h:32:2: warning: #warning 
This file includes at least one deprecated or antiquated header. Please 
consider using one of the 32 headers found in section 17.4.1.2 of the 
C++ standard. Examples include substituting the <X> header for the <X.h> 
header for C++ includes, or <sstream> instead of the deprecated header 
<strstream.h>. To disable this warning use -Wno-deprecated.

important sentence
--------------------------------------
main.cpp:24:49: SDL.h: No such file or directory
-----------------------
main.cpp: In function `int main()':
main.cpp:32: error: `SDL_INIT_VIDEO' undeclared (first use this function)
main.cpp:32: error: (Each undeclared identifier is reported only once 
for each
function it appears in.)
main.cpp:32: error: `SDL_INIT_AUDIO' undeclared (first use this function)
main.cpp:32: error: `SDL_Init' undeclared (first use this function)
main.cpp:33: error: `SDL_GetError' undeclared (first use this function)
main.cpp:42: error: `SDL_Quit' undeclared (first use this function)
make[2]: make[2]: Leaving directory `/home/elekis/Projects/pdn/pdn'
*** [main.o] Error 1
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/elekis/Projects/pdn'
make: *** [all] Error 2
*** failed ***


so , he doesn't found  sdl.h even it's #include <SDL.h>
the path  of sdl.h is /usr/include/SDL/SDL.h

how can i have to say in the compiler  (the makefile in fact) to include 
thta path in his search???

thanks
a+++
PS:
I believed that g++ looked always in /usr/include ???


-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«



More information about the KDevelop mailing list