delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/05/03:46:18

Message-ID: <382628516.960191061657.JavaMail.root@web302-mc.mail.com>
Date: Mon, 5 Jun 2000 03:44:21 -0400 (EDT)
From: Scott Smith <skahfee AT mail DOT com>
To: djgpp AT delorie DOT com
Subject: Help!
Mime-Version: 1.0
X-Mailer: mail.com
X-Originating-IP: 38.31.125.18
Reply-To: djgpp AT delorie DOT com

Guys--

I am completely stumped.. I am brand-new to c++, trying to teach myself in
an effort to see if programming is a possible career for me. I'm sort of
discouraged now.. I can't get past the first (and simplest) program in the
book! Here is my code:

#include <iostream.h>

main()
{
cout << "Hello everyone...this is easy ";
return(0);
}

Simple, right? So, I use this command to try to compile my work:

gcc test.c

And this is the contents of the error log file:

Reading specs from c:/djgpp/lib/gcc-lib/djgpp/2.952/specs
gcc version 2.95.2 19991024 (release)
c:/djgpp/lib/gcc-lib/djgpp/2.952/cpp.exe -lang-c -v -D__GNUC__=2
-D__GNUC_MINOR__=95 -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__unix__
-D__i386__ -D__GO32__ -D__DJGPP__=2 -D__MSDOS__ -D__unix -D__i386 -D__GO32
-D__DJGPP=2 -D__MSDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386)
-Amachine(i386) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__
-D__tune_pentium__ -imacros c:/djgpp/lib/../include/sys/version.h -remap
test.c c:/djgpp/tmp\ccpdXjFY.i
GNU CPP version 2.95.2 19991024 (release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
c:/djgpp/include
c:/djgpp/lib/gcc-lib/djgpp/2.952/include
c:/djgpp/include
End of search list.
The following default directories have been omitted from the search path:
$DJDIR/lang/cxx
$DJDIR/lib/gcc-lib/djgpp/2.952/../../../../djgpp/include
End of omitted list.
c:/djgpp/lib/gcc-lib/djgpp/2.952/cc1.exe c:/djgpp/tmp\ccpdXjFY.i -quiet
-dumpbase test.c -version -o c:/djgpp/tmp\ccKgzI69.s
GNU C version 2.95.2 19991024 (release) (djgpp) compiled by GNU C version
2.95.2 19991024 (release).
In file included from c:/djgpp/include/iostream.h:31,
from test.c:1:
c:/djgpp/include/streambuf.h:35: parse error before string constant
In file included from c:/djgpp/include/iostream.h:31,
from test.c:1:
c:/djgpp/include/streambuf.h:37: parse error before `}'
c:/djgpp/include/streambuf.h:67: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:67: parse error before `streambuf'
c:/djgpp/include/streambuf.h:67: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:87: parse error before `streambuf'
c:/djgpp/include/streambuf.h:87: warning: no semicolon at end of struct or
union
c:/djgpp/include/streambuf.h:88: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:97: parse error before `}'
c:/djgpp/include/streambuf.h:126: parse error before `ios'
c:/djgpp/include/streambuf.h:128: parse error before `&'
c:/djgpp/include/streambuf.h:128: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:129: parse error before `:'
c:/djgpp/include/streambuf.h:133: warning: redefinition of `streamsize'
c:/djgpp/include/streambuf.h:80: warning: `streamsize' previously declared
here
c:/djgpp/include/streambuf.h:179: parse error before `*'
c:/djgpp/include/streambuf.h: In function `tie':
c:/djgpp/include/streambuf.h:179: parse error before `{'
c:/djgpp/include/streambuf.h:180: `save' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h:180: (Each undeclared identifier is reported
only once
c:/djgpp/include/streambuf.h:180: for each function it appears in.)
c:/djgpp/include/streambuf.h:180: `val' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h: In function `fill':
c:/djgpp/include/streambuf.h:183: parse error before `{'
c:/djgpp/include/streambuf.h:185: `newf' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h: At top level:
c:/djgpp/include/streambuf.h:186: parse error before `flags'
c:/djgpp/include/streambuf.h: In function `flags':
c:/djgpp/include/streambuf.h:186: parse error before `{'
c:/djgpp/include/streambuf.h:188: `fmtflags' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h:188: `new_val' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h:188: `old_val' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h: In function `precision':
c:/djgpp/include/streambuf.h:189: parse error before `{'
c:/djgpp/include/streambuf.h:191: `newp' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h: At top level:
c:/djgpp/include/streambuf.h:193: parse error before `setf'
c:/djgpp/include/streambuf.h:193: parse error before `val'
c:/djgpp/include/streambuf.h: In function `setf':
c:/djgpp/include/streambuf.h:194: `fmtflags' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h:194: parse error before `oldbits'
c:/djgpp/include/streambuf.h:195: `val' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h:195: `oldbits' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h: At top level:
c:/djgpp/include/streambuf.h:196: parse error before `setf'
c:/djgpp/include/streambuf.h:196: parse error before `val'
c:/djgpp/include/streambuf.h:196: redefinition of `setf'
c:/djgpp/include/streambuf.h:193: `setf' previously defined here
c:/djgpp/include/streambuf.h: In function `setf':
c:/djgpp/include/streambuf.h:197: parse error before `oldbits'
c:/djgpp/include/streambuf.h:198: `mask' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h: At top level:
c:/djgpp/include/streambuf.h:199: parse error before `unsetf'
c:/djgpp/include/streambuf.h:199: parse error before `mask'
c:/djgpp/include/streambuf.h: In function `unsetf':
c:/djgpp/include/streambuf.h:200: `fmtflags' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h:200: parse error before `oldbits'
c:/djgpp/include/streambuf.h:201: `mask' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h:201: `oldbits' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h: In function `width':
c:/djgpp/include/streambuf.h:202: parse error before `{'
c:/djgpp/include/streambuf.h:203: `val' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h: In function `_throw_failure':
c:/djgpp/include/streambuf.h:208: parse error before `{'
c:/djgpp/include/streambuf.h:213: `flag' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h: In function `good':
c:/djgpp/include/streambuf.h:217: parse error before `{'
c:/djgpp/include/streambuf.h:218: invalid operands to binary &
c:/djgpp/include/streambuf.h:218: parse error before `:'
c:/djgpp/include/streambuf.h: In function `fail':
c:/djgpp/include/streambuf.h:219: parse error before `{'
c:/djgpp/include/streambuf.h:220: invalid operands to binary &
c:/djgpp/include/streambuf.h:220: parse error before `:'
c:/djgpp/include/streambuf.h: In function `rdstate':
c:/djgpp/include/streambuf.h:221: parse error before `{'
c:/djgpp/include/streambuf.h:222: warning: return makes integer from pointer
without a cast
c:/djgpp/include/streambuf.h: At top level:
c:/djgpp/include/streambuf.h:223: parse error before `!'
c:/djgpp/include/streambuf.h: In function `exceptions':
c:/djgpp/include/streambuf.h:224: parse error before `{'
c:/djgpp/include/streambuf.h:226: `enable' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h: At top level:
c:/djgpp/include/streambuf.h:229: parse error before `*'
c:/djgpp/include/streambuf.h: In function `rdbuf':
c:/djgpp/include/streambuf.h:229: parse error before `{'
c:/djgpp/include/streambuf.h:231: `_old' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h:231: `_strbuf' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h:231: `_s' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h: At top level:
c:/djgpp/include/streambuf.h:234: conflicting types for `sync_with_stdio'
c:/djgpp/include/streambuf.h:233: previous declaration of `sync_with_stdio'
c:/djgpp/include/streambuf.h:235: parse error before `bitalloc'
c:/djgpp/include/streambuf.h:235: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:237: parse error before `&'
c:/djgpp/include/streambuf.h: In function `pword':
c:/djgpp/include/streambuf.h:238: warning: empty declaration
c:/djgpp/include/streambuf.h:239: parse error before `&'
c:/djgpp/include/streambuf.h:238: parameter name omitted
c:/djgpp/include/streambuf.h:253: parse error before `{'
c:/djgpp/include/streambuf.h:257: parse error before `inline'
c:/djgpp/include/streambuf.h: At top level:
c:/djgpp/include/streambuf.h:265: parse error before `:'
c:/djgpp/include/streambuf.h: In function `set_offset':
c:/djgpp/include/streambuf.h:278: `_pos' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h: At top level:
c:/djgpp/include/streambuf.h:279: parse error before `:'
c:/djgpp/include/streambuf.h:283: parse error before `&'
c:/djgpp/include/streambuf.h:285: parse error before `}'
c:/djgpp/include/streambuf.h:287: parse error before `:'
c:/djgpp/include/streambuf.h:289: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:290: parse error before `class'
c:/djgpp/include/streambuf.h:290: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:291: parse error before `class'
c:/djgpp/include/streambuf.h:291: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:292: parse error before `&'
c:/djgpp/include/streambuf.h:295: parse error before `&'
c:/djgpp/include/streambuf.h: In function `gptr':
c:/djgpp/include/streambuf.h:299: parse error before `{'
c:/djgpp/include/streambuf.h:300: `_IO_write_ptr' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h: In function `egptr':
c:/djgpp/include/streambuf.h:302: parse error before `{'
c:/djgpp/include/streambuf.h:303: `_IO_write_end' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h: In function `pbase':
c:/djgpp/include/streambuf.h:304: parse error before `{'
c:/djgpp/include/streambuf.h:306: `_IO_save_base' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h:306: `_IO_read_base' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h: In function `base':
c:/djgpp/include/streambuf.h:307: parse error before `{'
c:/djgpp/include/streambuf.h:308: `_IO_buf_end' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h: In function `blen':
c:/djgpp/include/streambuf.h:309: parse error before `{'
c:/djgpp/include/streambuf.h:310: `_IO_write_ptr' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h:310: `c' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h: At top level:
c:/djgpp/include/streambuf.h:312: redefinition of `xflags'
c:/djgpp/include/streambuf.h:311: `xflags' previously defined here
c:/djgpp/include/streambuf.h:315: conflicting types for `xsetflags'
c:/djgpp/include/streambuf.h:313: previous declaration of `xsetflags'
c:/djgpp/include/streambuf.h: In function `gbump':
c:/djgpp/include/streambuf.h:317: `_IO_save_base' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h:317: `_IO_read_ptr' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h: In function `pbump':
c:/djgpp/include/streambuf.h:318: `_IO_write_ptr' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h: At top level:
c:/djgpp/include/streambuf.h:319: parse error before `='
c:/djgpp/include/streambuf.h: In function `setp':
c:/djgpp/include/streambuf.h:321: `_IO_write_base' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h:321: `_IO_write_ptr' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h:321: `_IO_write_end' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h: In function `setg':
c:/djgpp/include/streambuf.h:323: `this' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h:324: `_IO_read_base' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h:324: `_IO_read_ptr' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h:324: `_IO_read_end' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h: In function `shortbuf':
c:/djgpp/include/streambuf.h:325: `_shortbuf' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h: In function `Gbase':
c:/djgpp/include/streambuf.h:329: `_IO_save_base' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h:329: `_IO_read_base' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h: In function `eGptr':
c:/djgpp/include/streambuf.h:331: `_IO_save_end' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h:331: `_IO_read_end' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h: In function `Bbase':
c:/djgpp/include/streambuf.h:333: `_IO_read_base' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h:333: `_IO_save_base' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h: In function `Bptr':
c:/djgpp/include/streambuf.h:334: `_IO_backup_base' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h: In function `eBptr':
c:/djgpp/include/streambuf.h:336: `_IO_read_end' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h:336: `_IO_save_end' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h: In function `Nbase':
c:/djgpp/include/streambuf.h:337: `_IO_save_base' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h: In function `eNptr':
c:/djgpp/include/streambuf.h:338: `_IO_save_end' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h: In function `have_backup':
c:/djgpp/include/streambuf.h:339: `_IO_save_base' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h: In function `have_markers':
c:/djgpp/include/streambuf.h:340: `_markers' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h: At top level:
c:/djgpp/include/streambuf.h:346: parse error before `='
c:/djgpp/include/streambuf.h:346: `streambuf' redeclared as different kind
of symbol
c:/djgpp/include/streambuf.h:67: previous declaration of `streambuf'
c:/djgpp/include/streambuf.h:346: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:347: parse error before `:'
c:/djgpp/include/streambuf.h:350: parse error before `~'
c:/djgpp/include/streambuf.h:351: syntax error before `int'
c:/djgpp/include/streambuf.h:351: parse error before `='
c:/djgpp/include/streambuf.h:352: syntax error before `int'
c:/djgpp/include/streambuf.h:353: syntax error before `int'
c:/djgpp/include/streambuf.h:354: syntax error before `int'
c:/djgpp/include/streambuf.h:356: syntax error before `streamsize'
c:/djgpp/include/streambuf.h:357: syntax error before `streamsize'
c:/djgpp/include/streambuf.h:358: syntax error before `streampos'
c:/djgpp/include/streambuf.h:358: parse error before `_seek_dir'
c:/djgpp/include/streambuf.h:359: syntax error before `streampos'
c:/djgpp/include/streambuf.h:359: parse error before `='
c:/djgpp/include/streambuf.h:361: parse error before `_seek_dir'
c:/djgpp/include/streambuf.h: In function `pubseekoff':
c:/djgpp/include/streambuf.h:362: `this' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h:362: `o' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h:362: `d' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h:362: `mode' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h: At top level:
c:/djgpp/include/streambuf.h:363: parse error before `='
c:/djgpp/include/streambuf.h: In function `pubseekpos':
c:/djgpp/include/streambuf.h:364: `this' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h:364: `pos' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h:364: `mode' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h: At top level:
c:/djgpp/include/streambuf.h:365: parse error before `_seek_dir'
c:/djgpp/include/streambuf.h:366: parse error before `='
c:/djgpp/include/streambuf.h:367: parse error before `streambuf'
c:/djgpp/include/streambuf.h:367: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:368: syntax error before `int'
c:/djgpp/include/streambuf.h:369: syntax error before `int'
c:/djgpp/include/streambuf.h:371: parse error before `&'
c:/djgpp/include/streambuf.h:377: conflicting types for `unbuffered'
c:/djgpp/include/streambuf.h:374: previous declaration of `unbuffered'
c:/djgpp/include/streambuf.h:379: conflicting types for `linebuffered'
c:/djgpp/include/streambuf.h:375: previous declaration of `linebuffered'
c:/djgpp/include/streambuf.h: In function `allocate':
c:/djgpp/include/streambuf.h:381: too few arguments to function `unbuffered'
c:/djgpp/include/streambuf.h:381: void value not ignored as it ought to be
c:/djgpp/include/streambuf.h: At top level:
c:/djgpp/include/streambuf.h:385: warning: type mismatch with previous
implicit declaration
c:/djgpp/include/streambuf.h:384: warning: previous implicit declaration of
`doallocbuf'
c:/djgpp/include/streambuf.h:385: warning: `doallocbuf' was previously
implicitly declared to return `int'
c:/djgpp/include/streambuf.h: In function `in_avail':
c:/djgpp/include/streambuf.h:386: `_IO_read_end' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h:386: `_IO_read_ptr' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h: In function `out_waiting':
c:/djgpp/include/streambuf.h:387: `_IO_write_ptr' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h:387: `_IO_write_base' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h: In function `padn':
c:/djgpp/include/streambuf.h:389: `this' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h: In function `sgetn':
c:/djgpp/include/streambuf.h:390: `this' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h: In function `sputc':
c:/djgpp/include/streambuf.h:395: `this' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h: In function `sbumpc':
c:/djgpp/include/streambuf.h:396: `this' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h: In function `sgetc':
c:/djgpp/include/streambuf.h:397: `this' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h: In function `snextc':
c:/djgpp/include/streambuf.h:399: `_IO_read_ptr' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h:399: `_IO_read_end' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h:399: `this' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h: In function `stossc':
c:/djgpp/include/streambuf.h:402: `_IO_read_ptr' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h:402: `_IO_read_end' undeclared (first use in
this function)
c:/djgpp/include/streambuf.h: At top level:
c:/djgpp/include/streambuf.h:403: parse error before `ios'
c:/djgpp/include/streambuf.h:404: parse error before `...'
c:/djgpp/include/streambuf.h:406: parse error before `...'
c:/djgpp/include/streambuf.h:411: syntax error before `streamsize'
c:/djgpp/include/streambuf.h:412: syntax error before `streamsize'
c:/djgpp/include/streambuf.h:413: syntax error before `streampos'
c:/djgpp/include/streambuf.h:413: parse error before `_seek_dir'
c:/djgpp/include/streambuf.h:414: syntax error before `int'
c:/djgpp/include/streambuf.h:415: syntax error before `int'
c:/djgpp/include/streambuf.h:420: parse error before `}'
c:/djgpp/include/streambuf.h:425: parse error before `filebuf'
c:/djgpp/include/streambuf.h:430: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:431: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:432: conflicting types for `filebuf'
c:/djgpp/include/streambuf.h:431: previous declaration of `filebuf'
c:/djgpp/include/streambuf.h:432: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:436: parse error before `~'
c:/djgpp/include/streambuf.h:437: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:438: parse error before `*'
c:/djgpp/include/streambuf.h:438: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:439: parse error before `*'
c:/djgpp/include/streambuf.h:439: parse error before `ios'
c:/djgpp/include/streambuf.h:439: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:440: syntax error before `int'
c:/djgpp/include/streambuf.h:441: syntax error before `int'
c:/djgpp/include/streambuf.h:441: parse error before `='
c:/djgpp/include/streambuf.h: In function `is_open':
c:/djgpp/include/streambuf.h:442: parse error before `{'
c:/djgpp/include/streambuf.h:443: `_fileno' undeclared (first use in this
function)
c:/djgpp/include/streambuf.h: At top level:
c:/djgpp/include/streambuf.h:444: parse error before `*'
c:/djgpp/include/streambuf.h:444: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:445: syntax error before `int'
c:/djgpp/include/streambuf.h:446: syntax error before `streampos'
c:/djgpp/include/streambuf.h:446: parse error before `_seek_dir'
c:/djgpp/include/streambuf.h:447: parse error before `streambuf'
c:/djgpp/include/streambuf.h:447: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:450: syntax error before `int'
c:/djgpp/include/streambuf.h:451: parse error before `:'
c:/djgpp/include/streambuf.h: In function `cur_ptr':
c:/djgpp/include/streambuf.h:454: warning: pointer/integer type mismatch in
conditional expression
c:/djgpp/include/streambuf.h: At top level:
c:/djgpp/include/streambuf.h:458: syntax error before `streamsize'
c:/djgpp/include/streambuf.h:459: syntax error before `streampos'
c:/djgpp/include/streambuf.h:459: parse error before `_seek_dir'
c:/djgpp/include/streambuf.h:460: syntax error before `streamsize'
c:/djgpp/include/streambuf.h:461: syntax error before `int'
c:/djgpp/include/streambuf.h:462: syntax error before `int'
c:/djgpp/include/streambuf.h:467: parse error before `}'
c:/djgpp/include/streambuf.h:469: parse error before `:'
c:/djgpp/include/streambuf.h:470: conflicting types for `_exceptions'
c:/djgpp/include/streambuf.h:93: previous declaration of `_exceptions'
c:/djgpp/include/streambuf.h:470: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:471: `_strbuf' used prior to declaration
c:/djgpp/include/streambuf.h:471: `sb' undeclared here (not in a function)
c:/djgpp/include/streambuf.h:471: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:471: conflicting types for `_tie'
c:/djgpp/include/streambuf.h:88: previous declaration of `_tie'
c:/djgpp/include/streambuf.h:471: `tie_to' undeclared here (not in a
function)
c:/djgpp/include/streambuf.h:471: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:471: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:471: conflicting types for `_fill'
c:/djgpp/include/streambuf.h:91: previous declaration of `_fill'
c:/djgpp/include/streambuf.h:471: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:473: conflicting types for `_flags'
c:/djgpp/include/streambuf.h:90: previous declaration of `_flags'
c:/djgpp/include/streambuf.h:473: warning: initialization makes integer from
pointer without a cast
c:/djgpp/include/streambuf.h:473: parse error before `:'
c:/djgpp/include/streambuf.h:477: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:477: conflicting types for `_arrays'
c:/djgpp/include/streambuf.h:96: previous declaration of `_arrays'
c:/djgpp/include/streambuf.h:477: warning: data definition has no type or
storage class
c:/djgpp/include/streambuf.h:477: parse error before `}'
c:/djgpp/include/streambuf.h:479: parse error before `:'
c:/djgpp/include/streambuf.h:481: parse error before `:'
In file included from test.c:1:
c:/djgpp/include/iostream.h:34: warning: data definition has no type or
storage class
c:/djgpp/include/iostream.h:35: parse error before `&'
c:/djgpp/include/iostream.h:36: parse error before `&'
c:/djgpp/include/iostream.h:37: parse error before `&'
c:/djgpp/include/iostream.h:39: parse error before `&'
c:/djgpp/include/iostream.h:40: parse error before `&'
c:/djgpp/include/iostream.h:41: parse error before `&'
c:/djgpp/include/iostream.h:42: parse error before `&'
c:/djgpp/include/iostream.h:50: parse error before `*'
c:/djgpp/include/iostream.h:50: `ostream' redeclared as different kind of
symbol
c:/djgpp/include/iostream.h:34: previous declaration of `ostream'
c:/djgpp/include/iostream.h:50: warning: data definition has no type or
storage class
c:/djgpp/include/iostream.h: In function `opfx':
c:/djgpp/include/iostream.h:53: invalid type argument of `->'
c:/djgpp/include/iostream.h: In function `osfx':
c:/djgpp/include/iostream.h:55: parse error before `:'
c:/djgpp/include/iostream.h: At top level:
c:/djgpp/include/iostream.h:57: parse error before `&'
c:/djgpp/include/iostream.h:74: parse error before `&'
c:/djgpp/include/iostream.h:91: parse error before `&'
c:/djgpp/include/iostream.h:92: parse error before `&'
c:/djgpp/include/iostream.h:114: parse error before `istream'
c:/djgpp/include/iostream.h:121: parse error before `:'
c:/djgpp/include/iostream.h:123: parse error before `*'
c:/djgpp/include/iostream.h:123: `istream' redeclared as different kind of
symbol
c:/djgpp/include/streambuf.h:289: previous declaration of `istream'
c:/djgpp/include/iostream.h:123: warning: data definition has no type or
storage class
c:/djgpp/include/iostream.h:124: parse error before `&'
c:/djgpp/include/iostream.h:146: parse error before `='
c:/djgpp/include/iostream.h: In function `ipfx':
c:/djgpp/include/iostream.h:147: parse error before `:'
c:/djgpp/include/iostream.h:150: `need' undeclared (first use in this
function)
c:/djgpp/include/iostream.h:150: request for member `in_avail' in something
not a structure or union
c:/djgpp/include/iostream.h:150: invalid type argument of `->'
c:/djgpp/include/iostream.h:151: invalid operands to binary &
c:/djgpp/include/iostream.h:151: parse error before `:'
c:/djgpp/include/iostream.h: In function `ipfx0':
c:/djgpp/include/iostream.h:156: parse error before `:'
c:/djgpp/include/iostream.h:159: invalid type argument of `->'
c:/djgpp/include/iostream.h:160: invalid operands to binary &
c:/djgpp/include/iostream.h:160: parse error before `:'
c:/djgpp/include/iostream.h: In function `ipfx1':
c:/djgpp/include/iostream.h:165: parse error before `:'
c:/djgpp/include/iostream.h:168: request for member `in_avail' in something
not a structure or union
c:/djgpp/include/iostream.h:168: invalid type argument of `->'
c:/djgpp/include/iostream.h: In function `get':
c:/djgpp/include/iostream.h:174: invalid type argument of `->'
c:/djgpp/include/iostream.h:175: parse error before `:'
c:/djgpp/include/iostream.h: In function `gcount':
c:/djgpp/include/iostream.h:180: `_gcount' undeclared (first use in this
function)
c:/djgpp/include/iostream.h: At top level:
c:/djgpp/include/iostream.h:181: parse error before `&'
c:/djgpp/include/iostream.h:183: parse error before `&'
c:/djgpp/include/iostream.h:186: parse error before `&'
c:/djgpp/include/iostream.h:209: parse error before `&'
c:/djgpp/include/iostream.h:210: parse error before `&'
c:/djgpp/include/iostream.h:227: parse error before `iostream'
c:/djgpp/include/iostream.h:231: parse error before `*'
c:/djgpp/include/iostream.h:231: warning: data definition has no type or
storage class
c:/djgpp/include/iostream.h:234: parse error before `_IO_istream_withassign'
c:/djgpp/include/iostream.h:241: parse error before `_IO_ostream_withassign'
c:/djgpp/include/iostream.h:248: parse error before `cin'
c:/djgpp/include/iostream.h:248: warning: data definition has no type or
storage class
c:/djgpp/include/iostream.h:250: parse error before `cout'
c:/djgpp/include/iostream.h:250: warning: data definition has no type or
storage class
c:/djgpp/include/iostream.h:252: parse error before `clog'
c:/djgpp/include/iostream.h:256: warning: data definition has no type or
storage class
c:/djgpp/include/iostream.h:258: parse error before `&'
c:/djgpp/include/iostream.h:259: parse error before `&'
c:/djgpp/include/iostream.h:260: parse error before `&'
c:/djgpp/include/iostream.h:261: parse error before `&'
c:/djgpp/include/iostream.h:265: parse error before `&'
c:/djgpp/include/iostream.h:267: parse error before `&'
c:/djgpp/include/iostream.h:269: parse error before `&'
test.c: In function `main':
test.c:5: invalid operands to binary <<

All I can say is "Oh my God"...What is going on? I consider myself to be
very computer literate, and this has me completely stumped. I can't even
imagine what I did wrong. Thanks in advance for any help!

-Scott
Skahfee AT mail DOT com

______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup

- Raw text -


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