LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Compilation Errors when C code built with CVI 9.1.0

I am trying to build the old C source code ( writtten on CVI ver 6.0)  on CVI ver 9.1.0.
And am getting Errors:

"TYPES.H"(104,31)   Redeclaration of 'int32_t'.
 "time.h"(94,35)   syntax error; found '*' expecting ')'.
"time.h"(100,29)   syntax error; found '*' expecting ')'.

Whats the version change Happened from CVI 6.0 to CVI 9.1.0 ?
Any suggestions to get rid of this Problem.

0 Kudos
Message 1 of 2
(2,984 Views)

You should sprinkle some #error statements in time.h to find out why time_t is not being defined. It's supposed to be defined in time.h itself (line 68). Right now, my best guess is that somewhere in your project, _TIME_T_DEFINED is already defined and so the definition of time_t is being skipped. Can you confirm that?

 

Luis

0 Kudos
Message 2 of 2
(2,969 Views)