| www.delorie.com/archives/browse.cgi | search |
| From: | RadSurfer <RadSurfer AT yahoo DOT com> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | HELP please: C++ Not working!! |
| Date: | Sat, 19 Jul 2003 21:51:15 -0400 |
| Organization: | Posted via Supernews, http://www.supernews.com |
| Message-ID: | <umqjhv4ncr5ni8j45i83dfvlfdhsakt6ib@4ax.com> |
| X-Newsreader: | Forte Agent 1.91/32.564 |
| MIME-Version: | 1.0 |
| X-Complaints-To: | abuse AT supernews DOT com |
| Lines: | 49 |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
Please help so I do not loose any sleep over this!
I'd really like to understand this once and for all ;-)
My program looks like this:
[gcc -dumpversion = 3.23]
/* C++ */
#include <iostream>
int main(void) {
cout << "Hello World!" << endl;
}
invokation:
h:\djgpp>gcc -x c++ hw.cpp -o hw.exe
(is this okay?)
Outcome:
hw.cpp: In function `int main()':
hw.cpp:7: `cout' undeclared (first use this function)
hw.cpp:7: (Each undeclared identifier is reported only once for each
function it appears in.)
hw.cpp:7: `endl' undeclared (first use this function)
WHAT is wrong here?
I have \djgpp\lang\cxx\.... as extracted
I have \djgpp\lib\gcc-lib\... etc; as extracted
and files from both GCC and GPP archives are carefully
copied over...
why am I still have problems?
Which version of cxxfilt.exe is supposed to be in
\DJGPP\bin ?
I have the 1st one encountered in there (prior to GPP).
HELP!
Apparently ordinary 'C' programs are compiling fine.
//RadSurfer//
THANKS!
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |