Linking problem: Win32 vs x64

C, C++, and Visual C++
ali625
Fresh meat
Posts: 2
Joined: Thu Oct 16, 2014 2:47 pm
Contact:

Linking problem: Win32 vs x64

Postby ali625 » Tue Nov 11, 2014 4:14 pm

Hi,

Trying to compile my project using win32 dll files, I faced the following linking error,
... fatal error LNK1120: 15 unresolved externals.

My OS is Win 7 64 bit and I tired to use x86 phidget21.dll and get my project compiled in Win32 mode. Is this possible? I want my project be run in both Win 32 and 64 bit environments and that was why I went with that setting, however my current OS is Win 7 64 bit. Phidget21.h seems to be the same for both versions, however phidget has two sets off dlls for Win 32 and 64 bits.

Note that I have another device from a different company with both Win 32 and 64 bit compatibility and I am able to compile and link a project using that device in Win32 mode even though I have installed the 64bit version, but for the phidget interface kit 8/8/8 I have been unable to do so.

Thanks,
Ali

User avatar
Patrick
Lead Developer
Posts: 3052
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Linking problem: Win32 vs x64

Postby Patrick » Wed Nov 12, 2014 10:23 am

Make sure you reference the x86 version of the phidget21.lib file - this is installed into program files/phidgets/x86 on 64-bit machines.

-Patrick


Return to “C/C++”

Who is online

Users browsing this forum: No registered users and 1 guest