[Csnd-dev] linking issue

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Csnd-dev] linking issue

jpff
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<char, std::char_traits<char>, std::allocator<char> >)'
../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrument(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) const'
../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setFilename(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setArrangement(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
../../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<char, std::char_traits<char>, std::allocator<char> >) const'
../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrumentBody(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) const'
../../libcsnd6.so.6.0: undefined reference to `CsoundFile::save(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) 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<char, std::char_traits<char>, std::allocator<char> >)'
../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getScore[abi:cxx11]() const'
.....etc.....
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd-dev] linking issue

Victor Lazzarini-2
-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 <[hidden email]> 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<char, std::char_traits<char>, std::allocator<char> >)'
> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrument(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) const'
> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setFilename(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setArrangement(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
> ../../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<char, std::char_traits<char>, std::allocator<char> >) const'
> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrumentBody(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) const'
> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::save(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) 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<char, std::char_traits<char>, std::allocator<char> >)'
> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getScore[abi:cxx11]() const'
> .....etc.....
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd-dev] linking issue

jpff
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 <[hidden email]> 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<char, std::char_traits<char>, std::allocator<char> >)'
>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrument(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) const'
>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setFilename(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setArrangement(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
>> ../../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<char, std::char_traits<char>, std::allocator<char> >) const'
>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrumentBody(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) const'
>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::save(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) 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<char, std::char_traits<char>, std::allocator<char> >)'
>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getScore[abi:cxx11]() const'
>> .....etc.....
>
Reply | Threaded
Open this post in threaded view
|

Re: [Csnd-dev] linking issue

Victor Lazzarini-2
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 <[hidden email]> 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 <[hidden email]> 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<char, std::char_traits<char>, std::allocator<char> >)'
>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrument(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) const'
>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setFilename(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setArrangement(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
>>> ../../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<char, std::char_traits<char>, std::allocator<char> >) const'
>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrumentBody(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) const'
>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::save(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) 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<char, std::char_traits<char>, std::allocator<char> >)'
>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getScore[abi:cxx11]() const'
>>> .....etc.....
>>

Reply | Threaded
Open this post in threaded view
|

Re: [Csnd-dev] linking issue

jpff
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 <[hidden email]> 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 <[hidden email]> 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<char, std::char_traits<char>, std::allocator<char> >)'
>>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrument(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) const'
>>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setFilename(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
>>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::setArrangement(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)'
>>>> ../../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<char, std::char_traits<char>, std::allocator<char> >) const'
>>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getInstrumentBody(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) const'
>>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::save(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) 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<char, std::char_traits<char>, std::allocator<char> >)'
>>>> ../../libcsnd6.so.6.0: undefined reference to `CsoundFile::getScore[abi:cxx11]() const'
>>>> .....etc.....
>>>
>
>