LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI link error

Please  find the print screen attachment for the link error message getting displaying while creating the dll . Please let me now what would be the solution
 
Regards,
Sharanu
0 Kudos
Message 1 of 6
(4,154 Views)

Hi Sharanu,

From your screenshot, I haven't been able to figure out exactly what is causing the problem.  In WaveformGen.c, can you right-click on the functions it is having trouble linking and recall the function panels?  Also, are you able to run the CVI example code that uses niHWS.h?  If you could pare down  your code to a small project that replicates these linker errors I would be happy to take a look at your code.

Megan B.
Applications Engineer
National Instruments

0 Kudos
Message 2 of 6
(4,125 Views)
Thanks Megan,
 
Yes we are able to run the code using niHWS.h. In-fact  we are reinstalling this in to the system since we had some issue PC . Please find the attchament for the code for your reference. Please advise how to resolve this
 
Regards,
Sharanu
 
Download All
0 Kudos
Message 3 of 6
(4,107 Views)
Sharanu,

From the screenshot that you provided, It seems that the niHWS lib file is not included in your application and hence you are getting all the link errors. Please attach the niHWS.lib so that all these problems are resolved. The lib file could be found in the following directory (C:\Program Files\National Instruments\NI-HWS\Lib). You can add the Lib file by going to Edit >> Add Files to Project >> Add your lib file. Please let us know whether this fixes your problem.

Ayman K
0 Kudos
Message 4 of 6
(4,066 Views)
Thanks Ayman
 
I have added the Lib as per your suggestion ,now it showing up different error . Please refere the attachment for the error message . Please suggest me how to resolve this issue .
 
Regards,
Sharanu
0 Kudos
Message 5 of 6
(4,059 Views)

Hi Sharanu,

What are your DLL Export Options?  You can find these by going to Build>>Target Settings.

Megan B.
National Instruments

0 Kudos
Message 6 of 6
(4,008 Views)