From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Q: What am I doing wrong ? Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <38B42032 DOT DB19F1BD AT post DOT rwth-aachen DOT de> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 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/