![]() |
| | #1 |
| Registered User Join Date: Jun 2006
Posts: 6
| Errors Concerning Include Files Code: In file included from /usr/include/asm/elf.h:11, from /usr/include/linux/elf.h:6, from code.c:73: /usr/include/asm/system.h:302: error: expected declaration specifiers or ‘...’ before ‘u8’ /usr/include/asm/system.h:302: error: expected declaration specifiers or ‘...’ before ‘u8’ /usr/include/asm/system.h:303: error: expected declaration specifiers or ‘...’ before ‘u16’ /usr/include/asm/system.h:303: error: expected declaration specifiers or ‘...’ before ‘u16’ /usr/include/asm/system.h:304: error: expected declaration specifiers or ‘...’ before ‘u32’ /usr/include/asm/system.h:304: error: expected declaration specifiers or ‘...’ before ‘u32’ /usr/include/asm/system.h: In function ‘cmpxchg_386’: /usr/include/asm/system.h:311: error: too many arguments to function ‘cmpxchg_386_u8’ /usr/include/asm/system.h:313: error: too many arguments to function ‘cmpxchg_386_u16’ /usr/include/asm/system.h:315: error: too many arguments to function ‘cmpxchg_386_u32’ |
| bl0w is offline | |
| | #2 |
| and the hat of Jobseeking Join Date: Aug 2001 Location: The edge of the known universe
Posts: 21,688
| Those seem to be unusual files to be including for someone new to C. What happened to just stdio.h and hello world? |
| Salem is offline | |
| | #3 |
| Registered User Join Date: Jun 2006
Posts: 6
| This is coming from code not written by me. I'm just trying to compile it. |
| bl0w is offline | |
| | #4 |
| and the hat of Jobseeking Join Date: Aug 2001 Location: The edge of the known universe
Posts: 21,688
| Yeah, this isn't really a board for "Hey, I just downloaded foo from the bar website, can you help me compile it on the baz compiler". We're here to help you learn C and C++ by you writing your own programs, and asking questions about it here. But you could try your luck by posting the URL of where you downloaded the program from, and perhaps we can suggest some approaches to try. |
| Salem is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Unable to open include file SDL_audio.h | rraj.be | C Programming | 2 | 06-28-2008 08:04 PM |
| Help me with function call | NeMewSys | C++ Programming | 16 | 05-22-2008 01:53 PM |
| Why am I getting these errors?? | maxthecat | Windows Programming | 3 | 02-03-2006 01:00 PM |
| errors using my parser- MSVC++ 6, bhtypes.h | AeroHammer | C++ Programming | 6 | 01-25-2005 07:11 PM |
| to #include or not to #include | krygen | C++ Programming | 9 | 12-25-2004 12:06 AM |