ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

link errors

Hi!
 
I'm the NPS (Next Poor Sucker)  I'm assigned to learn CVI and maintain a rather complex application.  For openers, I'm trying to install it on a new machine.  When I first tried to compile and run in debug mode, there were issues with missing include files.  I found and supplied them.
 
Now I'm getting the link errors listed below.   I guess that there is still something missing, but I don't know what
 
Any help is appreciated.
 
Roger
 
 14 Project link errors
  Undefined symbol '_Toolbar_SetItemVal' referenced in "BatteryTest_Manual.c".
  Undefined symbol '_DiscardAsyncTimer@4' referenced in "BatteryTest_Manual.c".
  Undefined symbol '_Toolbar_DimItem@12' referenced in "BatteryTest_Manual.c".
  Undefined symbol '_MakeMovableCtrl@28' referenced in "BatteryTest_Manual.c".
  Undefined symbol '_Toolbar_ActivateItem@16' referenced in "BatteryTest_Manual.c".
  Undefined symbol '_Toolbar_GetIndexFromDescription@12' referenced in "BatteryTest_Manual.c".
  Undefined symbol '_Toolbar_GetIndexFromMenu@12' referenced in "BatteryTest_Manual.c".
  Undefined symbol '_Toolbar_GetCtrlFromDescription' referenced in "BatteryTest_Manual.c" and "BLTUtilities_Manual.c".
  Undefined symbol '_Toolbar_New@32' referenced in "BatteryTest_Manual.c".
  Undefined symbol '_Toolbar_SetAttribute' referenced in "BatteryTest_Manual.c".
  Undefined symbol '_Toolbar_SetItemAttribute' referenced in "BatteryTest_Manual.c".
  Undefined symbol '_Toolbar_Display@4' referenced in "BatteryTest_Manual.c".
  Undefined symbol '_Toolbar_InsertItem@40' referenced in "BatteryTest_Manual.c".
  Undefined symbol '_NewAsyncTimer@24' referenced in "BatteryTest_Manual.c".
0 Kudos
Message 1 of 4
(3,765 Views)
It looks like you're missing the tools librarys that NI ships with CVI.  There are a couple of ways to add these to your environment.  The easiest, and the way your predecessor probably did is to select Library | Customize...  Then click on Browse...   and browse to c:\program files\National Instruments\CVI71\toolslib\toolbox and select asynctmr.fp.   This will take care of the asynctmr methods that aren't linking.  The toolbar methods are handled by c:\program files\National Instruments\CVI71\toolslib\custctrl and select toolbar.fp.  Once you restart CVI you should be able to build.  If you choose this method I would recommend removing the .h files you added to your project.
----
I am the founder of CnCSoftwareSolutions. When not cleaning up baby drool, I write about test data or work on Vision, a tool for understanding your test data. Visit me at www.cncsoftwaresolutions.com
0 Kudos
Message 2 of 4
(3,760 Views)

Hello Roger,

You have to load the instruments, containing these functions. To do so, pull down the Instrument menu and select Load.

You can find the instruments needed here:

-   C:\Program Files\National Instruments\CVI80\toolslib\toolbox\asynctmr.fp

-   C:\Program Files\National Instruments\CVI80\toolslib\custctrl\toolbar.fp

0 Kudos
Message 3 of 4
(3,760 Views)
And you will need to add c:\program files\national instruments\cvi71\toolslib\custctrl\movectrl.fp
 
The "cvixx" folder in all these paths must match the cvi version number of your cvi: it may be cvi70, cvi71 or cvi80 depending on which version of cvi you are using (from 7.0 on).
If you are running CVI6.x this directory defaults to C:\program files\National Instruments\MeasurementStudio\CVI\....


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?
0 Kudos
Message 4 of 4
(3,752 Views)