[gambit-list] Visual Studio and C++ FFI

Valery Valery valery at digitalchile.net
Mon Sep 28 05:09:20 EDT 2009


Working around my task, i found that when I am compiling the gambc
4.5.0, 4.5.1 or 4.52 with MinGW and use --enable-cplusplus compilation
terminates with:

g++ -D_WINDOWS  -Wno-unused -O1 -fno-math-errno -fschedule-insns2 -fno-trapping-
math -fno-strict-aliasing -fwrapv -fno-common -mieee-fp   -I"../include" -c -o "
os_tty.o" -I. -DHAVE_CONFIG_H -D___GAMBCDIR="\"/usr/local/Gambit-C\"" -D___SYS_T
YPE_CPU="\"i686\"" -D___SYS_TYPE_VENDOR="\"pc\"" -D___SYS_TYPE_OS="\"mingw32\""
-D___CONFIGURE_COMMAND="\"./configure --enable-single-host --enable-cplusplus\""
 -D___OBJ_EXTENSION="\".o\"" -D___EXE_EXTENSION="\".exe\"" -D___PRIMAL os_tty.c
-D___LIBRARY
os_tty.c: In function `int lineeditor_output_terminal_op(___device_tty*, int, in
t, unsigned char*)':
os_tty.c:3386: error: invalid conversion from `unsigned char*' to `const CHAR*'
os_tty.c:3386: error:   initializing argument 2 of `BOOL SetWindowTextA(HWND__*,
 const CHAR*)'
os_tty.c: In function `int lineeditor_copy_to_clipboard(___device_tty*, unsigned
 int*, int)':
os_tty.c:4486: error: invalid conversion from `void*' to `short unsigned int*'
os_tty.c: In function `int lineeditor_paste_from_clipboard(___device_tty*)':
os_tty.c:4571: error: invalid conversion from `void*' to `short unsigned int*'
make[1]: *** [os_tty.o] Error 1
make[1]: Leaving directory `/c/ga/gambc-v4_5_2/lib'
make: *** [all-recursive] Error 1

---------------------------------
$ gcc -v
Reading specs from c:/MinGW/bin/../lib/gcc/mingw32/3.4.5/specs
Configured with: ../gcc-3.4.5-20060117-3/configure --with-gcc --with-gnu-ld --wi
th-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --dis
able-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --d
isable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --with
out-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enabl
e-hash-synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.5 (mingw-vista special r3)



More information about the Gambit-list mailing list