LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-04-2005, 02:25 PM   #1
sita
LQ Newbie
 
Registered: Nov 2005
Posts: 1

Rep: Reputation: 0
Compiling ns2 on FC4


Hi,
I am trying to build ns-2.26 allinone on FC4. It comes with gcc 4.0 which
seems to be more strict in compilation.
I have fixed many errors with the help of web searches and patches posted
on the web. I have been unable to fix the below. I used -fpermissive flag
but that did not help. Can anyone shed light on how to resolve this?
Thanks,
Sita


c++ -c -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG
-DLINUX_TCP_ HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H
-DHAVE_LIBOTCL1_0A8 -DHAVE_OTCL_ H -DHAVE_LIBTK8_3 -DHAVE_TK_H
-DHAVE_LIBTCL8_3 -DHAVE_TCL_H -DHAVE_CONFIG_H -DN S_DIFFUSION
-DSMAC_NO_SYNC -DSTL_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -I. -I
/root/ns2/ns-allinone-2.26/tclcl-1.0b13
-I/root/ns2/ns-allinone-2.26/otcl-1.0a8
-I/root/ns2/ns-allinone-2.26/include -I/root/ns2/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./diffusio n3/diffusion
-I./asim/ -I./qs -o diffusion3/ns/difftimer.o diffusion3/ns/difftim er.cc
/usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/bits/stl_bvec
tor.h: In member function ?void std::vector<bool,
_Alloc>::_M_insert_range(std:: _Bit_iterator, _ForwardIterator,
_ForwardIterator, std::forward_iterator_tag)?:
/usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/bits/stl_bvec
tor.h:542: error: expected unqualified-id before ?(? token
/usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/bits/stl_bvec
tor.h: In member function ?void std::vector<bool,
_Alloc>::_M_fill_insert(std::_ Bit_iterator, size_t, bool)?:
/usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/bits/stl_bvec
tor.h:889: error: expected unqualified-id before ?(? token
/usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/bits/vector.t
cc: In member function ?void std::vector<_Tp,
_Alloc>::_M_fill_insert(__gnu_cxx: :__normal_iterator<typename
_Alloc:ointer, std::vector<_Tp, _Alloc> >, size_t, const _Tp&)?:
/usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/bits/vector.t
cc:353: error: expected unqualified-id before ?(? token
/usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/bits/vector.t
cc: In member function ?void std::vector<_Tp,
_Alloc>::_M_range_insert(__gnu_cxx ::__normal_iterator<typename
_Alloc:ointer, std::vector<_Tp, _Alloc> >, _Forwa rdIterator,
_ForwardIterator, std::forward_iterator_tag)?:
/usr/lib/gcc/i386-redhat-linux/4.0.1/../../../../include/c++/4.0.1/bits/vector.t
cc:452: error: expected unqualified-id before ?(? token
make: *** [diffusion3/ns/difftimer.o] Error 1
Ns make failed!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compiling problem qmailmrtg on FC4 planetdar420 Fedora 1 10-28-2005 04:51 AM
Problem Compiling C code on FC4 BBPS Programming 4 09-30-2005 11:23 AM
Can't install NS2 on FC4 - Tcl make eror skyeman Linux - Software 1 08-24-2005 03:17 AM
Compiling kernel 2.4 in FC4 ilyushin Linux - Newbie 7 08-09-2005 02:30 AM
Compiling libmpeg3 on FC4 PPC duvalgo Linux - Software 7 08-03-2005 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration