Linker error on static linking to third party lib

This is a discussion on Linker error on static linking to third party lib within the Windows Programming forums, part of the Platform Specific Boards category; Hi all! Been a while since I've posted, but this little problem has got me stumped. I've got a .lib ...

  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    163

    Linker error on static linking to third party lib

    Hi all!

    Been a while since I've posted, but this little problem has got me stumped. I've got a .lib that is supplied to me by a third party, and I'm having trouble statically linking to it. I'm using MSVC-2008 with QT. The link error is:

    Code:
    fatal error C1047: The object or library file 'ThirdPartyLibrary.lib' was created with an older compiler than other objects; rebuild old objects and libraries
    1>LINK : fatal error LNK1257: code generation failed
    I don't have the source for this library, only the /lib and /include. Anybody know what it is I'm doing wrong, and what I can fix to link to this thing?

    Thanks!

  2. #2
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    It sounds like the library format may have changed since that library was compiled, causing linker errors.
    If you don't have the source, you're pretty much done.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. linker error with static member...
    By m37h0d in forum C++ Programming
    Replies: 10
    Last Post: 05-25-2011, 03:27 PM
  2. Linking error with static template class members
    By cunnus88 in forum C++ Programming
    Replies: 6
    Last Post: 04-02-2009, 01:31 PM
  3. static declaration creates linker error
    By black_spot1984 in forum C++ Programming
    Replies: 1
    Last Post: 11-04-2008, 10:58 AM
  4. static instance variable linker error
    By animeaholic in forum C++ Programming
    Replies: 4
    Last Post: 01-23-2007, 09:50 PM
  5. linker error, using static member
    By Chiel in forum C++ Programming
    Replies: 6
    Last Post: 06-28-2003, 09:40 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21