| delorie.com/archives/browse.cgi | search |
| Message-ID: | <3B7CEDE9.17D0DCC9@hotmsil.com> |
| From: | Christopher all <Chrisall AT hotmsil DOT com> |
| X-Mailer: | Mozilla 4.77 [en] (Win95; U) |
| X-Accept-Language: | en |
| MIME-Version: | 1.0 |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Problem compiling c++ |
| Lines: | 40 |
| Date: | Fri, 17 Aug 2001 10:17:38 GMT |
| NNTP-Posting-Host: | 24.157.160.55 |
| X-Complaints-To: | abuse AT home DOT net |
| X-Trace: | news4.rdc1.on.home.com 998043458 24.157.160.55 (Fri, 17 Aug 2001 03:17:38 PDT) |
| NNTP-Posting-Date: | Fri, 17 Aug 2001 03:17:38 PDT |
| Organization: | Excite AT Home - The Leader in Broadband http://home.com/faster |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Hi ,
Thanks Hans for the help in installation !! Now i have another
problem.
I am using
gcc version 2.95.2 19991024 (release)
I have problems compiling my trivial program.
#include <iostream.h>
void main()
{
cout << "My first C++ program\n\n";
}
I tried " gcc a.cpp "
C:\WINDOWS\Desktop>gcc a.cpp
c:/djgpp/tmp\ccSSI7E3.o(.text+0x27):a.cpp: undefined reference to `cout'
c:/djgpp/tmp\ccSSI7E3.o(.text+0x2c):a.cpp: undefined reference to
`ostream::oper
ator<<(char const *)'
collect2: ld returned 1 exit status
then i tried "gcc a.cpp -lstdcpp"
C:\WINDOWS\Desktop>gcc a.cpp -lstdcpp
c:/djgpp/bin/ld.exe: cannot open -lstdcpp: No such file or directory
(ENOENT)
collect2: ld returned 1 exit status
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |