LinuxQuestions.org
Review your favorite Linux distribution.
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 09-18-2008, 12:12 PM   #1
ikarthik
LQ Newbie
 
Registered: Sep 2008
Location: chennai
Posts: 3

Rep: Reputation: 0
gcc in ubuntu


hi guys i need to compile a c source code (only header file is shown)which i should compile to install my ethernet card in ubuntu 8.04 linux;

but the gcc compiler is not compiling the code and says "header file not included" and other errors;
"What TO do guys"

these are the header files
the code is too long to post


/*******************************************************************
* sc92031.c - Silan Fast Ethernet Netcard Driver *
*******************************************************************/

#define DRV_NAME "silan"
#define DRV_VERSION "1.0.0"

#define SILAN_DRIVER_NAME DRV_NAME" Fast Ethernet driver v"DRV_VERSION

#ifndef __KERNEL__
#define __KERNEL__
#endif

#include <linux/config.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/compiler.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/rtnetlink.h>
#include <linux/ethtool.h>
#include <linux/crc32.h>
#include <linux/delay.h>
#include <asm/io.h>
#include <asm/delay.h>
#include <asm/errno.h>
#include <asm/uaccess.h>

Last edited by ikarthik; 09-19-2008 at 02:09 PM.
 
Old 09-18-2008, 12:25 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,863

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
What is the name of the program that you are trying to compile?

What are the names of the headers that gcc cannot find?

--------------------
Steve Stites

Last edited by jailbait; 09-18-2008 at 12:27 PM.
 
Old 09-19-2008, 01:50 PM   #3
ikarthik
LQ Newbie
 
Registered: Sep 2008
Location: chennai
Posts: 3

Original Poster
Rep: Reputation: 0
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

these are the header files iam trying to compile.
 
Old 09-19-2008, 02:10 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,074

Rep: Reputation: 4377Reputation: 4377Reputation: 4377Reputation: 4377Reputation: 4377Reputation: 4377Reputation: 4377Reputation: 4377Reputation: 4377Reputation: 4377Reputation: 4377
Quote:
Originally Posted by ikarthik View Post
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

these are the header files iam trying to compile.
You don't compile header files; you include them in source code.

As jailbait asked....what program are you trying to compile???? What are the names of the headers you CAN'T find?
 
Old 09-19-2008, 02:10 PM   #5
ikarthik
LQ Newbie
 
Registered: Sep 2008
Location: chennai
Posts: 3

Original Poster
Rep: Reputation: 0
hi guys i need to compile a c source code (only header file is shown)which i should compile to install my ethernet card in ubuntu 8.04 linux;

but the gcc compiler is not compiling the code and says "header file not included" and other errors;
"What TO do guys"

these are the header files
the code is too long to post


/*******************************************************************
* sc92031.c - Silan Fast Ethernet Netcard Driver *
*******************************************************************/

#define DRV_NAME "silan"
#define DRV_VERSION "1.0.0"

#define SILAN_DRIVER_NAME DRV_NAME" Fast Ethernet driver v"DRV_VERSION

#ifndef __KERNEL__
#define __KERNEL__
#endif

#include <linux/config.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/compiler.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/rtnetlink.h>
#include <linux/ethtool.h>
#include <linux/crc32.h>
#include <linux/delay.h>
#include <asm/io.h>
#include <asm/delay.h>
#include <asm/errno.h>
#include <asm/uaccess.h>
 
  


Reply

Tags
gcc, ubuntu


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
Reinstalling GCC on ubuntu darkjeffro Linux - Software 2 02-01-2007 07:19 PM
gcc 3.4.3 installation on ubuntu vvrts13 Linux - Software 1 10-15-2005 03:07 AM
gcc on Ubuntu aznluvsmc Ubuntu 3 08-06-2005 12:59 AM
Ubuntu and GCC help! Jmcatch742 Linux - Distributions 2 10-25-2004 03:58 PM

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

All times are GMT -5. The time now is 11:08 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration