[BRLTTY] Swift compilation error with gcc-4.4

Mario Lang mlang at delysid.org
Thu May 14 03:28:44 EDT 2009


Samuel Thibault <samuel.thibault at ens-lyon.org> writes:

> Mario Lang, le Wed 13 May 2009 23:54:18 +0200, a écrit :
>> Samuel Thibault <samuel.thibault at ens-lyon.org> writes:
>> > Mario Lang, le Wed 13 May 2009 18:12:00 +0200, a écrit :
>> >> ./../../../Programs/spk_driver.h:78: error: expected primary-expression before ‘.’ token
>> >> ./../../../Programs/spk_driver.h:78: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x
>> >> 
>> >> Does anyone have any idea what this could be related to?
>> >
>> > I guess the problem is that g++ doesn't like ".name = content"
>> > initializers here.  These are new in C99.  I guess we should just have
>> > ./configure try to add -std=c++0x when that is accepted.
>> 
>> Good try, however, adding -std=c++0x to the g++-4.4 call does not
>> help, I get the same errors.
>
> Oops we don't have c++ code any more anyway.

I thought so as well.

> I guess you are using gcc-4.4 from debian?

Right.

> I can not reproduce the issue,

That is because you probably don't have swift installed.

The use of C++ comes from this Makefile.in fragment in
Drivers/Speech/Swift:

speech.$O:
	$(CXX) $(SPK_CXXFLAGS) -I$(SWIFT_ROOT)/include -c $(SRC_DIR)/speech.c

> how are you setting it?  linking gcc, or CC=gcc-4.4 ./configure, or
> something else?

As explained in my original posting, I use
CC=gcc-4.4 CXX=g++-4.4 ./configure

-- 
CYa,
  ⡍⠁⠗⠊⠕ | Debian Developer <URL:http://debian.org/>
  .''`. | Get my public key via finger mlang/key at db.debian.org
 : :' : | 1024D/7FC1A0854909BCCDBE6C102DDFFC022A6B113E44
 `. `'
   `-      <URL:http://delysid.org/>  <URL:http://www.staff.tugraz.at/mlang/>


More information about the BRLTTY mailing list