[SOLVED] warning: auto-importing has been activated without --enable-auto-import specified on the command line.
What does this warning meant for?
"warning: auto-importing has been activated without --enable-auto-import specified on the command line."
I copied example project 'sinusplot' from Qwt and compiled with Qt 4.8.1 with MinGW environment. While linking I got the warning as below:
g++ -mthreads -Wl,-subsystem,windows -o debug\MyPlot.exe debug/main.o debug/myplot.o -L"c:\Qt\4.8.1\lib" -lmingw32 -lqtmaind debug\MyPlot_res.o -LC:/Qwt-6.0.0/lib -lqwt -lQtGuid4 -lQtCored4
Info: resolving vtable for QwtSyntheticPointData by linking to __imp___ZTV21QwtSyntheticPointData (auto-import)
mingw32-make.exe: Leaving directory `C:/Qt/workspace/MyPlot'
c:/qt/qtcreator-2.4.1/mingw/bin/../lib/gcc/mingw32/4.4.0/../../../../mingw32/bin/ld.exe: warning: auto-importing has been activated without --enable-auto-import specified on the command line.
This should work unless it involves constant data structures referencing symbols from auto-imported DLLs.
13:56:05: The process "C:\Qt\qtcreator-2.4.1\mingw\bin\mingw32-make.exe" exited normally.
When I execute my binary, I am getting Runtime Error!!
Appreciate if somebody could help me out.
Figured out the cause for Runtime Error!!
I was build a debug version but executing the application with Qwt release dll.
When I build release version and execute it with Qwt release dll, everything this fine and I could see the Qwt Plot