problem with g++ in ns

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux