LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

unknown type name "intptr_t" when convert project from CVI5.5 to 2013

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?

0 Kudos
Message 1 of 8
(5,338 Views)

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.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 8
(5,333 Views)

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.

 

 

 

 

0 Kudos
Message 3 of 8
(5,327 Views)

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. 



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 4 of 8
(5,318 Views)

Do you mean include the .fp files in the library menu?

I include the file both under Library and the Instrument Menu.

2.jpg

But still I am getting the message indicating I need to insert #include "toolbox.h" in my code

1.jpg

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'

0 Kudos
Message 5 of 8
(5,305 Views)

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).

 



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 6 of 8
(5,298 Views)

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

0 Kudos
Message 7 of 8
(3,092 Views)

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 🙂

Francine P.
Applications Engineering
National Instruments
0 Kudos
Message 8 of 8
(3,082 Views)