Click here to Skip to main content
15,908,111 members

Comments by threedts167 (Top 4 by date)

threedts167 10-Nov-15 1:38am View    
I have solved the problem by installing a qt-vs-addin, just so you know. And I can see that the addin did some macro definitions and some other stuffs in the project properties page to make Qt work on VS. I have been over-optimistic about how Qt is configured on VS. Cheers. :-)
threedts167 9-Nov-15 8:16am View    
Yeah. By turning on the /VERBOSE switch I noticed that Qt5Cored.lib is found but not loaded (marked "unused library") like other lib files upon which the project is dependent, which is strange. The installer's name is "qt-unified-windows-x86-2.0.2-2-online.exe" and the folder that contains the lib folder is named "Qt\5.5\msvc2013_64" (I'm using VS2013 right now). I think the Qt setup on my machine is using MSVC rather than MinGW. I'll check anyway. Your advice is taking me somewhere. Thanks very much. :-)
threedts167 9-Nov-15 6:47am View    
He installed Qt on his machine using the online installer provided by Qt's official website and I did the same to install the same Qt version on my machine so we should have the same configuration. The Qt library is pre-compiled after the installer finished installation. The reason why my teammate doesn't have my problem is because he is using QtCreator so it's all working for him. I have tested and confirmed that the same code can compile and run without any problem using QtCreator on my machine(wondering if there's some kind of magic done by QtCreator but I failed to do the same on VisualStudio) but would fail to link using VS. You're right about using the same development setup. I posted this question just hoping to figure out why the configuration on VS doesn't work, what am I missing.
threedts167 9-Nov-15 1:49am View    
I turned that "wchar_t as built-in" switch to false. But it didn't work. Still got LNK2019 errors. And the stackoverflow link that Hossein guy was using QtCreator but I'm using VS so I don't have .pro file or .pro.user file as he did.