Solved Mingw32 undefined reference
-
@Dre4m said in Mingw32 undefined reference:
08:56:22: Uruchamianie "C:\Qt\Tools\mingw730_64\bin\mingw32-make.exe" -j6
Why is the
make
tool from the 64 bit compiler used? May it be, that also the 64 bit compiler is used?This looks like your environment variables are screwed up...
Edit: Please show your Compilers tab in Tools > Options > Kits, especially the 32 bit ones.
-
here is my MinGw 32 bit configuration:
and this is MinGw 64 bit :
-
compilators tab
-
@Dre4m That looks good, unfortunately.
So I really think you environment is wrongly set up. Please check the variables, especially PATH.
On a side note, you seem to have installed lots of Qt version and also compilers you probably don't use.
My experience is, that easily leads to confusion, so IF you are about new installation, only select what you really need.
-
my PATH
-
The Path under "System Environment" (Zmienne systemowe) is more interesting.
Please post it as text here.
-
here you go
-
How did the
c:\Qt\%VERSION%\bin
entry get there? -
i've added it today manually while tried to fix the problem
-
@Dre4m is VERSION defined?
-
@KroMignon to be honest i have no idea , i've just followed some instruction anyway i have deleted it and my PAth looks like that now
-
@Dre4m Log out and login from Windows, delete build directory, run qmake and build
-
nope same result
-
@Dre4m I had a similar problem but the opposite; I had both 64 and 32 bit tool kits installed in parallel and by some reason Qt Creator got all messed up and tried to run the 32 bit version of gdb on my 64 bit compiled binaries and there were no way of changing that in the settings (the gdb-field was greyed out). Hilarity Ensues. Nothing compiled and the log output made absolutely no sense.
The solution for me was to clean up my environment to run only ONE setup of tools, ie the 64 bit MinGW. I'd suggest you start with removing the 5.12.1-kit and install the full 5.11.3-kit instead. Also check that there isn't a lot of stuff added under "Developer and Designer Tools", I only have "Qt Creator 4.8.1" and "MinGW 7.3.0 64-bit" checked there (and I guess you should have "MinGW 5.30 32-bit" checked instead).
-
will try in home on clean installation of qt
-
@Dre4m There's another weird behavior I noticed when I tried to reinstall Qt Creator. Apparently the kits doesn't get properly set up if you do it at install time, so just install a bare bone Qt Creator first and add the kit afterwards is my tip. At least that was what I had to do to get all bindings etc right.
Dunno why. Now it works so I don't mess with it in fear that things will break again.
-
Still i dont understand why 64 bit version installed correctly and 32 didnt
-
To any interested person , i've figured out that somehow linker when building project was using mings64 bit path and didn't see refferences so i changed manually folder name of mingw 64 bit and somehow qt decided that its time to use PATH of 32-bit version of mingw , then i changed again name of folder back to normall and now its working on 32 bit version and 64 bit version.