Anuncios Google

Programacion en C: Error!

Hola estoy siguiendo este tutorial para programar en C pero al complilar me da este error hasta usando el makefile i el main.c que hay en el tuto:

 

c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/sys/types.h:339:2: er

ror: #endif without #if
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/sys/types.h:341:2: er
ror: #endif without #if
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/sys/types.h:345:2: er
ror: #endif without #if
In file included from c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include
/pngconf.h:243,
from c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include
/png.h:363,
from Astaroth.h:11,
from main.c:3:
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:170: error: e
xpected '=', ',', ';', 'asm' or '__attribute__' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:172: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:173: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:174: error: e
xpected '=', ',', ';', 'asm' or '__attribute__' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:175: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:176: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:177: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:178: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:182: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:185: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:186: error: e
xpected declaration specifiers or '...' before 'FILE'
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:187: error: e
xpected declaration specifiers or '...' before 'FILE'
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:188: error: e
xpected declaration specifiers or '...' before 'FILE'
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:189: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:192: error: e
xpected declaration specifiers or '...' before 'FILE'
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:195: error: e
xpected declaration specifiers or '...' before 'FILE'
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:196: error: e
xpected declaration specifiers or '...' before 'FILE'
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:197: error: e
xpected declaration specifiers or '...' before 'FILE'
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:201: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:203: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:207: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:209: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:210: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:211: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:212: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:213: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:216: error: e
xpected '=', ',', ';', 'asm' or '__attribute__' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:226: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:227: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:234: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:245: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:246: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:247: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:262: error: e
xpected '=', ',', ';', 'asm' or '__attribute__' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:264: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:265: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:266: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:267: error: e
xpected '=', ',', ';', 'asm' or '__attribute__' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:268: error: e
xpected declaration specifiers or '...' before 'FILE'
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:269: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:270: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:271: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:273: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:274: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:275: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:276: error: e
xpected declaration specifiers or '...' before 'FILE'
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:288: error: e
xpected '=', ',', ';', 'asm' or '__attribute__' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:289: error: e
xpected '=', ',', ';', 'asm' or '__attribute__' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:290: error: e
xpected declaration specifiers or '...' before 'FILE'
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:291: error: e
xpected declaration specifiers or '...' before 'FILE'
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:292: error: e
xpected declaration specifiers or '...' before 'FILE'
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:293: error: e
xpected declaration specifiers or '...' before 'FILE'
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:294: error: e
xpected declaration specifiers or '...' before 'FILE'
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:316: error: e
xpected '=', ',', ';', 'asm' or '__attribute__' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:318: error: e
xpected declaration specifiers or '...' before 'FILE'
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:322: error: e
xpected declaration specifiers or '...' before 'FILE'
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:323: error: e
xpected declaration specifiers or '...' before 'FILE'
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:330: error: e
xpected declaration specifiers or '...' before 'FILE'
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:331: error: e
xpected declaration specifiers or '...' before 'FILE'
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:337: error: e
xpected declaration specifiers or '...' before 'FILE'
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:338: error: e
xpected declaration specifiers or '...' before 'FILE'
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:364: error: e
xpected ')' before '*' token
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:365: error: e
xpected declaration specifiers or '...' before 'FILE'
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/stdio.h:372: error: e
xpected '=', ',', ';', 'asm' or '__attribute__' before '*' token
In file included from c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include
/pngconf.h:286,
from c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include
/png.h:363,
from Astaroth.h:11,
from main.c:3:
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/sys/types.h:335: erro
r: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
In file included from c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include
/pngconf.h:286,
from c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include
/png.h:363,
from Astaroth.h:11,
from main.c:3:
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/sys/types.h:336:2: er
ror: #endif without #if
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/sys/types.h:337:2: er
ror: #endif without #if
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/sys/types.h:339:2: er
ror: #endif without #if
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/sys/types.h:341:2: er
ror: #endif without #if
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/sys/types.h:345:2: er
ror: #endif without #if
In file included from c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include
/pngconf.h:313,
from c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include
/png.h:363,
from Astaroth.h:11,
from main.c:3:
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/setjmp.h:14: error: e
xpected ')' before '__jmpb'
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/setjmp.h:15: error: e
xpected ')' before '__jmpb'
In file included from c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include
/time.h:29,
from c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include
/pngconf.h:1037,
from c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include
/png.h:363,
from Astaroth.h:11,
from main.c:3:
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/sys/types.h:335: erro
r: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
In file included from c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include
/time.h:29,
from c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include
/pngconf.h:1037,
from c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include
/png.h:363,
from Astaroth.h:11,
from main.c:3:
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/sys/types.h:336:2: er
ror: #endif without #if
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/sys/types.h:337:2: er
ror: #endif without #if
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/sys/types.h:339:2: er
ror: #endif without #if
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/sys/types.h:341:2: er
ror: #endif without #if
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/sys/types.h:345:2: er
ror: #endif without #if
In file included from c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include
/pngconf.h:1037,
from c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include
/png.h:363,
from Astaroth.h:11,
from main.c:3:
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/time.h:252: error: ex
pected identifier or '(' before 'int'
In file included from c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include
/pngconf.h:1037,
from c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include
/png.h:363,
from Astaroth.h:11,
from main.c:3:
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/time.h:255:2: error:
#endif without #if
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/time.h:261:2: error:
#endif without #if
In file included from c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include
/png.h:363,
from Astaroth.h:11,
from main.c:3:
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/pngconf.h:1144: error
: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
In file included from Astaroth.h:11,
from main.c:3:
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/png.h:1076: error: ex
pected specifier-qualifier-list before 'jmp_buf'
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/png.h:1826: error: ex
pected declaration specifiers or '...' before 'png_FILE_p'
In file included from c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include
/sys/time.h:9,
from C:\PSPDev/psp/sdk/include/psputils.h:32,
from C:\PSPDev/psp/sdk/include/pspuser.h:26,
from C:\PSPDev/psp/sdk/include/pspkernel.h:18,
from Astaroth.h:21,
from main.c:3:
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/sys/types.h:335: erro
r: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
In file included from c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include
/sys/time.h:9,
from C:\PSPDev/psp/sdk/include/psputils.h:32,
from C:\PSPDev/psp/sdk/include/pspuser.h:26,
from C:\PSPDev/psp/sdk/include/pspkernel.h:18,
from Astaroth.h:21,
from main.c:3:
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/sys/types.h:336:2: er
ror: #endif without #if
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/sys/types.h:337:2: er
ror: #endif without #if
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/sys/types.h:339:2: er
ror: #endif without #if
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/sys/types.h:341:2: er
ror: #endif without #if
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/sys/types.h:345:2: er
ror: #endif without #if
In file included from C:\PSPDev/psp/sdk/include/psputils.h:32,
from C:\PSPDev/psp/sdk/include/pspuser.h:26,
from C:\PSPDev/psp/sdk/include/pspkernel.h:18,
from Astaroth.h:21,
from main.c:3:
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/sys/time.h:37: error:
field 'it_interval' has incomplete type
c:\pspdev\bin\../lib/gcc/psp/4.1.0/../../../../psp/include/sys/time.h:38: error:
field 'it_value' has incomplete type
In file included from main.c:3:
Astaroth.h: In function 'writetoflashone':
Astaroth.h:96: warning: implicit declaration of function 'open'
Astaroth.h: At top level:
Astaroth.h:237: warning: 'pspDebugScreenPrintf' is an unrecognized format functi
on type
Astaroth.h: In function 'loadusb':
Astaroth.h:301: warning: implicit declaration of function 'pspSdkLoadStartModule
'
Astaroth.h: At top level:
Astaroth.h:364: warning: 'pspDebugScreenPrintf' is an unrecognized format functi
on type
Astaroth.h:489: warning: 'struct SceKernelLoadExecVSHParam' declared inside para
meter list
Astaroth.h:500: warning: 'struct SceKernelLoadExecVSHParam' declared inside para
meter list
Astaroth.h:511: warning: 'struct SceKernelLoadExecVSHParam' declared inside para
meter list
Astaroth.h:522: warning: 'struct SceKernelLoadExecVSHParam' declared inside para
meter list
Astaroth.h:533: warning: 'struct SceKernelLoadExecVSHParam' declared inside para
meter list
Astaroth.h:544: warning: 'struct SceKernelLoadExecVSHParam' declared inside para
meter list
Astaroth.h:555: warning: 'struct SceKernelLoadExecVSHParam' declared inside para
meter list
main.c: In function 'main':
main.c:52: warning: unused variable 'currentPad'
main.c:57: warning: control reaches end of non-void function
make: *** [main.o] Error 1

Terminado

 


Anuncios Google

Opciones de visualización de comentarios

Seleccione la forma que prefiera para mostrar los comentarios y haga clic en «Guardar las opciones» para activar los cambios.
Imagen de the dragon lives

Por lo que veo es problema

Por lo que veo es problema de las librerías, o no las tienes agregadas al compilador o no están bien declaradas

Opciones de visualización de comentarios

Seleccione la forma que prefiera para mostrar los comentarios y haga clic en «Guardar las opciones» para activar los cambios.