Results 1 to 6 of 6

Thread: Library architecture i386 ist not compatible with target architecture i386:x86-64

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,324
    Thanks
    316
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Library architecture i386 ist not compatible with target architecture i386:x86-64

    Is the DLL yours or something from an external source? If it is yours and you have the source code, just add a 64-bit configuration to the project if it isn't already there and build that configuration. If it is not yours and you only have a 32-bit binary version, then you are probably stuck with making your program 32 bits as well. See this Stackoverflow article for workarounds.

    Typically, you don't use LoadLibrary to load a DLL at run time. Instead you link the executable with the .lib export library that is produced along with the DLL and let Windows take care of loading it. The major exception is if you are developing some sort of plug-in architecture where you do not know the DLLs you will be loading at build time and must load them dynamically at run time.

    By the way, all 64-bit compilers I know of can also produce 32-bit binaries with the right compile and link flags.
    <=== 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.

  2. The following user says thank you to d_stranz for this useful post:

    tim5 (3rd April 2021)

Similar Threads

  1. Could not determine the target architecture!
    By sivakumar in forum Newbie
    Replies: 6
    Last Post: 26th May 2014, 17:13
  2. Replies: 8
    Last Post: 27th December 2013, 02:47
  3. compiling Qt on i386 to x86_64
    By plesken in forum Installation and Deployment
    Replies: 1
    Last Post: 6th October 2011, 13:12
  4. Test FrameBUffer On Ubuntu 10.10 i386 Cant Display ?
    By Thành Viên Mới in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 17th November 2010, 03:10
  5. Precompiled libs - Cocoa - ppc/i386/x86_64 ??
    By n9yty in forum Installation and Deployment
    Replies: 0
    Last Post: 29th July 2010, 16:49

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.