Solved Mingw32 undefined reference
-
Hello,
Im pretty new to Qt and i have encountered problem. I've made my project using MinGW 64-bit and recently it looks like i will aim for 32-bit platform so i tried to build my project using 32-bit MinGW, instaled with maintanance tool, but it turned out to be not working at all . It throws a lot of undefined refernce errors , i mean a lot of them , so i tried to run a simple example(from qt creator inside examples) using this configuration and it throws same "package" of errors.Any idea what i might did wrong ?Made ss of my configuration and errors and put in links below
Kind regard
Simon -
@Dre4m
Hi and welcome,
Can you clean project , runqmake
and rebuild ? -
@Ratzz
after clean project and and qmake run
-
@Dre4m
Is there any error after rebuild? -
those errors appears while im using debug option, when i build on relase option all is fine
-
@Dre4m
Did you edit the target path ?
Also can you create a small sample and try? -
target path is like that
well sorry but i dont really understand the sample part.
-
@Ratzz said in Mingw32 undefined reference:
Also can you create a small sample and try?
Can you try ?
-
@Ratzz
I would love to but i dont understand what sample should i make or how to be specific. -
@Dre4m
Just make an empty project and run it.
File->newproject->Application->Qt Widget Application -
and its perfectly working while using MinGW 64-bit, is it possible that during installation of mingw 32 something went wrong, or i dont know linker is using mingw64 or something like that ? -
@Dre4m
How did you install Qt? And what version and configuration did you select?@Dre4m said in Mingw32 undefined reference:
instaled with maintanance tool,
And what does this mean?
-
just like that -
@Dre4m
Can you show kits configuration for MinGW 32 bit and MinGW 64 bit.
also Qt has MinGW 32 bit . -
for mingw 32
for mingw 64 -
any idea?
-
@Dre4m What I can see is that your 32bit compiler is 5.3.0 and the 64bit one is 7.3.0
Can you try to install 32bit 7.3.0 compiler? -
For this setting of MinGW32 bit :
i get those error while trying to build :
any idea what can be wrong ?
64bit version is working perfectly. -
@Dre4m Can you copy paste the error messages instead of posting a screen shot? And it should contain the first error.
Also please post your pro file. -
@Dre4m One more note: when switching to another Kit (or modifying existing one) please delete build directory, run qmake and build.