[Csnd-dev] Build error
Date | 2017-10-31 09:38 |
From | Francois PINOT |
Subject | [Csnd-dev] Build error |
Hello John, I removed the comment on line 31 of cs_par_dispatch.c because I got this error when building Csound:../libcsound64.so.6.0 : référence indéfinie vers « csp_locks_unlock » ../libcsound64.so.6.0 : référence indéfinie vers « csp_locks_lock » collect2: error: ld returned 1 exit status frontends/CMakeFiles/csound-bin.dir/build.make:121 : la recette pour la cible « csound » a échouée make[2]: *** [csound] Erreur 1 |
Date | 2017-10-31 13:25 |
From | jpff |
Subject | Re: [Csnd-dev] Build error |
I do not understand. Those two functions are only used in Engine/cs_par_dispatch.c so do not need to include H/cs_par_dispatch.h Or has a new file got sneaked in outside all_string_files? birtwistle:~/csound6> Search csp_locks_lock ./Engine/cs_par_dispatch.c:inline void csp_locks_lock(CSOUND * csound, int global_index) ./Engine/cs_par_dispatch.c: csp_locks_lock(csound, (int)*p->gvar_ix); ./H/cs_par_dispatch.h:void csp_locks_lock(CSOUND * csound, int global_index); birtwistle:~/csound6> On Tue, 31 Oct 2017, Francois PINOT wrote: > Hello John, > > I removed the comment on line 31 of cs_par_dispatch.c because I got this error > when building Csound: > > ../libcsound64.so.6.0 : référence indéfinie vers « csp_locks_unlock » > ../libcsound64.so.6.0 : référence indéfinie vers « csp_locks_lock » > collect2: error: ld returned 1 exit status > frontends/CMakeFiles/csound-bin.dir/build.make:121 : la recette pour la cible > « csound » a échouée > make[2]: *** [csound] Erreur 1 > > François > > |
Date | 2017-10-31 15:41 |
From | Francois PINOT |
Subject | Re: [Csnd-dev] Build error |
I think it's due to the rules for using inline functions in C99 (https://en.wikipedia.org/wiki/Inline_function) François2017-10-31 14:25 GMT+01:00 jpff <jpff@codemist.co.uk>: I do not understand. Those two functions are only used in Engine/cs_par_dispatch.c so do not need to include H/cs_par_dispatch.h |