Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Japanese
  4. QtCreatorでのDLLのリンク方法について教えてください。
Qt 6.12 LTS is out! See what's new in the release blog

QtCreatorでのDLLのリンク方法について教えてください。

Scheduled Pinned Locked Moved Unsolved Japanese
1 Posts 1 Posters 1.9k Views
  • 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.
  • V Offline
    V Offline
    viora
    wrote on last edited by
    #1

    portaudio.dllをリンクしたくて、Windows用の方法が分からなかったので
    申し訳ございませんが教えて頂ければと思います。
    環境
    ・windows10
    ・VS2019pro
    ・Qt Creator
    CMakeLists.txtで試したこと
    set(BUILD_SHARED_LIBS YES)
    find_package(portaudio REQUIRED)
    add_library(portaudio_x64)
    add_library(portaudio_x64 MODULE EXCLUDE_FROM_ALL)
    target_link_libraries(portaudio_x64 PUBLIC portaudio_x64.lib)
    いずれもリンクエラー解消に至りませんでした。
    次にソースに
    #pragma comment(lib, "portaudio_x64.lib")
    を追記したところリンクエラーは消えましたが、実行時main()に到達するまでに
    「アプリケーションを正しく起動できませんでした。(0xc000007b)」で終了するしかない状態に
    portaudio.dllを呼び出している部分を全てコメントアウトし、上記の#pragmaも
    コメントアウトすると起動するようです。
    宜しくお願いします。

    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
    • Unsolved