09-22-2015 10:03 AM
I am getting some compile error messages when trying to convert the previous project from 5.5 CVI to the current 2013 Version.
"toolbox.h"(762,9) error: unknown type name 'intptr_t'
"toolbox.h"(1251,42) error: unknown type name 'CVIAbsoluteTime'
toolbox.h is a read only file, and I couldn't change anything at this moment. Does anyone know what cause this issue? and how could I solve it?
09-22-2015 10:57 AM
First of all I'd check that the correct version of the toolbox is in use: if you have opened the old project in the new IDE, you could be pointed to the old library.
09-22-2015 11:58 AM
Hi RovertoBozzolo,
Thank you for the help, I double checked and guess I am using the new header files, which is pointed to C:\Program Files (x86)\National Instruments\CVI2013\toolslib\toolbox
at the meantime I am also getting error messages showing: 'CVIAbsoluteTime' .
Probrabaly causing by the same reason.
09-22-2015 04:59 PM
I was intending the whole Toolbox, not only the header file. Depending on how it is is loaded, you can find it listed either in Instrument or in Library menu.
09-23-2015 08:31 AM
Do you mean include the .fp files in the library menu?
I include the file both under Library and the Instrument Menu.
But still I am getting the message indicating I need to insert #include "toolbox.h" in my code
after I insert the code, the error message still the same:
"toolbox.h"(762,9) error: unknown type name 'intptr_t'
"toolbox.h"(1251,42) error: unknown type name 'CVIAbsoluteTime'
09-23-2015 10:42 AM
The situation is not clear!
intptr_t is defined in cvidef.h, while CVIAbsoluteTime is defined in utility.h: none of them is defined in toolbox.h, even though they are used in it.
You could try deleting all #includes from the source and let CVI add all necessary files by itself.
Do you get the same errors while running a shipping sample? Possibly one that makes use of the programmer's toolbox (e.g. the infile example that you can find in <CVISamplesFolder>\toolbox\ini.cws).
04-30-2018 01:16 PM
Was this problem solved, did deleting the #includes worked or some other kind of solution, I am having similar issue with the IniText instead of intptr_t.
Please let me know.
Thanks,
Riddhi
05-01-2018 09:57 AM
This forum post is 3 years old, so it might benefit to make a new one if the original person doesn't respond. Just FYI 🙂