C Board  

Go Back   C Board > Platform Specific Boards > Linux Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 06-20-2006, 08:47 PM   #1
Registered User
 
Join Date: Jun 2006
Posts: 6
Errors Concerning Include Files

I'm trying to compile this code and I keep getting these errors:

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’
Could anyone help me here? I'm new to linux and C.
bl0w is offline   Reply With Quote
Old 06-21-2006, 01:05 AM   #2
and the hat of Jobseeking
 
Salem's Avatar
 
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?
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.

Salem is offline   Reply With Quote
Old 06-21-2006, 10:58 AM   #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   Reply With Quote
Old 06-21-2006, 11:21 AM   #4
and the hat of Jobseeking
 
Salem's Avatar
 
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.
__________________
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.

Salem is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 09:21 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22