np43 / qextserialport

Automatically exported from code.google.com/p/qextserialport
Other
0 stars 0 forks source link

Exports missing #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Download the source from here
2.Compile the project tree.
3.

What is the expected output? 
Example application should link against the qextserialport DLL/lib.

What do you see instead?
Applications can't link with the DLL/lib

What version of the product are you using? 
I am not sure, the doxygen docs say 1.2 beta.

On what operating system?
Windows XP

Please provide any additional information below.
The reason for the above is a lack of exports, which I find very strange.
As a result, no DLL and lib files are generated.
They (the exports) must have been there before, otherwise it would not be
possible to link against the lib.
Attached is my own fix which works well.

Original issue reported on code.google.com by the...@gmail.com on 7 Feb 2010 at 8:19

Attachments:

GoogleCodeExporter commented 9 years ago
Had this issue too. Used VC2008 as compiler. VC reported a lot of warnings / 
errors, 
when I used the Q_DECL_IMPORT as above, because the moc sources of the client 
contain a 
lot of the exported methods too. Used an empty QEXTSERIALPORT_EXPORT define for 
the 
import and added an additional linker setting for the lib?

Original comment by Michael....@treggs.com on 7 Feb 2010 at 9:04

GoogleCodeExporter commented 9 years ago
I am not sure if what you wrote was a question.
At any rate, to use my fix do the following:
1. Add qextserialport_global.h  to the qextserialport project.
2. Replace the attached files with the corresponding ones in the project.
3. Define QEXTSERIALPORT_LIB (in MSVC you can add it to the preprocessor defines
4. Build.

If I haven't forgotten anything, this should be all.

Original comment by the...@gmail.com on 7 Feb 2010 at 9:15

GoogleCodeExporter commented 9 years ago
Thanks for sharing these - I'm just adding them now.

In the future, please provide your changes as a diff so it's easy to tell what 
has changed.

Original comment by lst...@gmail.com on 7 Feb 2010 at 10:14

GoogleCodeExporter commented 9 years ago
Added.

Original comment by lst...@gmail.com on 7 Feb 2010 at 10:20

GoogleCodeExporter commented 9 years ago

Original comment by lst...@gmail.com on 7 Feb 2010 at 10:20