Author Topic: Undefined Reference To `stat'  (Read 4668 times)

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Undefined Reference To `stat'
« on: December 13, 2005, 09:20:24 am »
Hello,

I'm trying to compile the zSMS tools (getsms, putsms...) on the Z with the devimg provided by Silvio Iaccarino.

I get a few ld errors

Code: [Select]
extras.o: In function `movefile':
extras.o(.text+0x74): undefined reference to `stat'
extras.o(.text+0x74): reoaction truncated to fit: R_ARM_PC24 stat

and similar output.

I'm not a compiler expert, so I'd be grateful for any pointers about

* what this means exactly
* there I can find the symbol "stat" (any libs missing?)
* for the future: How can I find out myself what's missing if I get undefined references?

Background is: I'm trying to modify getsms in a way that it creates mbox-compliant files with SMSes from the mobile phone, so that I can use thee files form within mutt to read and reply to SMS.

Thanks

daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0