Build Error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Build Error

313 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by xpresso_1769 on Tue Jul 31 00:50:52 MST 2012
Hallo everybody,
I got a build error and I have no idea what I did wrong! Here the error message:


Quote:

[SIZE=2][LEFT][SIZE=2]c:\code_red\redsuite_4.2.2_361\redsuite\tools\bin\../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/include/redlib/sys/libconfig-arm.h:143:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'struct'[/SIZE][/LEFT]
[SIZE=2]make: *** [src/cr_startup_lpc17.o] Error 1[/SIZE]
[/SIZE]



Here is the code section from "libconfig-arm.h".The struct __FILE_struct is at line 143:
[B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]#define [/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2]MAXSTORE 0x03ffffff [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* used only by alloc.c */[/COLOR][/SIZE][/COLOR][/SIZE]
 
[LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]#define [/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2]HOST_LACKS_ALLOC 1[/SIZE][/LEFT]
 
 
 
[LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]struct [/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2]__FILE_struct[/SIZE][/LEFT]
 
[SIZE=2]{[/SIZE]
 
 
[LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]unsigned[/COLOR][/SIZE][/COLOR][/SIZE][/B][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]char[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] *[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]__ptr[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2];[/SIZE]

[B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]int [/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]__icnt[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]; [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* two separate _cnt fields so we can police ... */[/COLOR][/SIZE][/COLOR][/SIZE]
[LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]int [/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]__ocnt[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]; [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* ... restrictions that read/write are fseek separated */[/COLOR][/SIZE][/COLOR][/SIZE]
[B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]int [/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]__flag[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2];[/SIZE]
[SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/*[/COLOR][/SIZE][/COLOR][/SIZE]
[SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]* The fields below here are for system use only.[/COLOR][/SIZE][/COLOR][/SIZE]
[SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]*/[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][COLOR=#3f7f5f]
[/COLOR][/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]unsigned[/COLOR][/SIZE][/COLOR][/SIZE][/B][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]char[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] *[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]__base[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]; [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* buffer base */[/COLOR][/SIZE][/COLOR][/SIZE]
[B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]#ifndef [/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2]FILEHANDLE[/SIZE][/LEFT]
[/LEFT]

 
 
 
 
[B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]#define [/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2]FILEHANDLE [/SIZE][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]int[/COLOR][/SIZE][/COLOR][/SIZE][/B]
 
[SIZE=2][COLOR=#7f0055][B][SIZE=2][COLOR=#7f0055]#endif[/COLOR][/SIZE][/B]
 
 
[LEFT][/COLOR][/SIZE][SIZE=2]FILEHANDLE [/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]__file[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]; [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* file handle as used by lower level code */[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]
 
 
 
[B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]long[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]__pos[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]; [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* position in file */[/COLOR][/SIZE][/COLOR][/SIZE]
 
 
[LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]int[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]__bufsiz[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]; [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* maximum buffer size */[/COLOR][/SIZE][/COLOR][/SIZE]

[B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]int[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]__signature[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]; [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* used with temporary files */[/COLOR][/SIZE][/COLOR][/SIZE]
[LEFT][B][SIZE=2][COLOR=#7f0055][SIZE=2][COLOR=#7f0055]struct[/COLOR][/SIZE][/COLOR][/SIZE][/B][SIZE=2] __extradata *[/SIZE][SIZE=2][COLOR=#0000c0][SIZE=2][COLOR=#0000c0]__extrap[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]; [/SIZE][SIZE=2][COLOR=#3f7f5f][SIZE=2][COLOR=#3f7f5f]/* pointer to information about stream */[/COLOR][/SIZE][/COLOR][/SIZE][/LEFT]
[/LEFT]

 
 
 
 
[LEFT][SIZE=2]};[/SIZE][/LEFT]


[LEFT]Thanks in advance![/LEFT]
0 Kudos
4 Replies

300 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by larryvc on Tue Jul 31 12:47:58 MST 2012

Quote: xpresso_1769
Thanks, I found my mistake. It was a syntax problem!


Posting the fix is always a good idea.  It helps others see what was wrong in the first place.:)
0 Kudos

300 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by xpresso_1769 on Tue Jul 31 05:38:07 MST 2012
Thanks, I found my mistake. It was a syntax problem!
0 Kudos

300 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Tue Jul 31 02:46:06 MST 2012
Describe what you did to get the error. Even better, post a project that reproduces the problem.
0 Kudos

300 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by xpresso_1769 on Tue Jul 31 02:18:53 MST 2012
Has nobody an idea or should I post something else?

Thanks!
0 Kudos