LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems Linking .lib files

Hi!!

In instrument files menu of my application I added some .lib files.

I also add the .h files.

I can compile the project (using the crtl+K command) but it is impossible to run it. It occurs a link error.

The following error appears:
Undefined symbol '_ds_test_function@12' referenced in 'dsComm.c'

How can I solve it? Have I to do another thing when I attach a .lib file in my project?


Thank you!
0 Kudos
Message 1 of 6
(4,142 Views)

Hello Olivera,

I think you are missing "dsComm.h" header file. Look for it, copy it and paste it in the file which has your "ds_test_function". Let me know of the outcome.

Robert Mensah

 

0 Kudos
Message 2 of 6
(4,121 Views)
Hello!

I added the .h file in the project... Have this thing ever occurred with you?

Thank you


0 Kudos
Message 3 of 6
(4,107 Views)

Hi Olivera,

This frequenly happens to me. There are three ocations that I have had link errors:

1)  I added a library to my program but the .lib file was an outdated version.

2)  My program was missing a file that it could not find

3)  My program was missing a header file.

So, when you get link errors these are some things to look for.

Anyway, did your problem get solved after adding the the header file?

 

Robert Mensah

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

What are the critieria for a library to be considered an "outdated" version?

Best regards,

Kevin C.

0 Kudos
Message 5 of 6
(4,042 Views)

Hi!

Answering your questions:

The library in updated. All files that are required are in the environment path and the header file has no problems.

I am afraid that it is a CVI bug, because one of my libraries starts to work after I begin a new project and the other stops.

Do you have any other idea?


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