Re: getmicrouptime/microuptime undefined reference to `microuptime'

2006-07-29 Thread Adam PAPAI

Adam PAPAI wrote:

Hi,

I'm lookin for a solution on getting the system uptime via syscall.


Hm. It seems sysctl(3) could tell me the uptime.

#include 
#include 

Thanks anyway :)

--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735 (Hungary)
Phone: +49 176-67264167 (Germany)



getmicrouptime/microuptime undefined reference to `microuptime'

2006-07-29 Thread Adam PAPAI

Hi,

I'm lookin for a solution on getting the system uptime via syscall.

I tried to use the microuptime/getmicrouptime but every time I intended 
to compile it, I got the following error:


/tmp//ccy16835.o(.text+0x20): In function `main':
: undefined reference to `microuptime'
collect2: ld returned 1 exit status

I included the appropriate headers:
#include 
#include 

I didn't find other funtions to get the uptime for a system. Did I miss 
something? (library or something)


Thanks in advance

--
Adam PAPAI
D i g i t a l Influence
http://www.digitalinfluence.hu
E-mail: [EMAIL PROTECTED]
Phone: +36 30 33-55-735 (Hungary)
Phone: +49 176-67264167 (Germany)