delorie.com/archives/browse.cgi | search |
From: | martell AT cybertours DOT com (Joshua Martell) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Compiling C++ Programs, undefined references |
Date: | Sat, 09 Jan 1999 03:24:40 GMT |
Message-ID: | <3696c8e7.1196705@news.cybertours.com> |
X-Newsreader: | Forte Free Agent 1.11/16.235 |
NNTP-Posting-Host: | 209.222.83.91 |
X-NNTP-Posting-Host: | 209.222.83.91 |
X-Trace: | 8 Jan 1999 23:17:06 -0500, 209.222.83.91 |
Lines: | 19 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
I have been using DJGPP to compile c and c++ for over a year now and all of a sudden it refuses to link c++! I am trying to compile a "Hello World" program like this: gcc -o hello.exe hello.o -lstdcx And I get back a list (incomplete) of undefined references in the file something like this: d:\djgpp\lib\libstdcxx.a:stdiostream.o (stuff) __throw libstdcxx.a:stdiostream.o (stuff) __eh_pc libstdcxx.a:stdiostream.o (stuff) terminate(void) libstdcxx.a:stdiostream.o (stuff) __rtti_class libstdcxx.a:stdiostream.o (stuff) __rtti_si I just installed the new 2.81 files. The only thing I did lately was install (and delete because it wouldn't compile although for different reasons) the Open-GL library MGL from SciTech. Any help would be greatly appreciated.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |