While migrating an older CVI 7.x project to CVI 8.0, which used to cleanly build a DLL, I get the following compile error:
"assert.h"(28,1) syntax error; found 'void' expecting ';'.
Since this is a built-in file that ships with CVI 8.0 (in CVI's "ansi" directory), I never messed with it, and never would.
And as far as I can tell, I never called anything from assert.h directly, and I have no idea how to work backwards from this compile error to figure out what is different from before. I mean, it's not like I can put a breakpoint in there somewhere for the compiler to reveal how I got there, you know?
I put a dashed comment on the line where the compile error is located.
Can anyone point me in a direction, because I'm dead in the water now.
JB
/*============================================================================*/
/* L a b W i n d o w s / C V I */
/*----------------------------------------------------------------------------*/
/* Copyright (c) National Instruments 1987-1999. All Rights Reserved. */
/*----------------------------------------------------------------------------*/
/* */
/* Title: assert.h */
/* Purpose: Include file for ANSI Standard C assertion handler */
/* */
/*============================================================================*/
#include "cvidef.h"
#include "cvirte.h"
#ifndef _ASSERT_H_
#define _ASSERT_H_
#ifdef __cplusplus
extern "C" {
#endif
#undef assert
#ifdef NDEBUG
#define assert(exp) ((void) 0)
#else
void CVIANSI _assert(char *, char *, int); // <-----------------------------------
#define assert(exp) ((exp) ? (void) 0 : _assert(#exp, __FILE__, __LINE__))
#endif
#ifdef __cplusplus
}
#endif
#endif /* _ASSERT_H_ */
--
To whom it may concern: My alias is also my nickname, I've had it since I was a (very) skinny basketball-playing teen. OK, so I've got a 38 inch waist now, but my hometown friends haven't shaken that appellation for me. I trust that you will someday be OK with that alias, as I have been with that nickname.