[Cs-dev] Build errors on tests
Date | 2013-02-12 04:44 |
From | Andres Cabrera |
Subject | [Cs-dev] Build errors on tests |
Attachments | None None |
HI, Any ideas? I've tried adding the c file where the functions are defined, but it complains...I'm getting these errors when trying to build the tests: CMakeFiles/csoundOrcCompileTest.dir/csound_orc_compile_test.c.o: In function `test_args_required': /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:30: undefined reference to `argsRequired' /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:31: undefined reference to `argsRequired' /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:32: undefined reference to `argsRequired' /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:33: undefined reference to `argsRequired' /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:34: undefined reference to `argsRequired' CMakeFiles/csoundOrcCompileTest.dir/csound_orc_compile_test.c.o:/home/andres/src/csound6/tests/c/csound_orc_compile_test.c:35: more undefined references to `argsRequired' follow CMakeFiles/csoundOrcCompileTest.dir/csound_orc_compile_test.c.o: In function `test_split_args': /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:43: undefined reference to `splitArgs' /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:48: undefined reference to `mfree' /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:50: undefined reference to `splitArgs' /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:56: undefined reference to `mfree' /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:58: undefined reference to `splitArgs' /home/andres/src/csound6/tests/c/csound_orc_compile_test.c:64: undefined reference to `mfree' Cheers, Andrés |
Date | 2013-02-12 11:07 |
From | Steven Yi |
Subject | Re: [Cs-dev] Build errors on tests |
Hi Andres, Unless something changed, it's probably something that works here on OSX but not on Linux. I used just extern's to get the functions to link, but I'm guess it's not enough there. Let me rewrite that so that there are function definitions in the headers. I'll test on Linux and write back here when complete. Thanks! steven On Tue, Feb 12, 2013 at 4:44 AM, Andres Cabrera |
Date | 2013-02-12 13:42 |
From | Steven Yi |
Subject | Re: [Cs-dev] Build errors on tests |
Hi Andres, The tests should be fixed up now. I had to mark some functions as PUBLIC so that they could be linked to on Linux. Also, I noticed the csdtests targets run differently on Linux than they do on Mac (the output is not being captured from Csound). I'm not sure what's going on there, but need to look at a merge issue at the moment. I'll try to come back to it later unless someone else gets to it first. Thanks! steven On Tue, Feb 12, 2013 at 11:07 AM, Steven Yi |
Date | 2013-02-13 05:53 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] Build errors on tests |
Attachments | None None |
Thanks Steven. Works now. Cheers, On Feb 12, 2013 5:43 AM, "Steven Yi" <stevenyi@gmail.com> wrote:
Hi Andres, |