473,486 Members | 2,117 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

trying to compile with clock_settime(...)

Trying to compile using clock_settime(...) [in time.h] but get:
"undefined reference to `clock_settime'". Looking at time.h I see the
declaration is sandwiched between:

#ifdef __USE_POSIX199309
....
#endif

so I tried: gcc -D__USE_POSIX199309
to no avail.

Any suggestions?

---John

PS> I don't know if this is the proper group for this posting but I had
to start somewhere.

Nov 15 '05 #1
4 2350
What library I should be linking against? -John

Nov 15 '05 #2
"jc**********@gmail.com" <jc**********@gmail.com> writes:
Trying to compile using clock_settime(...) [in time.h] but get:
"undefined reference to `clock_settime'". Looking at time.h I see the
declaration is sandwiched between:

#ifdef __USE_POSIX199309
...
#endif

so I tried: gcc -D__USE_POSIX199309
to no avail.

Any suggestions?

---John

PS> I don't know if this is the proper group for this posting but I had
to start somewhere.


Try comp.unix.programmer.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Nov 15 '05 #3
jc**********@gmail.com wrote:
Trying to compile using clock_settime(...) [in time.h] but get:
"undefined reference to `clock_settime'". Looking at time.h I see the
declaration is sandwiched between:

#ifdef __USE_POSIX199309
...
#endif

so I tried: gcc -D__USE_POSIX199309
to no avail.

Any suggestions?

---John

PS> I don't know if this is the proper group for this posting but I had
to start somewhere.


This is not the right group since we only deal with C not with system
specific extension be they POSIX, Windows or CPM. Might I suggest
comp.unix.programmer after reading their FAQ or possibly one of the GNU
mailing lists?
--
Flash Gordon
Living in interesting times.
Although my email address says spam, it is real and I read it.
Nov 15 '05 #4
> Try comp.unix.programmer.

Thanks! Will do. ---John

Nov 15 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1857
by: Jim Patterson | last post by:
I am trying to compile php with sablotron and I get this error message ===================================================================== FAILED TEST SUMMARY...
0
1314
by: pareh | last post by:
Hi I get a very strange message when I'm trying to compile a stored procedure. "Error: Input string was not in a correct format." What more that is interesting is that I have compile my...
4
2281
by: 28tommy | last post by:
Hi, I'm trying to find scripts in html source of a page retrieved from the web. I'm trying to use the following rule: match = re.compile('<script + src=+>') I'm testing it on a page that...
1
1034
by: VMI | last post by:
When I'm trying to compile my web application, I get this error: 'It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can...
1
3384
by: HugoScripts | last post by:
hi there, as i said i'm trying to compile a simple program that uses allegro, it's a small thing, indeed my goal was just to start using allegro, but until now i'm unable even to compile my simple...
5
1947
by: Michael | last post by:
Hi All, I have three very simple files as below. When I try and compile these with g++ -ansi -Wall -pedantic -o crap Base.h Other.h I get an error: Base.h:7: internal compiler error:...
0
1369
by: sandydon | last post by:
when am trying this in xsl page <xsl:variable name="myArray"><item>item1</item><item>item2</item></xsl:variable> <xsl:value-of select="$myArray/item"/> i got the following error HTTP...
3
1714
by: Robert Dunlop | last post by:
I am using Microsoft Visual Studio 2005 for development of an ASP.NET site, and I have a problem that greatly effects my workflow at times. It seems that after I upload new files anywhere within...
2
4174
by: tvnaidu | last post by:
Downloaded PowerPC cross compiler tool chain for LINUX, trying to compile C / CPP file, I am getting "Floating Point exception" to compile any file, no problem with regular GCC. any idea why I am...
0
7100
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7126
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7175
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7330
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1378
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
262
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.