I am using Windows7, and a recent version of cygwin. I am trying to run: "cbmc --gcc -D__CYGWIN__ gcc_int32.c --function foo" on the following code:
CBMC returns an error (below) due to the preprocessor. However, "gcc -E gcc_int32.c" works as expected.
Can you give me any hint?
Thank you!
With best regards,
Dan
--------------- CBMC error message:
CBMC version 5.6 64-bit x86_64 windows
Parsing gcc_int32.c
file <command-line> line 0: <command-line>:0:0: warning: "__STDC_VERSION__" redefined
<built-in>: note: this is the location of the previous definition
In file included from /usr/include/stdint.h:13:0,
from /usr/lib/gcc/i686-pc-cygwin/5.4.0/include/stdint.h:9,
file from gcc_int32.c line 1: from gcc_int32.c:1:
file /usr/include/sys/_intsup.h line 89: /usr/include/sys/_intsup.h:89:2: error: #error "Unable to determine type definition of int32_t"
#error "Unable to determine type definition of int32_t"
^
GCC preprocessing failed (fopen failed)
GCC preprocessing failed
PARSING ERROR