06-19-2017 06:41 PM
This picture describes my problem:
As suggested in "Linker error: Undefined symbol CRC referenced in .obj"
1. I have included the file asynctmr.h from CVI2013\toolslib\toolbox
2. You can verify that the *.h contains the function definition.
3. But still, building the project gives the error undefined symbol.
4. I tried browsing my *.prj, and indeed within my functions I do not see DiscardAsyncTimer. Why?
Solved! Go to Solution.
06-19-2017 11:50 PM - edited 06-19-2017 11:50 PM
Adding the function panel (asynctmr.fp) to your project doesn't help ?
06-20-2017 03:10 AM - edited 06-20-2017 03:11 AM
There are actually two ways to add an instrument (i.e. a .fp object) to a CVI project:
Both permit to use instrument functions taking care of compile and link with the only precaution to #include the proper file in the source modules where you are using them (but the IDE will warn you and add the files by itself in the correct place).
In the first case, adding the .fp to the project too shortens CVI load time since some compiling is no more needed for instrument functions.
The second option is preferrable in my opinion for instruments you plan to use extensively in all of your projects since you do no more need to manually add those modules to every new project you start.
06-20-2017 10:44 AM
I tried the 2nd approach and it works to remove the link error. Thanks.