Closed GoogleCodeExporter closed 9 years ago
Alas, problem resolved.
After hours of experimentation and reading about linkers and libraries, define
QEXTSERIALPORT_LIB grabbed my attention. While this way of compiling
QextSerialPort, as a shared library is correct, (I read it here:
http://www.lurklurk.org/linkers/linkers.html) for some reason (that I am not
aware) this fails to resolve while compiling the target application and
QextSerialPort is compiled statically.
I removed the define QEXTSERIALPORT_EXPORT from the class declaration of
"qextserialenumerator.h" and "qextserialport.h" and now I've successfully built
my application statically.
If my theory is incorrect please elaborate on the issue because I am quite
interested. Note that I haven't yet checked if this modification (along with
the complete removal of "qextserialport_global.h") affects shared linking of
the library.
Original comment by XavierGr
on 1 Jul 2010 at 10:20
This issue is not valid any more for current version. Before QextSerialPort
1.2beta released, your can download the source using Mercurial.
Original comment by dbzhang...@gmail.com
on 16 Mar 2012 at 8:35
Original issue reported on code.google.com by
XavierGr
on 1 Jul 2010 at 6:54