It does not compile when I include <stdio.h> nor <cstdio> in the file
FourierTransform.C from Loris. If we look at the error report below, we see
that <stdio.h> is included from fftw3.h, line 50 anyway.
I keep on investigating...
That would indeed work, but this would be more in keeping with good
C++ style and with the Loris sources:
using namespace std;
On 12/3/09, Rene Djack <rene.djack@...> wrote:
> Hi list,
> I use UbuntuStudio 9.10 and i have the same error with Loris. (?)
> I had also a compilation problem with STK that i solved by including
> <stdio.h> in files FileRead.cpp and FileWrite.cpp.
> 2009/12/3 <jpff@...>
>> I build with Loris on OpendSuSE11.2 and 11.1
>> On 11.2 I had a number of problems with Loris and the mutating C++
>> language; I did get it ti compile eventually.
>> ==John ff
>> > Hello,
>> > I've been building csound from CVS on my linux box (ubuntu) for two
>> > without any noticeable problem. Yesterday, I updated my linux box to
>> > ubuntu
>> > 9.10 and I got an error building csound with loris-1.5.4:
>> > g++ -o Opcodes/Loris/src/
FourierTransform.os -c -fexceptions
>> > -fno-strict-aliasing -fno-strict-aliasing -fno-strict-aliasing
>> > -O3 -mtune=native -ftree-vectorize -ffast-math -DGNU_GETTEXT -g
>> > -fomit-frame-pointer -freorder-blocks -DLINUX -DPIPES
>> > -fvisibility=hidden
>> > -fno-strict-aliasing -fno-strict-aliasing -DHAVE_FFTW3_H -Wno-comment
>> > -Wno-unknown-pragmas -Wno-sign-compare -fno-strict-aliasing -fPIC
>> > -DHAVE_LIBSNDFILE=1016 -DHAVE_FLTK -DUSE_DOUBLE -DHAVE_SOCKETS
>> > -DHAVE_PTHREAD_BARRIER_INIT -DHAVE_SYNC_LOCK_TEST_AND_SET
>> > -DHAVE_UNISTD_H -DHAVE_STDINT_H -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H
>> > -DHAVE_TERMIOS_H -DHAVE_VALUES_H -DHAVE_SOCKETS -DHAVE_DIRENT_H -I. -IH
>> > -I/usr/lib/jvm/java-6-sun/include
>> > -I/usr/lib/jvm/java-6-sun/include/linux
>> > -I/usr/include/fltk-1.1 -I/usr/local/include -I/usr/include
>> > -I/usr/X11R6/include -IOpcodes/Loris -IOpcodes/Loris/src -I.
>> > Opcodes/Loris/src/FourierTransform.C
>> > In file included from /usr/include/stdio.h:907,
>> > from /usr/include/fftw3.h:50,
>> > from Opcodes/Loris/src/FourierTransform.C:137:
>> > /usr/include/bits/stdio.h: In function ?int
>> > /usr/include/bits/stdio.h:56: error: invalid use of incomplete type
>> > ?struct
>> > _IO_FILE?
>> > /usr/include/stdio.h:45: error: forward declaration of ?struct
>> > The build without loris is ok. It seems that the problem comes from
>> > g++-4.4.
>> > Did anyone encounter this problem? Any suggestion?
>> > Regards
>> > Francois Pinot