www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/23/14:13:51

From: Damian Yerrick <DONT DOT YOU DOT DAREd_yerrick AT hotmail DOT comSEND DOT SPAM>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Q: What am I doing wrong ?
Organization: Pin Eight Software http://pineight.8m.com/
Message-ID: <vna8bskib6vp5eju5oke42n6ebufg2s4m4@4ax.com>
References: <38B42032 DOT DB19F1BD AT post DOT rwth-aachen DOT de>
X-Newsreader: Forte Agent 1.7/32.534
MIME-Version: 1.0
Lines: 22
X-Trace: /KtlGVV1OGUCSi6cnjKcvhWKOFPBYZkLLIKxviuJU+So7NGnVuV8RF5VcEpiJ5iDHELrDSoH+35l!dfcPW22H2g0CCVkF0AsXU0pcIXJ+GctQZ9sU+YntLE8I7jEka8j7dCbjB7t6NlvVbFS5KD5sMa5f!0jWGBAI=
X-Complaints-To: abuse AT gte DOT net
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly
NNTP-Posting-Date: Wed, 23 Feb 2000 18:50:31 GMT
Distribution: world
Date: Wed, 23 Feb 2000 18:50:31 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Wed, 23 Feb 2000 19:00:19 +0100, Jan Hader
<Jan DOT Hader AT post DOT rwth-aachen DOT de> wrote:

>references to e-g iostream do not work,
>it says something about "undefined reference".

This means something isn't getting linked in.

>P.S.: I start to compile with gcc name.cc -o name.exe -lm

If you're using gcc to compile, try using gpp instead.
gpp will automatically add the C++ libraries.
C:\develop\hello>gpp name.cc -lm -o name.exe

-- 
Damian Yerrick  http://yerricde.tripod.com/
Comment on story ideas: http://home1.gte.net/frodo/quickjot.html
AOL is sucks! Find out why: http://anti-aol.org/faqs/aas/
View full sig: http://www.rose-hulman.edu/~yerricde/sig.html

This is McAfee VirusScan. Add these two lines to your .sig to
prevent the spread of .sig viruses.  http://www.mcafee.com/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019