Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8170971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:18:36+00:00 2026-06-06T21:18:36+00:00

i have added a module to ns2 and i am compiling it when i

  • 0

i have added a module to ns2 and i am compiling it when i get undefined reference error.

g++ -o ns \
-lXext -lX11 -lnsl -ldl -lm -lm -lrt -lneoclassic -lxml
maser/mamas.o: In function `mamasReasoner::mamasReasoner()':
mamas.cc:(.text+0x95): undefined reference to `NeoEnvironment::initFromNs(std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >&, std::basic_ostringstream<char, std::char_traits<char>, std::allocator<char> >&, int)'
maser/mamas.o: In function `mamasReasoner::build_ontology_tree(knBase&)':
mamas.cc:(.text+0x1c84): undefined reference to `NeoEnvironment::evaluateCommand(String const&)'
maser/mamas.o: In function `NeoEnvironment::readXmlFromMemory(char const*, char const*)':
mamas.cc:(.text._ZN14NeoEnvironment17readXmlFromMemoryEPKcS1_[NeoEnvironment::readXmlFromMemory(char const*, char const*)]+0x14): undefined reference to `Parser::readXmlFromMemory(char const*, char const*)'
collect2: ld returned 1 exit status
make: *** [ns] Error

the library which it is asking for is present at the /usr/local/lib/libneoclassic.so and the makefile can be seen here http://pastebin.com/NZWPxKht
which use the following code for linking.

LINK    = g++
LDFLAGS =  -lneoclassic -lrt -lxml2
LDOUT   = -o $(BLANK)
LIB     = \
        -L/usr/local/lib -ltclcl -L/usr/local/lib -lotcl -L/usr/local/lib -ltk8.4 -L/usr/local/lib -ltcl8.4 \
        -lXext -lX11 \
         -lnsl -ldl \
        -lm -lm
OBJ_CC = \
        tools/random.o tools/rng.o tools/ranvar.o common/misc.o common/timer-handler.o \
        common/scheduler.o common/object.o common/packet.o \
        common/ip.o routing/route.o common/connector.o common/ttl.o \
        trace/trace.o trace/trace-ip.o \
        classifier/classifier.o classifier/classifier-addr.o \
        classifier/classifier-hash.o \
        classifier/classifier-virtual.o \
        classifier/classifier-mcast.o \
        classifier/classifier-bst.o \
        classifier/classifier-mpath.o mcast/replicator.o \
        classifier/classifier-mac.o \
        classifier/classifier-qs.o \
        classifier/classifier-port.o src_rtg/classifier-sr.o \
        src_rtg/sragent.o src_rtg/hdr_src.o adc/ump.o \
        qs/qsagent.o qs/hdr_qs.o \
        apps/app.o apps/telnet.o tcp/tcplib-telnet.o \
        tools/trafgen.o trace/traffictrace.o tools/pareto.o \
        tools/expoo.o tools/cbr_traffic.o \
        adc/tbf.o adc/resv.o adc/sa.o tcp/saack.o \
        tools/measuremod.o adc/estimator.o adc/adc.o adc/ms-adc.o \
        adc/timewindow-est.o adc/acto-adc.o \
        adc/pointsample-est.o adc/salink.o adc/actp-adc.o \
        adc/hb-adc.o adc/expavg-est.o\
        adc/param-adc.o adc/null-estimator.o \
        adc/adaptive-receiver.o apps/vatrcvr.o adc/consrcvr.o \
        common/agent.o common/message.o apps/udp.o \
        common/session-rtp.o apps/rtp.o tcp/rtcp.o \
        common/ivs.o \
        common/messpass.o common/tp.o common/tpm.o apps/worm.o \
        tcp/tcp.o tcp/tcp-sink.o tcp/tcp-reno.o \
        tcp/tcp-newreno.o \
        tcp/tcp-vegas.o tcp/tcp-rbp.o tcp/tcp-full.o tcp/rq.o \
        baytcp/tcp-full-bay.o baytcp/ftpc.o baytcp/ftps.o \
        tcp/scoreboard.o tcp/scoreboard-rq.o tcp/tcp-sack1.o tcp/tcp-fack.o \
        tcp/tcp-asym.o tcp/tcp-asym-sink.o tcp/tcp-fs.o \
        tcp/tcp-asym-fs.o \
        tcp/tcp-int.o tcp/chost.o tcp/tcp-session.o \
        tcp/nilist.o \
        sctp/sctp.o apps/sctp_app1.o\
        sctp/sctp-timestamp.o sctp/sctp-hbAfterRto.o \
        sctp/sctp-multipleFastRtx.o sctp/sctp-mfrHbAfterRto.o \
        sctp/sctp-mfrTimestamp.o \
        sctp/sctp-cmt.o \
        sctp/sctpDebug.o \
        tools/integrator.o tools/queue-monitor.o \
        tools/flowmon.o tools/loss-monitor.o \
        queue/queue.o queue/drop-tail.o \
        adc/simple-intserv-sched.o queue/red.o \
        queue/semantic-packetqueue.o queue/semantic-red.o \
        tcp/ack-recons.o \
        queue/sfq.o queue/fq.o queue/drr.o queue/srr.o queue/cbq.o \
        queue/jobs.o queue/marker.o queue/demarker.o \
        link/hackloss.o queue/errmodel.o queue/fec.o\
        link/delay.o tcp/snoop.o \
        gaf/gaf.o \
        link/dynalink.o routing/rtProtoDV.o common/net-interface.o \
        mcast/ctrMcast.o mcast/mcast_ctrl.o mcast/srm.o \
        common/sessionhelper.o queue/delaymodel.o \
        mcast/srm-ssm.o mcast/srm-topo.o \
        routing/alloc-address.o routing/address.o \
        $(LIB_DIR)int.Vec.o $(LIB_DIR)int.RVec.o \
        $(LIB_DIR)dmalloc_support.o \
        webcache/http.o webcache/tcp-simple.o webcache/pagepool.o \
        webcache/inval-agent.o webcache/tcpapp.o webcache/http-aux.o \
        webcache/mcache.o webcache/webtraf.o \
        webcache/webserver.o \
        webcache/logweb.o \
        empweb/empweb.o \
        empweb/empftp.o \
        realaudio/realaudio.o \
        mac/lanRouter.o classifier/filter.o \
        common/pkt-counter.o \
        common/Decapsulator.o common/Encapsulator.o \
        common/encap.o \
        mac/channel.o mac/mac.o mac/ll.o mac/mac-802_11.o \
        mac/mac-802_3.o mac/mac-tdma.o mac/smac.o \
        mobile/mip.o mobile/mip-reg.o mobile/gridkeeper.o \
        mobile/propagation.o mobile/tworayground.o \
        mobile/antenna.o mobile/omni-antenna.o \
        mobile/shadowing.o mobile/shadowing-vis.o mobile/dumb-agent.o \
        common/bi-connector.o common/node.o \
        common/mobilenode.o \
        mac/arp.o mobile/god.o mobile/dem.o \
        mobile/topography.o mobile/modulation.o \
        queue/priqueue.o queue/dsr-priqueue.o \
        mac/phy.o mac/wired-phy.o mac/wireless-phy.o \
        mac/mac-timers.o trace/cmu-trace.o mac/varp.o \
        mac/mac-simple.o \
        satellite/sat-hdlc.o \
        dsdv/dsdv.o dsdv/rtable.o queue/rtqueue.o \
        routing/rttable.o \
        imep/imep.o imep/dest_queue.o imep/imep_api.o \
        imep/imep_rt.o imep/rxmit_queue.o imep/imep_timers.o \
        imep/imep_util.o imep/imep_io.o \
        tora/tora.o tora/tora_api.o tora/tora_dest.o \
        tora/tora_io.o tora/tora_logs.o tora/tora_neighbor.o \
        dsr/dsragent.o dsr/hdr_sr.o dsr/mobicache.o dsr/path.o \
        dsr/requesttable.o dsr/routecache.o dsr/add_sr.o \
        dsr/dsr_proto.o dsr/flowstruct.o dsr/linkcache.o \
        dsr/simplecache.o dsr/sr_forwarder.o \
        aodv/aodv_logs.o aodv/aodv.o \
        aodv/aodv_rtable.o aodv/aodv_rqueue.o \
        common/ns-process.o \
        satellite/satgeometry.o satellite/sathandoff.o \
        satellite/satlink.o satellite/satnode.o \
        satellite/satposition.o satellite/satroute.o \
        satellite/sattrace.o \
        rap/raplist.o rap/rap.o rap/media-app.o rap/utilities.o \
        common/fsm.o tcp/tcp-abs.o \
        diffusion/diffusion.o diffusion/diff_rate.o diffusion/diff_prob.o \
        diffusion/diff_sink.o diffusion/flooding.o diffusion/omni_mcast.o \
        diffusion/hash_table.o diffusion/routing_table.o diffusion/iflist.o \
        tcp/tfrc.o tcp/tfrc-sink.o mobile/energy-model.o apps/ping.o tcp/tcp-rfc793edu.o \
        queue/rio.o queue/semantic-rio.o tcp/tcp-sack-rh.o tcp/scoreboard-rh.o \
        plm/loss-monitor-plm.o plm/cbr-traffic-PP.o \
        linkstate/hdr-ls.o \
        mpls/classifier-addr-mpls.o mpls/ldp.o mpls/mpls-module.o \
        routing/rtmodule.o classifier/classifier-hier.o \
        routing/addr-params.o \
         nix/hdr_nv.o nix/classifier-nix.o \
         nix/nixnode.o \
         routealgo/rnode.o \
         routealgo/bfs.o \
         routealgo/rbitmap.o \
         routealgo/rlookup.o \
         routealgo/routealgo.o \
         nix/nixvec.o \
        nix/nixroute.o \
        diffserv/dsred.o diffserv/dsredq.o \
        diffserv/dsEdge.o diffserv/dsCore.o \
        diffserv/dsPolicy.o diffserv/ew.o diffserv/dewp.o \
        queue/red-pd.o queue/pi.o queue/vq.o queue/rem.o \
        queue/gk.o \
        pushback/rate-limit.o pushback/rate-limit-strategy.o \
        pushback/ident-tree.o pushback/agg-spec.o \
        pushback/logging-data-struct.o \
        pushback/rate-estimator.o \
        pushback/pushback-queue.o pushback/pushback.o \
        common/parentnode.o trace/basetrace.o \
        common/simulator.o asim/asim.o \
        common/scheduler-map.o common/splay-scheduler.o \
        linkstate/ls.o linkstate/rtProtoLS.o \
        pgm/classifier-pgm.o pgm/pgm-agent.o pgm/pgm-sender.o \
        pgm/pgm-receiver.o mcast/rcvbuf.o \
        mcast/classifier-lms.o mcast/lms-agent.o mcast/lms-receiver.o \
        mcast/lms-sender.o \
        queue/delayer.o \
        xcp/xcpq.o xcp/xcp.o xcp/xcp-end-sys.o \
        wpan/p802_15_4csmaca.o wpan/p802_15_4fail.o \
        wpan/p802_15_4hlist.o wpan/p802_15_4mac.o \
        wpan/p802_15_4nam.o wpan/p802_15_4phy.o \
        wpan/p802_15_4sscs.o wpan/p802_15_4timer.o \
        wpan/p802_15_4trace.o wpan/p802_15_4transac.o \
        maser/maser.o maser/mamas.o \
        $(OBJ_STL)

$(LINK) $(LDFLAGS) $(LDOUT)$@ \
                    common/tclAppInit.o $(OBJ) $(LIB)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T21:18:38+00:00Added an answer on June 6, 2026 at 9:18 pm

    I figured out that the functions were declared but not implemented. As soon as I implemented them, the problem was solved.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given below is my Model definition and I have added this module part of
I'm currently working on loading a different layout file per module. I have added
I am working on activecollab custom module, facing problem in permissions; I have added
I have added a module to show the some set of images with text
I am trying to add this module . I have added the zip file
I created a web application and added an ELMAH module for error logging. It
I have to build a custom module in which i have added a custom
Our standard module file is: Myproject.gwt.xml We have added an extra modulefile for fast
i have installed the fbconnect module under drupal 6. i have added <html xmlns:fb=http://www.facebook.com/2008/fbml
I am modifying the kvm module and I have added printk statements in the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.