delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/31/07:12:18

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <5.1.1.6.0.20021031131013.07492ea0@pop.wanadoo.be>
X-Sender: wanp6400 AT pop DOT wanadoo DOT be
Date: Thu, 31 Oct 2002 13:11:36 +0100
To: cygwin AT cygwin DOT com
From: Stan Pinte <stan DOT pinte AT wanadoo DOT be>
Subject: Fwd: problem compiling under cygwin
Mime-Version: 1.0
X-GCMulti: 1

hello,

I am trying to compile something under a pretty recent version of cygwin, 
and it fails, because

typedef complex<double> sim_complex;

gives that error:

../gossip/sim.h:37: syntax error before `;' token

Here enclosed the full stacktrace.

Should I update any of my build tools? (gcc, or any other)

thanks a lot,

Stan.


>Date: Thu, 31 Oct 2002 11:22:18 +0100
>To: gossip-general AT nongnu DOT org
>From: Stan Pinte <stan DOT pinte AT wanadoo DOT be>
>Subject: Fwd: problem compiling under cygwin
>Cc: Marius Vollmer <marius DOT vollmer AT uni-dortmund DOT de>
>
>
>here is what the make step produces:
>
>g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" 
>-DPACKAGE\
>_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"gossip-sim\" 
>-DVERSION=\"0.9.\
>0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
>-DHAVE_STDLIB_H=1\
>  -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_UNISTD_H=1 
> -DHAV\
>E_DLFCN_H=1 -I. -I. -I .. -I. -I/nonexistent/include -g -O2 -c init.cc -MT 
>init\
>.lo -MD -MP -MF .deps/init.TPlo  -DDLL_EXPORT -DPIC -o .libs/init.lo
>In file included from dynblock.h:28,
>                  from init.cc:26:
>../gossip/sim.h:37: syntax error before `;' token
>../gossip/sim.h:159: `sim_complex' was not declared in this scope
>../gossip/sim.h:159: `var' was not declared in this scope
>../gossip/sim.h:159: parse error before `char'
>../gossip/sim.h:160: `sim_complex' was not declared in this scope
>../gossip/sim.h:160: `var' was not declared in this scope
>../gossip/sim.h:160: parse error before `char'
>../gossip/sim.h:160: `void sim_comp::get(...)' and `bool sim_comp::get(...)'
>    cannot be overloaded
>../gossip/sim.h:169: `sim_complex' was not declared in this scope
>../gossip/sim.h:169: `var' was not declared in this scope
>../gossip/sim.h:169: parse error before `&' token
>../gossip/sim.h:170: `bool sim_comp::get(...)' and `bool sim_comp::get(...)'
>    cannot be overloaded
>../gossip/sim.h:171: `sim_complex' was not declared in this scope
>../gossip/sim.h:171: `var' was not declared in this scope
>../gossip/sim.h:171: parse error before `&' token
>../gossip/sim.h:171: `void sim_comp::get(...)' and `bool sim_comp::get(...)'
>    cannot be overloaded
>../gossip/sim.h:202: type specifier omitted for parameter `sim_complex'
>../gossip/sim.h:202: parse error before `)' token
>../gossip/sim.h:266: parse error before `*' token
>../gossip/sim.h:267: parse error before `*' token
>../gossip/sim.h:267: `virtual void sim_complex_comp::step(...)' and `virtual
>    void sim_complex_comp::step(...)' cannot be overloaded
>../gossip/sim.h:278: parse error before `*' token
>../gossip/sim.h:279: parse error before `*' token
>../gossip/sim.h:279: `virtual void sim_complex_int_comp::step(...)' and `
>    virtual void sim_complex_int_comp::step(...)' cannot be overloaded
>../gossip/sim.h:290: type specifier omitted for parameter `sim_complex'
>../gossip/sim.h:290: parse error before `*' token
>../gossip/sim.h:291: type specifier omitted for parameter `sim_complex'
>../gossip/sim.h:291: parse error before `*' token
>../gossip/sim.h:291: `virtual void sim_int_complex_comp::step(...)' and `
>    virtual void sim_int_complex_comp::step(...)' cannot be overloaded
>make[2]: *** [init.lo] Error 1
>make[2]: Leaving directory `/usr/local/src/gossip-sim-0.9.0/src'
>make[1]: *** [all] Error 2
>make[1]: Leaving directory `/usr/local/src/gossip-sim-0.9.0/src'
>make: *** [all-recursive] Error 1
>
>Maybe I choosed the wrong option in my ./configure fix....
>
>Stan.
>
>
>>Date: Thu, 31 Oct 2002 11:17:43 +0100
>>To: Marius Vollmer <marius DOT vollmer AT uni-dortmund DOT de>
>>From: Stan Pinte <stan DOT pinte AT wanadoo DOT be>
>>Subject: problem compiling under cygwin
>>Cc: gossip-general AT nongnu DOT org
>>
>>hello,
>>
>>the following in the ./configure script poses me a problem:
>>
>>echo "$as_me:$LINENO: checking how to build block programs" >&5
>>echo $ECHO_N "checking how to build block programs... $ECHO_C" >&6
>>case $host_os in
>>linux-gnu*)
>>   GOSSIP_BLOCK_LDFLAGS="-shared -export-dynamic";;
>>freebsdelf*)
>>   GOSSIP_BLOCK_LDFLAGS="-shared -export-dynamic";;
>>solaris*)
>>   GOSSIP_BLOCK_LDFLAGS="-G -export-dynamic";;
>>*)
>>   GOSSIP_BLOCK_LDFLAGS="unknown";;
>>esac
>>if test "$GOSSIP_BLOCK_LDFLAGS" = unknown; then
>>   echo "$as_me:$LINENO: result: no way" >&5
>>echo "${ECHO_T}no way" >&6
>>   { { echo "$as_me:$LINENO: error: I don't know how to build block 
>> programs on \
>>$host_os." >&5
>>echo "$as_me: error: I don't know how to build block programs on 
>>$host_os." >&2\
>>;}
>>    { (exit 1); exit 1; }; }
>>else
>>   echo "$as_me:$LINENO: result: $GOSSIP_BLOCK_LDFLAGS" >&5
>>echo "${ECHO_T}$GOSSIP_BLOCK_LDFLAGS" >&6
>>fi
>>
>>checking how to build block programs... no way
>>configure: error: I don't know how to build block programs on cygwin.
>>
>>I added the line
>>
>>cygwin*)
>>   GOSSIP_BLOCK_LDFLAGS="-shared -export-dynamic";;
>>
>>and now the ./configure is OK.
>>
>>Stan.
>>
>>Shall I send you a diff?


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019