LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-04-2004, 01:27 PM   #1
rmhaddad
LQ Newbie
 
Registered: Jan 2004
Location: Bay Area, CA, USA
Posts: 11

Rep: Reputation: 0
URGENT: stat (libstat.a)?


Hi all,

I'm facing this error in every program that tries to access the system function stat. If I write a simple C program like this:
int main () {
struct stat *a;

(void) stat ("abc",a);
printf ("Hello\n");
}

and compile it using gcc (v2.96) then the program compiles and runs, however, if I compile it in the following way:
gcc -c 1.c
ld -lc 1.o
then I get "1.o(.text+0x12): undefined reference to `stat'"
I can't seem to find the library containing this function. I'm getting the same problems whenever I used a third party tool that accesses the stat function.

Any clues?
PS. I'm on RHL 7.3
Thank you very much!
RH
 
  


Reply



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
boot sector and lilo collapse !!!!! URGENT URGENT URGEN !!!!! frelihm Linux - Software 21 12-02-2009 10:21 AM
Urgent Question Regarding Urgent Questions! Need Help Now! Crashed_Again LQ Suggestions & Feedback 11 10-17-2007 08:07 PM
stat warney_out Programming 1 09-28-2004 03:37 AM
Linux stat to Windows Stat sridurai Programming 3 09-24-2004 04:07 PM
Urgent Urgent !!!! Mozilla Keeps All Your Deleted Emails !!!! odin123 Linux - Software 2 01-31-2004 02:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:33 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