Mingw32 undefined reference
-
@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.
-
@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).
-
@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.
-
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.