|
From: Murphy, J. T. <jtm...@an...> - 2011-07-27 14:35:23
|
Kashif,
Try adding 'virtual' before the declaration of setup() in ZombieObserver.h:
virtual void setup(repast::Properties props);
For some compilers this seems to be handled implicitly; for others it must be specified. What compiler are you using? If this adjustment works as I hope then we can correct it in the upcoming releases.
Please let us know if it works- it helps us a great deal to find these problems.
And- regarding this and the rest of our exchanges- Thanks! Your feedback on RepastHPC is very much appreciated.
Best,
John
--
John T. Murphy
Computational Postdoctoral Fellow
Decision and Information Sciences and
Argonne Leadership Computing Facility
Argonne National Laboratory
jtm...@an...
From: Kashif Zia <ka...@pe...<mailto:ka...@pe...>>
Date: Wed, 27 Jul 2011 09:18:56 -0500
To: "rep...@li...<mailto:rep...@li...>" <rep...@li...<mailto:rep...@li...>>
Subject: [Repast-interest] Repast HPC compile Error (virtual function override)
Hello everyone
Can anybody resolve this build error in Linux environment.
k330174@service0:~/sim/src/zombie> icpc main.cpp -lboost_mpi -lboost_filesystem -lrepast_hpc-1.0 -lrelogo-1.0 -lmpi -lnetcdf_c++
ZombieObserver.h(63): warning #1125: function "repast::relogo::Observer::setup(repast::Properties &)" is hidden by "ZombieObserver::setup" -- virtual function override intended?
void setup(repast::Properties props);
^
/usr/lib64/sgi/intel9/libimf.so: warning: warning: feupdateenv is not implemented and will always fail
ld: warning: libboost_filesystem.so.1.33.1, needed by /apps/repasthpc-1.0b/lib/librepast_hpc-1.0.so, may conflict with libboost_filesystem.so.1.45.0
/tmp/icpcZdZRt9.o: In function `void repast::relogo::SimulationRunner::run<ZombieObserver, repast::relogo::Patch>(repast::Properties&)':
main.cpp:(.gnu.linkonce.t._ZN6repast6relogo16SimulationRunner3runI14ZombieObserverNS0_5PatchEEEvRNS_10PropertiesE[.gnu.linkonce.t._ZN6repast6relogo16SimulationRunner3runI14ZombieObserverNS0_5PatchEEEvRNS_10PropertiesE]+0x6f2): undefined reference to `ZombieObserver::setup(repast::Properties)'
/tmp/icpcZdZRt9.o: In function `ZombieObserver* repast::relogo::WorldCreator::createWorld<ZombieObserver, repast::relogo::Patch, repast::relogo::DefaultAgentCreator<repast::relogo::Patch> >(repast::relogo::WorldDefinition const&, std::vector<int, std::allocator<int> > const&, repast::relogo::DefaultAgentCreator<repast::relogo::Patch>&)':
main.cpp:(.gnu.linkonce.t._ZN6repast6relogo12WorldCreator11createWorldI14ZombieObserverNS0_5PatchENS0_19DefaultAgentCreatorIS4_EEEEPT_RKNS0_15WorldDefinitionERKSt6vectorIiSaIiEERT1_[.gnu.linkonce.t._ZN6repast6relogo12WorldCreator11createWorldI14ZombieObserverNS0_5PatchENS0_19DefaultAgentCreatorIS4_EEEEPT_RKNS0_15WorldDefinitionERKSt6vectorIiSaIiEERT1_]+0x74): undefined reference to `vtable for ZombieObserver'
According to our admin, all the required libraries are enabled and this is a coding error. But I am only using the zombie_model provided in the distribution.
Best.
---
Kashif Zia
PhD Candidate
Institut für Pervasive Computing, Johannes Kepler Universität Linz, Altenberger Straße 69, A-4040 Linz
Room: P105, Phone: +43-732-2468-9673, Fax: +43-732-2468-8426
E-Mail: ka...@pe...<mailto:ka...@pe...>
|