LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Undefined references to *.obj file in Test Executive 2.0

I have created object file for the *.c file which contains all the subfunctions. When I want to create a new test sequence in Test Executive 2.01, it gives me error, "Unable to load barcodecheck in file c:\test\test.obj(undefined references..)"

barcodecheck is a function in test.c file and test.obj has been created successfully under current compatibility mode.(Borland C++).

I understand that Test Executive has been obsoleted and been replaced by TestStand, but I strongly believe that NI Application Engineer would be able to answer my question.

Pl. find attached the Loading Tests warnings for your reference.

Regards,
ashish
0 Kudos
Message 1 of 3
(3,032 Views)
Hello

On pg 57 of the test executive manual, it mentions how you can debug the code you have. If that works ok for you, make sure that you include all the obj files, you need to make sure that all the functions that you are using can be verfied and linked correctly, so for example, if you are using a function from NI-DMM, you need to make sure that you also include the obj files from NI-DMM in the project so every funciton can be resolved correctly.

I hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 3
(3,032 Views)
Hi,

Let me explain my problem again:
I have created a project in CVI with the following files in the project:
test.c
txedpc.c
txlogin.c
txedseq.c
txmain.c
txengine.c
txreport.c
txprecnd.c
txsavres.c
txedseq.h
txengine.h
test.h
test.uir

I am able to compile and create test.obj file. After this, I am running Test Executive separately(using icon and not starting using testexec project in CVI) on other machine and copying over just test.obj file from Ist machine in any directory. Test Executive does not allow me to create any sequence using this test.obj file, when referenced to the path of *.obj file and gives the above error (undefined references..)

Do I need to create *obj for all the *.c files in the project in CVI and then copy over to ot
her machine for this case. But then, where should I copy these *obj files to? as I am only giving reference for test.obj, which contains all the functions.

OR
Should I open the standard testexec project(comes in Test Executive Toolkit package) in CVI and add all the above *.obj files and compile again.

Pl. advice.

Thanks for your support.

Regards,
ashish
0 Kudos
Message 3 of 3
(3,032 Views)