LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 05-30-2006, 07:21 AM   #1
girish_hilage
Member
 
Registered: Oct 2003
Posts: 78

Rep: Reputation: 15
compilation problem


Hi,
On my AIX machine in one of my program I have declared a vaiable "m_start_time" of "hrtime_t" type. I also have included the file <sys/time.h>.

But, during compilation its giving the error :
"The text m_start_time" is unexpected. 'hrtime_t' may be undeclared or ambiguous".

Can anybody please let me know what could be the problem?

Regards,
Girish
 
Old 05-30-2006, 10:02 AM   #2
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Where did you dig up that type? It does not exist on my AIX machines.
 
Old 05-31-2006, 04:10 AM   #3
girish_hilage
Member
 
Registered: Oct 2003
Posts: 78

Original Poster
Rep: Reputation: 15
Sorry for not being comprehensive enough while posting the question.
Actually I want my program to be compatible on both Sun & AIX. On Sun the function gethrtime() which returns hrtime_t type of variable is there but on AIX I have come to know that there is no such function.
So, I was trying to find out if there is any such function on AIX which is equivalent to gethrtime() on Sun?
 
Old 05-31-2006, 09:01 AM   #4
crabboy
Senior Member
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
Try looking into 'read_real_time' on AIX for high resolution times.
 
  


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
C++ Compilation problem with G++ nelnel Programming 6 07-06-2005 10:58 PM
Compilation Problem jonty_11 Programming 4 03-24-2005 10:45 PM
c compilation problem edreddy Programming 5 06-02-2004 01:37 PM
Problem with compilation of WineX Kristoffer Slackware 7 03-08-2003 01:09 PM
Compilation problem... need help Korshun Programming 2 05-07-2002 01:33 PM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 01:00 PM.

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