Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

string of bc55 compiler error in #include "decl-32.h"

! Error E2303 c:\Borland\bcc55\include\decl-32.h 268: Type name expected

first compiler error pointing to line 248 in decl-32.h:


typedef int (__stdcall * GpibNotifyCallback_t)(int, int, int, long, PVOID);

this is the first of a string of errors with identical syntax: "Type name
expected".

the bcc55 "Error Messages and Warnings" help notes had this to say:

"E2111 Type 'typename' may not be defined here" - Compiler error....Class
and enumeration types may not be defined in a function return type, a function
argument type, a conversion operator type, or the type specified in a cast.


You must define the given type before using it in one of these contexts.

Note: This error message is often the
result of a missing semicolon (;) for
a class declaration. You might want to verify that all the class declarations
preceding the line on which the error occurred end with a semicolon."

any ideas as to how to fix these errors?
0 Kudos
Message 1 of 2
(4,017 Views)
This is caused by having the windows.h include
located AFTER the decl-32.h file. Move the
#include statement to before the
#include and all should be well.

(Thanks to Azucena Perez of N.I. and the post on 3/13/02 that answered this questions for me, albeit in a more round-about search)
0 Kudos
Message 2 of 2
(4,017 Views)