[Csci551-talk] RE: Csci551-talk Digest, Vol 4, Issue 16

Aaron Tu atu011 at earthlink.net
Thu Apr 22 18:28:42 PDT 2004


Sample Project A breaks when compiled with g++ 3.3.1. I was able to fix
some of the problems and successfully compiled the code, but I'm having
problem with the assert(). The socket functions core dump when I try to
run the program in Cygwin. Does anybody know what's going on? I don't
have any problem with the socket when I wrote my code in c. Does c++
treats socket differently?

Aaron

-----Original Message-----
From: csci551-talk-bounces at mailman.isi.edu
[mailto:csci551-talk-bounces at mailman.isi.edu] On Behalf Of
csci551-talk-request at mailman.isi.edu
Sent: Thursday, April 22, 2004 12:00 PM
To: csci551-talk at mailman.isi.edu
Subject: Csci551-talk Digest, Vol 4, Issue 16

Send Csci551-talk mailing list submissions to
	csci551-talk at mailman.isi.edu

To subscribe or unsubscribe via the World Wide Web, visit
	http://mailman.isi.edu/mailman/listinfo/csci551-talk
or, via email, send a message with subject or body 'help' to
	csci551-talk-request at mailman.isi.edu

You can reach the person managing the list at
	csci551-talk-owner at mailman.isi.edu

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Csci551-talk digest..."


Today's Topics:

   1. building sample proja with cygwin (Aaron Tu)


----------------------------------------------------------------------

Message: 1
Date: Thu, 22 Apr 2004 11:10:14 -0700
From: "Aaron Tu" <atu011 at earthlink.net>
Subject: [Csci551-talk] building sample proja with cygwin
To: <csci551-talk at mailman.isi.edu>
Message-ID: <000201c42895$12558850$7a503e9f at LATUALP>
Content-Type: text/plain;	charset="us-ascii"

Has anybody successfully rebuild sample Project A with Cygwin? I have
the following error message:

g++ -g -Wall -c gen.cc
In file included from gen.cc:26:
gen.hh:58: error: ISO C++ forbids declaration of `ostream' with no type
gen.hh:58: error: `ostream' is neither function nor member function;
cannot be 
   declared friend
gen.hh:58: error: syntax error before `&' token
gen.hh:91: error: ISO C++ forbids declaration of `ostream' with no type
gen.hh:91: error: `ostream' is neither function nor member function;
cannot be 
   declared friend
gen.hh:91: error: syntax error before `&' token
gen.hh:101: error: 'list' is used as a type, but is not defined as a
type.
gen.hh:102: error: 'list' is used as a type, but is not defined as a
type.
gen.hh:113: error: syntax error before `&' token
gen.hh: In member function `void
BaseRouter::add_internal_route(Route*)':
gen.hh:106: error: `internal_routes_' undeclared (first use this
function)
gen.hh:106: error: (Each undeclared identifier is reported only once for
each 
   function it appears in.)
gen.hh: In member function `void
BaseRouter::add_external_route(Route*)':
gen.hh:107: error: `external_routes_' undeclared (first use this
function)
gen.hh: In member function `Route* BaseRouter::internal_route()':
gen.hh:110: error: `assert' undeclared (first use this function)
gen.hh: At global scope:
gen.hh:114: error: syntax error before `}' token
gen.hh:126: error: ISO C++ forbids declaration of `ostream' with no type
gen.hh:126: error: `ostream' is neither function nor member function;
cannot be 
   declared friend
gen.hh:126: error: syntax error before `&' token
gen.hh: In member function `void
RouterStats::bump(RouterStats::stat_enum)':
gen.hh:124: error: `assert' undeclared (first use this function)
gen.cc: At global scope:
gen.cc:39: error: syntax error before `&' token
gen.cc:51: error: syntax error before `&' token
gen.cc:55: error: syntax error before `;' token
gen.cc:55: error: syntax error before `++' token
gen.cc:75: error: syntax error before `&' token
make: *** [gen.o] Error 1

$
 
Do I need to set up special path?

Aaron





------------------------------

_______________________________________________
Csci551-talk mailing list
Csci551-talk at mailman.isi.edu
http://mailman.isi.edu/mailman/listinfo/csci551-talk


End of Csci551-talk Digest, Vol 4, Issue 16
*******************************************



More information about the Csci551-talk mailing list