[Qt-interest] dll problem
Evan Teran
eteran at alum.rit.edu
Mon Dec 8 21:14:50 CET 2008
Actually, my problem isn't lack of compilation. It's runtime crashes
that don't occur on my linux builds.
I actually need to do the opposite of your suggestion to, because some
of my plugins use objects which are provided by my core application. If
i do have the noundef stuff in there (i ran into an issue where ubuntu
was adding it to the defaul flags on lib builds). Then I get linker
errors on Linux. Which isn't what I want :(. Likewise on windows builds
I have to add /FORCE to the compiler flags for plugins to let the linker
not care about missing symbols since they will be provided by the main app.
I'll keep looking :).
Thiago Macieira wrote:
> Evan Teran wrote:
>> Thanks for the info, I have some ideas about what it could be. I'll be
>> sure to post to the list when I find a perminant solution. Part of my
>> problem is that my original dev environment is Linux and so I don't
>> quite have my debugging tools setup quite in a comfortable way yet, so
>> it's hard to pin down the exact cause.
>
> Hello Evan
>
> Here's a suggestion: add this to your .pro file:
> linux-g++*:QMAKE_LFLAGS += $$QMAKE_LFLAGS_NOUNDEF
>
> This will make your compilation fail on Linux the same way it would on
> Windows if you don't have your dependencies straight. It makes every
> single module resolve all of its symbols at link time, or else the linker
> fails.
>
More information about the Qt-interest-old
mailing list