skribilo-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [skribilo-users] Build failure


From: Ludovic Courtès
Subject: Re: [skribilo-users] Build failure
Date: Mon, 14 May 2012 15:00:34 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.93 (gnu/linux)

Hi Roger,

Roger Mason <address@hidden> skribis:

> ./reader-config.h:21:13: error: redefinition of typedef 'scm_t_wchar'
> ./reader-config.h:21:13: note: previous declaration of 'scm_t_wchar'

Indeed, <reader-config.h> lacked a multiple-inclusion guard, which
commit b015d3221f37ac5b7e4028802a17a1c97678544c fixes.

Interestingly, the problem would show up with GCC 4.5, but not with
4.6/4.7:

--8<---------------cut here---------------start------------->8---
$ cat > t.c
typedef int foo;
typedef int foo;

$ gcc -fsyntax-only t.c

$ gcc --version
gcc (GCC) 4.6.2
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


$ /nix/store/x62i24v7cpcwksfpkcyibpskh9wx2xa5-gcc-wrapper-4.5.1/bin/gcc 
-fsyntax-only t.c
t.c:2:13: error: redefinition of typedef ‘foo’
t.c:1:13: note: previous declaration of ‘foo’ was here

$ /nix/store/0gnxm79i35ps5y0brwr7nwg12bz6anpa-gcc-debug-wrapper-4.7.0/bin/gcc 
-fsyntax-only t.c
--8<---------------cut here---------------end--------------->8---

Thanks!

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]