LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Any other way to create .obj file other than options->Create Object file

I want to create .obj files (not .niobj or .nidobj) for all my .c files in the project.
 
I dont want to use options->Create Object file, since I have to do this individually for every file.
 
Please suggest me any alternative.
Message 1 of 3
(3,230 Views)
You have two possibilities:

1. You can write a short app that uses the CVI ActiveX server to load a C file and create object files in a loop. (Check out the examples in samples\activex\cvi. The function you'd need to use is CVI_AppCreateObjectFile)

2. An .niobj file is identical to an .obj file. You can go ahead and create .niobj files and then run some script that renames the suffix and copies them up a level.

Luis
NI
Message 2 of 3
(3,223 Views)
In version 7.1 and higher, you can also use the CVI command-line compiler (compile.exe) to compile a source file into an object file. The CVI command-line compiler is installed in the CVI installation folder (same folder as cvi.exe).
Message 3 of 3
(3,203 Views)