Results 1 to 4 of 4

Thread: external library linking problem in release compilation

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2016
    Posts
    15
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default external library linking problem in release compilation

    Hello everyone!

    I have an issue with project release. Qt shows an error that external HDF5 librairy cannot be accessed, however debugging goes well and I get no error message.
    What maybe the difference for external libraries linking between release and debug modes?

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,346
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    318
    Thanked 872 Times in 859 Posts

    Default Re: external library linking problem in release compilation

    What platform? Windows? Linux? Other?

    What development environment and toolchain? Qt Creator, CMake, Visual Studio?

    On Windows with Visual Studio, all external libraries must be of the same "bitness" (32 or 64) and for C++ must all be either compiled in Debug mode (for a debug executable) or Release mode (for a release executable). This is because the name mangling done by the compiler to decorate class, method, and variable names is different between debug and release builds. I also think that all external libraries must be built with the same compiler; you cannot mix MSVC and gcc builds, for example.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

Similar Threads

  1. External library linking problem
    By ayanda83 in forum Qt Programming
    Replies: 1
    Last Post: 6th March 2017, 13:34
  2. Replies: 3
    Last Post: 27th August 2015, 19:30
  3. Problem with compilation in release mode.
    By code_err in forum Newbie
    Replies: 3
    Last Post: 22nd October 2011, 18:02
  4. Replies: 5
    Last Post: 9th June 2011, 12:22
  5. QLibrary, problem with using external dll, in release
    By Jeddite in forum Qt Programming
    Replies: 3
    Last Post: 12th November 2010, 10:24

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.