[ts-gen] compile problems on cygwin

Gabriel Ricardo gricardo99 at yahoo.com
Fri May 16 19:33:07 EDT 2008

Bill and Russ, 
Thanks for the quick response. For some reason I'm not getting emails from the list, I have to go to the archive to read your responses (perhaps this is because I just joined?).

It appears you guys found the culprit pretty quickly.  It would have taken me forever to get to the bottom of this.  Unless you guys know of a workaround, my next step is to try using gwc (gcc for windows).  
Russ, I beleive you are correct, bugs in cygwin/gcc are reported to 
cygwin at cygwin.com


--- On Fri, 5/16/08, Gabriel Ricardo <gricardo99 at yahoo.com> wrote:

> From: Gabriel Ricardo <gricardo99 at yahoo.com>
> Subject: compile problems on cygwin
> To: ts-general at trading-shim.org
> Date: Friday, May 16, 2008, 12:20 PM
> 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