From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Object file problem

Hi all,

May you please tell me what is object file(.obj) and how to use it?

I have several c files in the project is enabled "O" option.
I updated the code of these c files, compile it and create objects for
these c files, I found the change is not effective sometimes when I
run the application .

What is the reason for these.

Thanks in advance.

Ivan
0 Kudos
Message 1 of 2
(2,493 Views)
Ivan,

When building an executable there are 2 steps: Compiling the code to a machine code, and put all of this machine code together into an executable.

The Obj files are the result of the compilation process, raw machine code for each function that you have defined. In general there is no reason to use directly obj files unless you are loading the external code at runtime, resolving function addresses and calling the code in the obj; this type of dynamic loading is not very popular. Here is a link to a document with more info.

The 'O' option instructs CVI to compile that file without debugging information; basically you will not have automatic runtime e
rror checking, and you can have breackpoints or step through the code.

I hope this helps, let me know if you have any further questions.

Regards,
Juan Carlos
N.I.
0 Kudos
Message 2 of 2
(2,493 Views)