Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. New project in Visual Studio won't compile.
Qt 6.11 is out! See what's new in the release blog

New project in Visual Studio won't compile.

Scheduled Pinned Locked Moved Installation and Deployment
1 Posts 1 Posters 2.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    invader92
    wrote on last edited by
    #1

    Hello everyone. I'm completely beginner in qt. I've just tried to set the qt libraries for Visual Studio 2012.
    I've already compiled the library with options:
    @-debug-and-release -static -platform win32-msvc2012 -opengl dekstop -nomake examples -nomake tests@

    and added the result to the VS2010 via Qt Vs add-in. Now, my problem is that i can't compile projects created by Visual Studio.
    Compilation works only when imported .pro file (previous projects created with QtCreator).
    Whether I try to compile anything created form scratch in VS2012, i got this:
    @1>------ Build started: Project: Test, Configuration: Debug Win32 ------
    1> Moc'ing test.h...
    1> Uic'ing test.ui...
    1> Rcc'ing test.qrc...
    1>RCC : warning : No resources in 'c:\Users\Invader\documents\visual studio 2012\Projects\Test\Test\test.qrc'.
    1>
    1> moc_test.cpp
    1> main.cpp
    1> test.cpp
    1> Generating Code...
    1> qrc_test.cpp
    1> Creating library c:\Users\Invader\documents\visual studio 2012\Projects\Test\Win32\Debug\Test.lib and object c:\Users\Invader\documents\visual studio 2012\Projects\Test\Win32\Debug\Test.exp
    1>Qt5Cored.lib(qeventdispatcher_win.obj) : error LNK2019: unresolved external symbol _WSAAsyncSelect@16 referenced in function "public: void __thiscall QEventDispatcherWin32Private::doWsaAsyncSelect(int)" (?doWsaAsyncSelect@QEventDispatcherWin32Private@@QAEXH@Z)
    1>c:\Users\Invader\documents\visual studio 2012\Projects\Test\Win32\Debug\Test.exe : fatal error LNK1120: 1 unresolved externals
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========@

    How can I handle this?
    Thank you for any help and please, forgive my my english skills.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved