473,668 Members | 2,265 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Solved by reading this Group!

I am happy to say I solved my compile problem by reading back to
November 17 and another person asked why the math references were a
problem.

The thing to do then is -lm Link a library, a math library.. Duh..

Well that's my speed :)

I'm sure I have more questions.

Ernst
Nov 13 '05 #1
5 1399
Ernst Berg <Er********@sbc global.net> scribbled the following:
I am happy to say I solved my compile problem by reading back to
November 17 and another person asked why the math references were a
problem. The thing to do then is -lm Link a library, a math library.. Duh..


I'm glad that comp.lang.c was able to help! Now if you could only refer
this information to the about 10'000 newbie C programmers who are going
to face the same problem in the next month or so... =)

--
/-- Joona Palaste (pa*****@cc.hel sinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"And according to Occam's Toothbrush, we only need to optimise the most frequent
instructions."
- Teemu Kerola
Nov 13 '05 #2

"Ernst Berg" <Er********@sbc global.net> ha scritto nel messaggio
news:be******** *************** ***@posting.goo gle.com...
I am happy to say I solved my compile problem by reading back to
November 17 and another person asked why the math references were a
problem.

The thing to do then is -lm Link a library, a math library.. Duh..

Well that's my speed :)


i made the same question quite a long time ago:

http://www.google.com/groups?selm=7r...news2.tin.it&o
utput=gplain

i was not the first nor was i the last one i guess...

and, anyway, it IS a faq. all right!

http://www.eskimo.com/~scs/C-faq/q14.3.html

HTH

bye

max
Nov 13 '05 #3

"max101000010.0 1000101" <px****@SPAMinw ind.it> ha scritto nel messaggio
news:oF******** *************@n ews1.tin.it...

"Ernst Berg" <Er********@sbc global.net> ha scritto nel messaggio
news:be******** *************** ***@posting.goo gle.com...
I am happy to say I solved my compile problem by reading back to
November 17 and another person asked why the math references were a
problem.

The thing to do then is -lm Link a library, a math library.. Duh..

Well that's my speed :)
i made the same question quite a long time ago:

http://www.google.com/groups?selm=7r...news2.tin.it&o utput=gplain

i was not the first nor was i the last one i guess...

and, anyway, it IS a faq. all right!

http://www.eskimo.com/~scs/C-faq/q14.3.html


as a previous answer had already pointed out before (shame on me)
Nov 13 '05 #4
In <be************ **************@ posting.google. com> Er********@sbcg lobal.net (Ernst Berg) writes:
I am happy to say I solved my compile problem by reading back to
November 17 and another person asked why the math references were a
problem.

The thing to do then is -lm Link a library, a math library.. Duh..

Well that's my speed :)
Well, you'd have saved some time and learned PLENTY of other useful
things, too, if you simply read the FAQ instead.
I'm sure I have more questions.


Don't forget to read the FAQ before posting them.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 13 '05 #5
Bruno Desthuilliers <bd***********@ removeme.free.f r> wrote in message news:<3f******* *************** *@news.free.fr> ...
Ernst Berg wrote:
I am happy to say I solved my compile problem by reading back to
November 17 and another person asked why the math references were a
problem.


I'm happy to say that reading the answers to your previous post exposing
the problem (and BTW would you be kind enough to not start a new thread
about a previous one ?), or simply, as it happens that your question (in
the previous post in a previous thread) was a FAQ, by first reading the
FAQ before posting your question - the one in the previous post that is
not in the same thread as this one I'm replying to -, you would not have
needed to read back to november 17 when someone else that didn't first
read the FAQ either posted - in another thread - the same question (I
mean the question in your previous post, in a previous unrelated thread).

(er... not sure this is crystal clear, but I s/guess/hope/ you know what
I mean...).
The thing to do then is -lm Link a library, a math library.. Duh..


http://www.eskimo.com/~scs/C-faq/q14.3.html

Er... Did I say it was a FAQ ?

I'm sure I have more questions.


#include <stdfaq.h>
if (also_happen_to _be_FAQs(questi ons)) {
please_RTFF(); /* please... */
else {
you_re_welcome( "really"); /* really */
}

Bruno


Yepperz.. Well I ment well.

And about the 10,000 new c programmers asking the same thing.. I'll try to help.
Ernst
Nov 14 '05 #6

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

Similar topics

2
4597
by: John Drako | last post by:
I just updated my server to apache 1.3.33 and php 5.0.3 from apache 1.3.31 and php 4.3.9. It's running RedHat and MySQL 4.0.20. All the code that I created myself in PHP is working as it should with no glitches. However, phpMyAdmin stopped working and most importantly, because I need to diagnose the problem, phpinfo() is not working either. I used the php.ini-recommended for the new configuration with minor
1
14930
by: MKoleoso | last post by:
Problem: C#- Unable to create instance of a class implementing from an interface I have: namespace someNamespace { public __gc class SomeClass1 { }
19
10308
by: Lionel B | last post by:
Greetings, I need to read (unformatted text) from stdin up to EOF into a char buffer; of course I cannot allocate my buffer until I know how much text is available, and I do not know how much text is available until I have read it... which seems to imply that multiple reads of the input stream will be inevitable. Now I can correctly find the number of characters available by: |
11
19598
by: Robert Lacoste | last post by:
Dear Access gurus, I was using since years Access 97, now under XP SP2, without any problem. However I've just reformatted my HD (viruses...), reinstalled XP SP2, and then I am no longer able to install Access 97 : When executing the install, I got successively two error messages (sorry, it's probable not exactly the same text than in the english version of access as I've just translated what my french access says) :
11
6621
by: Abhishek | last post by:
I have a problem transfering files using sockets from pocket pc(.net compact c#) to desktop(not using .net just mfc and sockets 2 API). The socket communication is not a issue and I am able to transfer data across.On the serve I am using Socket 2 API (recv function to read bytes)and not using ..NET. I use FileStream to open the file on the pocket pc, then associate a BinaryReader object with the stream and call ReadBytes to read all the...
1
6766
by: Nasser | last post by:
Hello, I am coding a mathematical model with VC++. When I debug the code, I face with no erroe, but during executing, I face with below error "Unhandled exception at 0x0040c275 in Tar.exe: 0xC0000005: Access violation reading location 0x00000004". Could you tell me, how I can fix it? I have attached the code as follows:
2
1825
by: Richard Lionheart | last post by:
Hi All, I generated a WebForm and created a Virtual Directory for it IIS. But I got an error message (shown below) saying something like my app lacked appropriate privileges. David Wang replied to an earlier question about this issue, and he informed me that I needed to include my UserID in the "VS Developers" group in order to WebForm apps running under my account capable of accessing \\server\wwwroot$.
2
6011
by: ShawnD | last post by:
I'm having some issues when trying to read input off of a pipe using a python script. I'm trying to process packet data from tcpdump in real-time, so it's a filter that needs to read data while the process being piped from is still reading. On both my Linux and OSX system, it seems that there's a large delay reading from stdin if the process being read from is still running, even if it's producing output to be read. It will wait until it...
19
2394
by: Mountain | last post by:
I would like opinions on whether this solution could be important and whether anyone knows if it is already solved. (I would also like to know if anyone thinks it cannot be solved.) First, we start with a general tree (any of the trees that my data structures book calls rooted trees or unordered trees). Then we are given two specific nodes (Na and Nb) that belong to that tree. We would like to know if the second node (Nb) is an...
0
8459
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8890
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8791
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8575
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8653
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7398
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6206
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4202
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2784
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 we have to send another system

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.