public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* problem with g++ in ns
@ 2004-05-12 20:13 pradyot dhulipala
  2004-05-12 20:48 ` Sumith Makam
  2004-05-13  0:48 ` llewelly
  0 siblings, 2 replies; 3+ messages in thread
From: pradyot dhulipala @ 2004-05-12 20:13 UTC (permalink / raw)
  To: gcc-help

Hi all,
I am running ns2.26 on on Mandrake linux 9.1 with g++
version (GCC) 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk).
I am trying to include iostream.h in my project files
that are targeted by by ns makefile.Now iostream
include stmt works fine for normal files but it gets
screwed
up when I use it in my project files.

I tried g++ too but no luck.In the makefile the
relevant Includes are

I.  \
        -I/home/pradyot/ns-allinone-2.26/tclcl-1.0b13
-I/home/pradyot/ns-allinone-2.26/otcl-1.0a8
-I/home/pradyot/ns-allinone-2.26/include
-I/home/pradyot/ns-allinone-2.26/include
-I/usr/include/pcap \
        -I./tcp -I./common -I./link -I./queue \
        -I./adc -I./apps -I./mac -I./mobile -I./trace
\
        -I./routing -I./tools -I./classifier -I./mcast
\
        -I./diffusion3/lib/main -I./diffusion3/lib \
        -I./diffusion3/lib/nr -I./diffusion3/ns \
        -I./diffusion3/diffusion -I./asim/ -I./qs \
        -I/usr/include/c++/3.2.2
-I/usr/include/c++/3.2.2/backward \
        -I/usr/include/c++/3.2.2/bits

there is a huge list of errors I am reproducing a
few.
In file included from
/usr/include/c++/3.2.2/string:57,
                 from
/usr/include/c++/3.2.2/bits/localefwd.h:49,
                 from /usr/include/c++/3.2.2/ios:48,
                 from
/usr/include/c++/3.2.2/ostream:45,
                 from
/usr/include/c++/3.2.2/iostream:45,
                 from
/usr/include/c++/3.2.2/backward/iostream.h:32,
 
/usr/include/c++/3.2.2/bits/basic_string.tcc: In
member function `_Alloc::size_type
std::basic_string<_CharT, _Traits,
_Alloc>::rfind(const _CharT*, _Alloc::size_type,
_Alloc::size_type) const':
/usr/include/c++/3.2.2/bits/basic_string.tcc:712:
parse error before `(' token
In file included from
/usr/include/c++/3.2.2/bits/locale_facets.tcc:43,
                 from
/usr/include/c++/3.2.2/locale:46,
                 from
/usr/include/c++/3.2.2/bits/ostream.tcc:37,
                 from
/usr/include/c++/3.2.2/ostream:275,
                 from
/usr/include/c++/3.2.2/iostream:45,
                 from
/usr/include/c++/3.2.2/backward/iostream.h:32,
                 
/usr/include/c++/3.2.2/limits:942:22: macro "min"
requires 2 arguments, but only 1 given
In file included from
/usr/include/c++/3.2.2/bits/locale_facets.tcc:43,
                 from
/usr/include/c++/3.2.2/locale:46,
                 from
/usr/include/c++/3.2.2/bits/ostream.tcc:37,
                 from
/usr/include/c++/3.2.2/ostream:275,
                 from
/usr/include/c++/3.2.2/iostream:45,
                 from
/usr/include/c++/3.2.2/backward/iostream.h:32,
                 

Maybe a little too much info.
Any help would be greatly Appreciated,
Pradyot

=====
"Obstacles are those frightful things you see when you take your eyes off your goal." 
- Henry Ford (1863-1947)
"If women didn't exist, all the money in the world would have no meaning." 
- Aristotle Onassis (1906-1975) 
"Wise men make proverbs, but fools repeat them." 
"A witty saying proves nothing."


	
		
__________________________________
Do you Yahoo!?
Yahoo! Movies - Buy advance tickets for 'Shrek 2'
http://movies.yahoo.com/showtimes/movie?mid=1808405861 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: problem with g++ in ns
  2004-05-12 20:13 problem with g++ in ns pradyot dhulipala
@ 2004-05-12 20:48 ` Sumith Makam
  2004-05-13  0:48 ` llewelly
  1 sibling, 0 replies; 3+ messages in thread
From: Sumith Makam @ 2004-05-12 20:48 UTC (permalink / raw)
  To: pradyot dhulipala; +Cc: gcc-help

[-- Attachment #1: Type: TEXT/PLAIN, Size: 618 bytes --]

> Hi all,
> I am running ns2.26 on on Mandrake linux 9.1 with g++
> version (GCC) 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk).
> I am trying to include iostream.h in my project files
> that are targeted by by ns makefile.Now iostream
> include stmt works fine for normal files but it gets
> screwed
> up when I use it in my project files.

U just write a simple program like

#include<algorithm>

int main(){
return 0;
}

If u get same sort of errors, then this is the problem with the gcc header
files... and the solution will be removing the gcc package and installing
again....and even if this don't work...Sorry!!!!!!



[-- Attachment #2: Type: text/plain, Size: 259 bytes --]

----------------------------------------- (on isc)

________________________________________________________________________

Powered by TREND VirusWall: Information Superhighway Centre, IIT Roorkee


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: problem with g++ in ns
  2004-05-12 20:13 problem with g++ in ns pradyot dhulipala
  2004-05-12 20:48 ` Sumith Makam
@ 2004-05-13  0:48 ` llewelly
  1 sibling, 0 replies; 3+ messages in thread
From: llewelly @ 2004-05-13  0:48 UTC (permalink / raw)
  To: pradyot dhulipala; +Cc: gcc-help

pradyot dhulipala <pradyot_s@yahoo.com> writes:

> Hi all,
> I am running ns2.26 on on Mandrake linux 9.1 with g++
> version (GCC) 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk).
> I am trying to include iostream.h in my project files

Try <iostream> . The C++ standard never mentions iostream.h 

> that are targeted by by ns makefile.Now iostream
> include stmt works fine for normal files but it gets
> screwed
> up when I use it in my project files.
> 
> I tried g++ too but no luck.In the makefile the
> relevant Includes are
[snip]
> Maybe a little too much info.
[snip]

Could you please post a short-but-complete source code example which
is sufficient to reproduce the problem?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-05-13  0:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-12 20:13 problem with g++ in ns pradyot dhulipala
2004-05-12 20:48 ` Sumith Makam
2004-05-13  0:48 ` llewelly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).