Link Errors - Labwindows/CVI 7.1

C, C++, and Visual C++
zapzog
Fresh meat
Posts: 2
Joined: Fri Mar 29, 2013 5:23 pm
Contact:

Link Errors - Labwindows/CVI 7.1

Postby zapzog » Fri Mar 29, 2013 5:50 pm

I have a 1067 Stepper control board. It is seen by the Phidget Control Panel OK. I'm trying to compile Hello World in CVI 7.14, an ANSI C compiler. It compiles without error, but I have a problem is with Link Errors, as follows:

3 Project link errors
Bad header encountered while reading external module: 'phidget21.dll'.
Aborted load of member "phidget21.dll" from library "d:\Erden\Phidgets\phidget21.lib".
Aborted load of library "d:\Erden\Phidgets\phidget21.lib".

I have the calling conventions set to __stdcall, have included phidget21.h, phidget21.dll and phidget21.lib in the project.

I have built similar projects using other 3rd party libraries without trouble before, many times.
Any help much appreciated.

zapzog
Fresh meat
Posts: 2
Joined: Fri Mar 29, 2013 5:23 pm
Contact:

Re: Link Errors - Labwindows/CVI 7.1

Postby zapzog » Mon Apr 01, 2013 3:26 am

For what it's worth, I almost have it sorted out. I'm using Windows 8 X64, but my compiler is X86. The library installer would only install the X64 library, which caused the errors.
Solution was to manually overwrite the dll and lib files with the X86 items.

My program now links and runs, but there are a few crashing issues when CPhidget_close is called.


Return to “C/C++”

Who is online

Users browsing this forum: No registered users and 3 guests