Hi
I create some c-code with the tool Netbeans8.2
The problem is that the rt_errh.h generate
a preprocessor error
in the code:
#ifndef errh_Bugcheck
# if defined OS_ELN || defined OS_VMS
# define errh_Bugcheck(sts, str) \
(errh_Fatal("pwr bugcheck: <%s>, in file %s, at line %d\n", (str),__FILE__,__LINE__),(lib$signal(sts)))
# elif defined OS_POSIX
# define errh_Bugcheck(sts, str) \
(errh_Fatal("pwr bugcheck: <%s>, in file %s, at line %d\n%m", (str),__FILE__,__LINE__, sts),(exit(sts)))
# else
# error Platform not defined <<
# endif
# endif
If i make this line comment , it solves the problem
#ifndef errh_Bugcheck
# if defined OS_ELN || defined OS_VMS
# define errh_Bugcheck(sts, str) \
(errh_Fatal("pwr bugcheck: <%s>, in file %s, at line %d\n", (str),__FILE__,__LINE__),(lib$signal(sts)))
# elif defined OS_POSIX
# define errh_Bugcheck(sts, str) \
(errh_Fatal("pwr bugcheck: <%s>, in file %s, at line %d\n%m", (str),__FILE__,__LINE__, sts),(exit(sts)))
# else
# // error Platform not defined <<<<
# endif
# endif
Is there something wrong with this code????
cees