[Gambas-user] Issue 311 in ... Attn Tobias

Tobias Boege taboege at ...626...
Tue Aug 21 15:11:11 CEST 2012


On Tue, 21 Aug 2012, Bruce wrote:
> On Tue, 2012-08-21 at 20:42 +0930, Bruce wrote:
> > On Tue, 2012-08-21 at 11:35 +0200, Tobias Boege wrote:
> > 
> > > > c_list.c:27:1: error: unknown field 'uptr' specified in initializer
> > > 
> > > That is really weird. I just checked-out a clean copy from svn and built it
> > > successfully. May I ask what compiler (version?) you used?
> > > Anyway, I was using a GCC extension to save space for an intptr_t. That's
> > > not too important and corrected in rev5063.
> > > 
> > > Regards,
> > > Tobi
> > 
> > [bb at ...2711... ~]$ gcc -v
> > Using built-in specs.
> > COLLECT_GCC=gcc
> > COLLECT_LTO_WRAPPER=/usr/lib/gcc/i586-mandriva-linux-gnu/4.5.2/lto-wrapper
> > Target: i586-mandriva-linux-gnu
> > Configured with: ../configure --prefix=/usr --libexecdir=/usr/lib
> > --with-slibdir=/lib --with-bugurl=https://pclinuxos.com/
> > --mandir=/usr/share/man --infodir=/usr/share/info
> > --enable-checking=release --enable-languages=c,c
> > ++,ada,fortran,objc,obj-c++,java --build=i586-mandriva-linux-gnu
> > --host=i586-mandriva-linux-gnu --with-cpu=generic --with-system-zlib
> > --enable-threads=posix --enable-shared --enable-objc-gc
> > --enable-long-long --enable-__cxa_atexit --disable-libunwind-exceptions
> > --enable-clocale=gnu --enable-java-awt=gtk
> > --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre
> > --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-gtk-cairo
> > --disable-libjava-multilib --enable-ssp --disable-libssp
> > --disable-werror --with-python-dir=/lib/python2.6/site-packages
> > --enable-lto --enable-plugins
> > Thread model: posix
> > gcc version 4.5.2 (GCC) 
> > 
> > Any clues in that gobbledegook?
> > Any other version info that might help?
> > 
> > I'll try 5063 tomorrow morning (AUS) and let you know.
> > 
> > Bruce
> > 
> Ah, nothing on TV so tried 5063, all good now.
> Thanks for that.
> Bruce
> 

O.k., well my version is 4.7.1
It is said in gcc's online doc[0] (not my local info manual) that this has
become part of C11 standard. The GCC ChangeLog for 4.6[1] says that unnamed
structures/unions are enabled since then.

[0] http://gcc.gnu.org/onlinedocs/gcc/Unnamed-Fields.html
[1] http://gcc.gnu.org/gcc-4.6/changes.html




More information about the User mailing list