add external library

31 views
Skip to first unread message

MENA Ali

unread,
May 24, 2021, 3:09:16 AM5/24/21
to Castalia Simulator
@Athanassios (Thanassis) Boulis
Dear Mr.Athanassios,


I have a problem in calling Qstring from Qt5 library

the code that I used is as follow:


#ifndef COMMONDEF_H
#define COMMONDEF_H
#include <QString>
#include <QVector>

struct InputMF_t
{
// name="MF1l" type="Triangular" P1="1" P2="2" P3="3" P4="4" maximum="0.9"
QString sName;
QString sType;
double dP1;
double dP2;
double dP3;
double dP4;
double dMaximum;




the following error appeared when I run the project:


fatal error: QString: No such file or directory










Note :
I add the Qt5 library as an external library in makemake file





# The following options are used by OMNeT's opp_makemake tool
# For explanation and a complete list of options run: opp_makemake -h
OPTS=" -f -r --deep -o CastaliaBin -u Cmdenv -P $ROOT -M release"

# -X excludes a directory from being considered
EXCLUDEDIRS=" -X Simulations -X out -X bin"

# Use options -I -L -l to include external header files or libraries
EXTOPTS="-I /usr/include/x86_64-linux-gnu/qt5/QtCore -L /usr/include/x86_64-linux-gnu/qt5 -lQString"

# Run OMNeT's opp_makemake tool with the above options
opp_makemake $OPTS $EXCLUDEDIRS $EXTOPTS






please answer as soon as possible









Reply all
Reply to author
Forward
0 new messages