[ts-gen] compile problems on cygwin

Gabriel Ricardo gricardo99 at yahoo.com
Fri May 16 12:20:38 EDT 2008


Hello,
Has anyone else tried to compile trader shim on cygwin?  I've successfully compiled on linux, but I get cryptic compile errors when I try on cygwin. 
The only changes I've make are to the Makefile paths for CPPFLAGS and LIB.
My cygwin g++ version is: 
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)
My trader shim version is shim-080411.

I do a 'make debug' and I get this:

make shim 2>&1 | bin/c++.filter | head -16
make[1]: Entering directory `/cygdrive/c/Interactive Broker API stuff/shim-080411'
g++ -Wall -g -I/usr/include/mysql  -c -o once.o src/once.c
In file included from src/glossary.h:48,
                 from src/once-h.h:15,
                 from src/once.c:8:
src/functional.h:213: error: expected init-declarator before '&' token
src/functional.h:213: error: expected `,' or `;' before '&' token
In file included from src/../lib/domain.h:11,
                 from src/tabs.h:23,
                 from src/once-h.h:20,
                 from src/once.c:8:
src/../lib/function.h: In constructor `Function<D, R>::Function(const PermPool&, Char)':
src/../lib/function.h:139: error: anachronistic old-style base class initializer
src/../lib/function.h:139: error: unnamed initializer for `Function<D, R>', which has no base classes
make[1]: *** [once.o] Error 1
make[1]: Leaving directory `/cygdrive/c/Interactive Broker API stuff/shim-080411' 

I can get past the errors for src/functional.h:213 by commenting-out that line, since the typedef doesn't seem to be used elsewhere in the code.  I'm not sure if that's correct, but I've been just trying to make progress. The   next set of errors has me stuck.  
Any help much appreciated.

-Gabriel


      


More information about the ts-general mailing list