Csound Csound-dev Csound-tekno Search About

[Csnd-dev] linking issue

Date2018-06-01 15:18
FromJohn
Subject[Csnd-dev] linking issue
What am I missing?  Building OK until building test.c
==John ffitch

../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setScore(std::__cxx11::basic_string, std::allocator >)'
../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrument(std::__cxx11::basic_string, std::allocator >) const'
../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setFilename(std::__cxx11::basic_string, std::allocator >)'
../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setArrangement(int, std::__cxx11::basic_string, std::allocator >)'
../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getMidiFilename[abi:cxx11]() const'
../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getCommand[abi:cxx11]() const'
../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getScoFilename[abi:cxx11]() const'
../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrumentNumber(std::__cxx11::basic_string, std::allocator >) const'
../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrumentBody(std::__cxx11::basic_string, std::allocator >) const'
../../libcsnd6.so.6.0: undefined reference to `CsoundFile::save(std::__cxx11::basic_string, std::allocator >) const'
../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrumentBody[abi:cxx11](int) const'
../../libcsnd6.so.6.0: undefined reference to `CsoundFile::addArrangement(std::__cxx11::basic_string, std::allocator >)'
../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getScore[abi:cxx11]() const'

Date2018-06-01 16:04
FromVictor Lazzarini
SubjectRe: [Csnd-dev] linking issue
-std=c++11  perhaps
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 1 Jun 2018, at 15:18, John  wrote:
> 
> What am I missing?  Building OK until building test.c
> ==John ffitch
> 
> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setScore(std::__cxx11::basic_string, std::allocator >)'
> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrument(std::__cxx11::basic_string, std::allocator >) const'
> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setFilename(std::__cxx11::basic_string, std::allocator >)'
> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setArrangement(int, std::__cxx11::basic_string, std::allocator >)'
> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getMidiFilename[abi:cxx11]() const'
> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getCommand[abi:cxx11]() const'
> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getScoFilename[abi:cxx11]() const'
> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrumentNumber(std::__cxx11::basic_string, std::allocator >) const'
> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrumentBody(std::__cxx11::basic_string, std::allocator >) const'
> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::save(std::__cxx11::basic_string, std::allocator >) const'
> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrumentBody[abi:cxx11](int) const'
> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::addArrangement(std::__cxx11::basic_string, std::allocator >)'
> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getScore[abi:cxx11]() const'

Date2018-06-01 16:31
Fromjpff
SubjectRe: [Csnd-dev] linking issue
But where is it missing?  This is just make in the devel tree.  Class 
seems to be defined in interfaces; nothing to do with me!

On Fri, 1 Jun 2018, Victor Lazzarini wrote:

> -std=c++11  perhaps
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 1 Jun 2018, at 15:18, John  wrote:
>>
>> What am I missing?  Building OK until building test.c
>> ==John ffitch
>>
>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setScore(std::__cxx11::basic_string, std::allocator >)'
>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrument(std::__cxx11::basic_string, std::allocator >) const'
>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setFilename(std::__cxx11::basic_string, std::allocator >)'
>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setArrangement(int, std::__cxx11::basic_string, std::allocator >)'
>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getMidiFilename[abi:cxx11]() const'
>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getCommand[abi:cxx11]() const'
>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getScoFilename[abi:cxx11]() const'
>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrumentNumber(std::__cxx11::basic_string, std::allocator >) const'
>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrumentBody(std::__cxx11::basic_string, std::allocator >) const'
>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::save(std::__cxx11::basic_string, std::allocator >) const'
>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrumentBody[abi:cxx11](int) const'
>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::addArrangement(std::__cxx11::basic_string, std::allocator >)'
>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getScore[abi:cxx11]() const'
>> .....etc.....

Date2018-06-01 16:47
FromVictor Lazzarini
SubjectRe: [Csnd-dev] linking issue
How does it come about? I can’t reproduce it here.

It is strange that the file is in C and it is trying to link to C++ code. Can you print the complete
output with the command etc?

========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 1 Jun 2018, at 16:31, jpff  wrote:
> 
> But where is it missing?  This is just make in the devel tree.  Class seems to be defined in interfaces; nothing to do with me!
> 
> On Fri, 1 Jun 2018, Victor Lazzarini wrote:
> 
>> -std=c++11  perhaps
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>> 
>>> On 1 Jun 2018, at 15:18, John  wrote:
>>> 
>>> What am I missing?  Building OK until building test.c
>>> ==John ffitch
>>> 
>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setScore(std::__cxx11::basic_string, std::allocator >)'
>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrument(std::__cxx11::basic_string, std::allocator >) const'
>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setFilename(std::__cxx11::basic_string, std::allocator >)'
>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setArrangement(int, std::__cxx11::basic_string, std::allocator >)'
>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getMidiFilename[abi:cxx11]() const'
>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getCommand[abi:cxx11]() const'
>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getScoFilename[abi:cxx11]() const'
>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrumentNumber(std::__cxx11::basic_string, std::allocator >) const'
>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrumentBody(std::__cxx11::basic_string, std::allocator >) const'
>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::save(std::__cxx11::basic_string, std::allocator >) const'
>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrumentBody[abi:cxx11](int) const'
>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::addArrangement(std::__cxx11::basic_string, std::allocator >)'
>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getScore[abi:cxx11]() const'
>>> .....etc....

Date2018-06-01 16:57
Fromjpff
SubjectRe: [Csnd-dev] linking issue
No idea why ths hppened but make clean and the like seems to have fixed 
it.

Just forget I woried....


On Fri, 1 Jun 2018, Victor Lazzarini wrote:

> How does it come about? I can?t reproduce it here.
>
> It is strange that the file is in C and it is trying to link to C++ code. Can you print the complete
> output with the command etc?
>
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 1 Jun 2018, at 16:31, jpff  wrote:
>>
>> But where is it missing?  This is just make in the devel tree.  Class seems to be defined in interfaces; nothing to do with me!
>>
>> On Fri, 1 Jun 2018, Victor Lazzarini wrote:
>>
>>> -std=c++11  perhaps
>>> ========================
>>> Prof. Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy,
>>> Maynooth University,
>>> Maynooth, Co Kildare, Ireland
>>> Tel: 00 353 7086936
>>> Fax: 00 353 1 7086952
>>>
>>>> On 1 Jun 2018, at 15:18, John  wrote:
>>>>
>>>> What am I missing?  Building OK until building test.c
>>>> ==John ffitch
>>>>
>>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setScore(std::__cxx11::basic_string, std::allocator >)'
>>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrument(std::__cxx11::basic_string, std::allocator >) const'
>>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setFilename(std::__cxx11::basic_string, std::allocator >)'
>>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setArrangement(int, std::__cxx11::basic_string, std::allocator >)'
>>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getMidiFilename[abi:cxx11]() const'
>>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getCommand[abi:cxx11]() const'
>>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getScoFilename[abi:cxx11]() const'
>>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrumentNumber(std::__cxx11::basic_string, std::allocator >) const'
>>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrumentBody(std::__cxx11::basic_string, std::allocator >) const'
>>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::save(std::__cxx11::basic_string, std::allocator >) const'
>>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrumentBody[abi:cxx11](int) const'
>>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::addArrangement(std::__cxx11::basic_string, std::allocator >)'
>>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getScore[abi:cxx11]() const'
>>>> .....etc.....
>>>
>