Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Building with Loris

Date2009-12-04 10:43
FromFrancois PINOT
SubjectRe: [Cs-dev] Building with Loris
AttachmentsNone  None  
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...

Regards
Francois

That would indeed work, but this would be more in keeping with good
C++ style and with the Loris sources:

#include <cstdio>

using namespace std;

Regards,
Mike

On 12/3/09, Rene Djack <rene.djack@gmail.com> 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.
>
> Cheers,
> Ren?
>
>
>
>
> 2009/12/3 <jpff@cs.bath.ac.uk>
>
>> 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
>> years,
>> > 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
>> -Wno-format
>> > -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_FCNTL_H
>> > -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/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
>> Loris::fgetc_unlocked(FILE*)?:
>> > /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 _IO_FILE?
>> >
>> > 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