Confused about the configuration (32/64 bits)



  • I am having a static library(.lib file) which is developed by using Visual Studio 2008 X64 bit
    Am linking this 64 bit .lib file into QT project.Am facing an error.
    But whiile linking 32 bit .lib file its working fine.
    Can anyone help me ?


  • Moderators

    @Sackthi

    Probably you should post the error message and some more details on how you have setup the different projects. Otherwise this is crystal ball reading.



  • Sorry,

    The error message is
    "debug\sackthi_final.exe:-1: error: LNK1120: 1 unresolved externals"

    And the KIT i have selected is Desktop QT 4.8.7 MSVC 2008 32 bit

    but if i link 32 bit .lib file means its working fine


  • Moderators

    @Sackthi said in Confused about the configuration (32/64 bits):

    The error message is
    "debug\sackthi_final.exe:-1: error: LNK1120: 1 unresolved externals"

    And the KIT i have selected is Desktop QT 4.8.7 MSVC 2008 32 bit

    but if i link 32 bit .lib file means its working fine

    You have selected a 32 bit kit and you like to link with a 64 bit library?
    This will not work. You need to stay in the memory model and probably the compiler version depending on how the interface to the lib is defined. To keep it save, I would propose also to stay with the same compiler version.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.