| No, I've made a mistake. What I wanted to mean is that the libsndfile headers are not needed.
Victor
On 12 Dec 2011, at 10:41, Andres Cabrera wrote:
> Hi Victor,
>
> (moved to dev list)
> Does this mean the released version for all platforms have libsndfile
> statically linked?
>
> Cheers,
> Andrés
>
> On Mon, Dec 12, 2011 at 9:44 AM, Victor Lazzarini
> wrote:
>> You should not need -lsndfile anymore with the latest csound. Also -lpthread only if you are using threads and -lcsnd if you are using the 'interfaces' library.
>>
>> Victor
>>
>> On 12 Dec 2011, at 09:29, Tarmo Johannes wrote:
>>
>>> just as an example, I found from an old simple Makefile
>>>
>>> line
>>>
>>> g++ -DUSE_DOUBLE -o csound-thread2 csound-thread2.cpp -lcsound64 -lsndfile -ldl -lpthread -lcsnd
>>>
>>> looks like, you as use floasts-precision csound and the source code does not use PerformanceThread, your line could be something like
>>>
>>> g++ -I /home/khirai/csound/src/git/csound5/H/ -L /home/khirai/csound/src/git/csound5/ -lcsound -lcsnd -lsndfile test.cc
>>>
>>> perhaps some of the libraries are too much, but give it a try!
>>>
>>> tarmo
>>>
>>>
>>> On Monday 12 December 2011 09:40:13 Francois PINOT wrote:
>>>> It's a linking problem: the linker (ld) does not find the csound library.
>>>> You should verify the csound lib name (on my system, with csound for
>>>> doubles, the name is libcsound64.so, and thus I use the flag -lcsound64
>>>> when linking).
>>>>
>>>> Regards
>>>>
>>>> Francois
>>>>
>>>>
>>>> 2011/12/12 Kelly Hirai
>>>>
>>>>> i'm trying to build the example program in the Walsh tutorial in linux,
>>>>> but i cant seem to get the linking to happen. did i miss a step building
>>>>> csound from git or am i missing a flag here?
>>>>>
>>>>> g++ -I /home/khirai/csound/src/git/csound5/H/ -L
>>>>> /home/khirai/csound/src/git/csound5/ -lcsound test.cc
>>>>>
>>>>> test.cc:(.text+0x15): undefined reference to `csoundCreate'
>>>>> test.cc:(.text+0x31): undefined reference to `csoundInitialize'
>>>>> test.cc:(.text+0x46): undefined reference to `csoundCompile'
>>>>> test.cc:(.text+0x5c): undefined reference to `csoundPerformKsmps'
>>>>> test.cc:(.text+0x71): undefined reference to `csoundDestroy'
>>>>> collect2: ld returned 1 exit status
>>>>>
>>>>> test.cc:
>>>>> #include
>>>>> #include "csound.hpp"
>>>>> int main(int argc, char* argv[])
>>>>> {
>>>>> /*Create an instance of Csound*/
>>>>> CSOUND*csound=csoundCreate(0);
>>>>> /*Initialise the library*/
>>>>> csoundInitialize(&argc, &argv, 0);
>>>>> /*Compile Csound, i.e., run Csound with
>>>>> the parameters passed via the command line.
>>>>> Return false is successful*/
>>>>> int result=csoundCompile(csound,argc,argv);
>>>>> /*check to see that Csound compiled Ok, then
>>>>> start the performance loop. csoundPerformKsmps()
>>>>> returns false if successful*/
>>>>> if(!result)
>>>>> {
>>>>> while(csoundPerformKsmps(csound)==0);
>>>>> }
>>>>> /*Finally destroy Csound*/
>>>>> csoundDestroy(csound);
>>>>> return result;
>>>>> }
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>>> csound"
>>>>>
>>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>>>
>>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>>
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>>
>>
>
> ------------------------------------------------------------------------------
> Learn Windows Azure Live! Tuesday, Dec 13, 2011
> Microsoft is holding a special Learn Windows Azure training event for
> developers. It will provide a great way to learn Windows Azure and what it
> provides. You can attend the event by watching it streamed LIVE online.
> Learn more at http://p.sf.net/sfu/ms-windowsazure
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie
------------------------------------------------------------------------------
Learn Windows Azure Live! Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for
developers. It will provide a great way to learn Windows Azure and what it
provides. You can attend the event by watching it streamed LIVE online.
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |