i dont understand my error log
i dont understand my error log
C:\PSPSDK\MYPROJ~1\SALVAT~1>make
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=
-o main.o main.c
main.c:8:2: error: invalid preprocessing directive #inlcude
main.c: In function 'main':
main.c:79: error: 'O_RDONLY' undeclared (first use in this function)
main.c:79: error: (Each undeclared identifier is reported only once
main.c:79: error: for each function it appears in.)
main.c:93:1: warning: "PATH" redefined
main.c:84:1: warning: this is the location of the previous definition
main.c:102:1: warning: "PATH" redefined
main.c:93:1: warning: this is the location of the previous definition
main.c:111:1: warning: "PATH" redefined
main.c:102:1: warning: this is the location of the previous definition
main.c:120:1: warning: "PATH" redefined
main.c:111:1: warning: this is the location of the previous definition
main.c:129:1: warning: "PATH" redefined
main.c:120:1: warning: this is the location of the previous definition
main.c:138:1: warning: "PATH" redefined
main.c:129:1: warning: this is the location of the previous definition
MAKE: *** [main.o] Error 1
whats it mean by " invalid preprocessing directive #inlcude"?
and why isnt O_WRONLY or any other of the commands working?
btw the include is #include <pspiofilemgr.h>
psp-gcc -I. -IC:/pspsdk/psp/sdk/include -O2 -G0 -Wall -D_PSP_FW_VERSION=
-o main.o main.c
main.c:8:2: error: invalid preprocessing directive #inlcude
main.c: In function 'main':
main.c:79: error: 'O_RDONLY' undeclared (first use in this function)
main.c:79: error: (Each undeclared identifier is reported only once
main.c:79: error: for each function it appears in.)
main.c:93:1: warning: "PATH" redefined
main.c:84:1: warning: this is the location of the previous definition
main.c:102:1: warning: "PATH" redefined
main.c:93:1: warning: this is the location of the previous definition
main.c:111:1: warning: "PATH" redefined
main.c:102:1: warning: this is the location of the previous definition
main.c:120:1: warning: "PATH" redefined
main.c:111:1: warning: this is the location of the previous definition
main.c:129:1: warning: "PATH" redefined
main.c:120:1: warning: this is the location of the previous definition
main.c:138:1: warning: "PATH" redefined
main.c:129:1: warning: this is the location of the previous definition
MAKE: *** [main.o] Error 1
whats it mean by " invalid preprocessing directive #inlcude"?
and why isnt O_WRONLY or any other of the commands working?
btw the include is #include <pspiofilemgr.h>
Re: i dont understand my error log
Just that, ie inlcude is not a valid #directive for the preprocessor.whats it mean by "invalid preprocessing directive #inlcude
I think you'll find that's what it should be, not what you've actually written.btw the include is #include <pspiofilemgr.h>
Read the error again:
inLCude and inCLude are two different words.main.c:8:2: error: invalid preprocessing directive #inlcude
NB: Editors with syntax highlighting are very useful: "Why didnt my #inlcude change to the colour of all other preprocessor commands?" "Oright, I typoed it" *fix*
Damn, I need a decent signature!
-
- Posts: 18
- Joined: Sat Dec 05, 2009 1:02 am
Undeclared means undeclared, period.S4LVAT10N wrote:lol ya i just figured that out. thanks. i type to fast and dont look at what im typing so i mess up alot
EDIT: its still saying O_WRONLY and O_CREAT are undeclared...
Common mistake: typo & missing include or define/enum etc.
Compiling error indicates your code is syntactically incorrect.
but thats the thing. for the most part i could make decent programs for the pc. before i started trying to make a function that made a log on the psp i tested it first on the pc and it worked fine. when i did it on the psp i had not known you needed to have PSP in front. i kept doing O_WRONLY. after i relized i needed to do PSP_O_WRONLY and i already finished the log this morning. thought i do want to learn more on pc i am alot more interested in psp so i want to learn it first. even if it makes life harder for me.
btw the path redefined isnt an error. i want it like that and works the way i wanted it to
btw the path redefined isnt an error. i want it like that and works the way i wanted it to