Hi,
first of all, thank you very much for answering so quickly!
Relating to the recommended workarounds:
1.)
add the following item to Your application build file:
Depends { name : "reflex.omnetpp" }
-> has no influence on the unknown class error in omnetpp
2.)
correct switch for static libraries is:
-Wl,--whole-archive -l(list of libraries) -Wl,--no-whole-archives
-> added the following line to product section of myAppl.qbs:
cpp.linkerFlags : [
"-Wl, --whole-archive -lreflexlibrary -Wl,--no-whole-archives"
]
-> compiler error:
/usr/bin/ld: unrecognized option '--no-whole-archives'
(on ubuntu 14.04, gcc version 4.8.2, GNU ld (GNU Binutils for Ubuntu) 2.24)
3.)
dead code workaround
-> modified myAppl.h
added:
#include "observation/UDPPrinterServer.h"
void UdpPrinterServer_dummy()
{
UdpPrinterServer dummy;
}
-> compiler error: ‘UdpPrinterServer’ was not declared in this scope
4.)
Compile reflexlibrary as dynamic library:
->replaced "staticlibrary" by "dynamiclibrary" in ReflexLibrary.qbs (2
times)
->causes a lot of linker errors
What did i do wrong?
Does anybody have another suggestion?
Best regards,
Philipp