LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-12-2009, 11:35 AM   #1
Jane2008
Member
 
Registered: Oct 2008
Posts: 36

Rep: Reputation: 15
libnet-functions.h:1432:error:expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before


Hello,
I'm trying to make an application with libnet and the following error shows up:
/usr/include/./libnet/libnet-functions.h:1432: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘u_int32_t’
I looked into the libnet-functions.h file and found that there is a "inline" used before "u_int32_t". It seems that the compiler can't recognize the keyword "inline". How can I fix this problem? Thanks in advance.
 
Old 11-13-2009, 04:33 AM   #2
JohnGraham
Member
 
Registered: Oct 2009
Posts: 467

Rep: Reputation: 139Reputation: 139
Quote:
Originally Posted by Jane2008 View Post
Hello,
I'm trying to make an application with libnet and the following error shows up:
/usr/include/./libnet/libnet-functions.h:1432: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘u_int32_t’
I looked into the libnet-functions.h file and found that there is a "inline" used before "u_int32_t". It seems that the compiler can't recognize the keyword "inline". How can I fix this problem? Thanks in advance.
That's... strange. The "inline" directive is fairly standard.

1) Is that error message the *very first* error message that appears? If not, forget about it and go back to the first one the compiler spits out.

2) What compiler are you using?

John G
 
Old 11-13-2009, 04:36 AM   #3
JohnGraham
Member
 
Registered: Oct 2009
Posts: 467

Rep: Reputation: 139Reputation: 139
Quote:
Originally Posted by Jane2008 View Post
‘;’, ‘asm’ or ‘__attribute__’ before ‘u_int32_t’
Oh no, I was being stoopid. Change 'u_int32_t' to 'uint32_t'.

John G
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
slax13 libnet compile error leftty Slackware 4 11-02-2009 01:45 PM
unable to resolve compilation error;./List.c:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ amolgupta Programming 3 01-09-2009 11:09 AM
Error & warnings in installing Libnet-1.1.x & Libnet-config not found error. sakthivelbatusai Linux - Networking 0 03-15-2007 12:14 AM
Trying to install ettercap: error with libnet:wrong version?? Baix Linux - Newbie 1 02-22-2005 05:34 PM
How to use C functions in asm? LongName Programming 4 08-29-2004 01:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration