LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-04-2005, 06:12 AM   #1
ashi_sheetal
LQ Newbie
 
Registered: Dec 2004
Location: pune,india
Posts: 1

Rep: Reputation: 0
subject: undefined reference to errno


Adding system call in linux

Hello,

I am adding a system call in Linux. I am using Kernel 2.4.20-8.

The kernel compilation with my system call is fine. But When I compile the code calling this new system call the following message is produced.

/tmp/ccoNDmld.o(.text+0x23): In function 'myservice':
: undefined reference to 'errno'
collect2: ld returned 1 exit status

"myservice" is the new system call I have implemented.

pl note: i have already included 'errno.h' in my 'service.h' file


Can someone point to the reason? And the solution to this problem. Am I missing some thing here?
looking forward for ur reply.
 
  


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
Undefined reference, why? george_mercury Programming 4 05-07-2009 12:15 AM
Undefined Reference ChemicalBurn Programming 2 02-14-2005 03:01 AM
undefined reference mp4-10 Programming 3 01-25-2005 12:38 PM
undefined reference to 'errno' kbridger Programming 2 10-07-2003 05:44 PM
Mysql install error in RH9 -undefined reference to errno murugesan_n Linux - Software 0 09-09-2003 10:12 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:45 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
Open Source Consulting | Domain Registration