LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Link error for ini file application

Hello,
I make the application with the ini file. I had added the "inifile.h" to my project. 
But, when I make debug project, it gives me Link error like below. 
 
"Undefined Symbol '_Ini_New@4' reference in "TTKINI.c"."
"Undefined Symbol '_Ini_Dispose@4' reference in "TTKINI.c"."
........
........
........
........
Thanks in advance
0 Kudos
Message 1 of 3
(3,546 Views)

Hi mguven,

Undefined symbols mean the linker can't find the source (object file, DLL, etc) for the corresponding functions. In this case, you need to make sure to add the function panel of the ini instrument driver (which by default links to an object file)

To do this,

1) Open your LabWindows/CVI project and select Edit >> Add Files to Project >> Instruments (*.fp)
2) Browse to
<CVI>\toolslib\toolbox\ and add the inifile.fp.

After this, you should be good to go.  If you are just starting to use the INI instrument driver, check out the ini.prj shipping example in the
<CVI>\samples\toolbox directory.

Best Regards,

Jonathan N.
National Instruments
Message 2 of 3
(3,528 Views)

Dear Jonathan,

Thank you for your interesting.  I solved my problem.

I had not seen the "inifile.c" or "inifile.obj" file inside of sample ini.prj. I perceived it and added to my project. it is running.

ThanksSmiley Very Happy 

0 Kudos
Message 3 of 3
(3,519 Views)