Link compiled boost libraries

175 views
Skip to first unread message

astriffe

unread,
Sep 6, 2012, 10:11:50 AM9/6/12
to omn...@googlegroups.com
Hi all

I'm very new to OMNeT++ and I'd like to use the serialization-library contained in the boost framework. However, when trying to use it, I get quite many errors such as:

Description    Resource    Path    Location    Type
undefined reference to `boost::archive::archive_exception::~archive_exception()'    OmCCN        line 36, external location: /home/alexander/UniBE/BT/simulator/boost-compiledLibs/include/boost/serialization/throw_exception.hpp    C/C++ Problem

. I guess the problem is that I didn't yet link the compiled library in omnet. I've had a look at the makefile but any changes there are worthless since it is generated automatically by makemake. Furthermore, trying to access the menu item 'makemake' in project > properties > OMNeT++ throws an error (The currently displayed page contains invalid values).

Can anyone give me a hint concerning what the error could cause or how to link the compiled library correctly?

Any hints are veery appreciated!

cheers
alex

Yad Tahir

unread,
Sep 6, 2012, 8:19:47 PM9/6/12
to omn...@googlegroups.com
I usually add third-party libraries without any problem!

You don't need to re-compile the entier source code of omnetpp ...The IDE should be enough. Try to clean and rebuilt.

Make sure you add all the required headers to .cc and .h files of your simple component.

BR,
Yad

astriffe

unread,
Sep 12, 2012, 5:20:53 AM9/12/12
to omn...@googlegroups.com
Thank you Yad for your answer and sorry for my delayed reaction!

However, the serialization part of the boost framework needs to be compiled... And linking the compiled files somehow doesn't work and shows the error described above (The currently displayed page contains invalid values). I've cleaned and rebuilt the project over and over but this hasn't helped. The parts of the framework that doesn't need to be compiled can be included without any problems by just including the header files (framework is 'header only') but I didn't get how to link the compiled ones...
Or did I understand your post wrong?

cheers
alex
Reply all
Reply to author
Forward
0 new messages