LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Undefined Symbol & Compability Mode

Hi

I've have had some trouble using a HP34401A Driver (serial mode) with LabWindows 5.01

To get moving I tried including all the .h, .c, .fp files ijnto my project in order to do some debugging (I suppose I would then be able to "Step Into" the functions).

My problem is two-fold:

1: When I add the files the Linker says: "Undefined Symbol 'IVI_GetErrorInfo' in HP34401A.c plus some 80 more undefined symbols :-(. I have added the IVI.h prototype, nut my guess was that this was a library problem. So I added IVI.Lib to the project:

2: All the Undefined Symbols error disappeared, but then I got the error: "The File format of ... IVI.Lib does not match that used by the current compability Mode.

What is going on. Could anyon
e inform me of a save way to include these driver source files without getting these errors?

Any help will be highly appreciated

Thanks

Klaus Kragelund
0 Kudos
Message 1 of 2
(3,156 Views)
During CVI installation you are prompted for the 'compatibility mode', with Microsoft, Watcom, Borland and some other compiler to choose from.
The error you report tells you that the compatibility mode you choose during installation is different fromt the one expected from the lib file, so CVI is not able to link the library to the project.

To correct this error simply re-run the installation of CVI choosing the 'Change compatibility mode' option: the setup program will modify CVI environment for you. The most probable compatibility mode to set is Microsoft C/C++: try this one first.

To compile correctly your project, you will have to recompile also all the libraries you have eventually produced by yourself with the old compatibility mode.

I al
ready asked NI in the past, but they told me there is no way of modifying the compatibility mode other than the setup program of CVI (this will mean to keep the original CD ready to use every time you have to swith from one mode to another).

Roberto


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 2
(3,156 Views)