[Cs-dev] building API application errors...
Date | 2007-12-16 21:53 |
From | "Rory Walsh" |
Subject | [Cs-dev] building API application errors... |
I'm trying to build a simple Csound app using the latest source from CVS on a new linux installation but I'm getting the following errors, any ideas? Perhaps I need to change my Csound build settings? Rory. ubuntu@ubuntu:~/csound5$ gcc csdAPItest.cpp -o apitest -I./csound5/H -L./csound5 -lcsound ./csound5/libcsound.a(one_file.o): In function `csoundTmpFileName': /home/ubuntu/csound5/csound5/Top/one_file.c:88: warning: the use of `tmpnam' is dangerous, better use `mkstemp' /tmp/ccepJpTE.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' ./csound5/libcsound.a(main.o): In function `csoundCompile': /home/ubuntu/csound5/csound5/Top/main.c:112: undefined reference to `sf_command' ./csound5/libcsound.a(threads.o): In function `csoundLockMutexNoWait': /home/ubuntu/csound5/csound5/Top/threads.c:584: undefined reference to `pthread_mutex_trylock' ./csound5/libcsound.a(threads.o): In function `csoundCreateMutex': /home/ubuntu/csound5/csound5/Top/threads.c:545: undefined reference to `pthread_mutexattr_init' /home/ubuntu/csound5/csound5/Top/threads.c:546: undefined reference to `pthread_mutexattr_settype' /home/ubuntu/csound5/csound5/Top/threads.c:558: undefined reference to `pthread_mutexattr_destroy' ./csound5/libcsound.a(threads.o): In function `csoundWaitThreadLock': /home/ubuntu/csound5/csound5/Top/threads.c:313: undefined reference to `pthread_mutex_trylock' /home/ubuntu/csound5/csound5/Top/threads.c:330: undefined reference to `pthread_mutex_timedlock' ./csound5/libcsound.a(threads.o): In function `csoundJoinThread': /home/ubuntu/csound5/csound5/Top/threads.c:287: undefined reference to `pthread_join' ./csound5/libcsound.a(threads.o): In function `csoundCreateThread': /home/ubuntu/csound5/csound5/Top/threads.c:270: undefined reference to `pthread_create' ./csound5/libcsound.a(envvar.o): In function `csoundFileClose': /home/ubuntu/csound5/csound5/Engine/envvar.c:1301: undefined reference to `sf_close' ./csound5/libcsound.a(envvar.o): In function `csoundFileOpenWithType': /home/ubuntu/csound5/csound5/Engine/envvar.c:1136: undefined reference to `sf_open_fd' /home/ubuntu/csound5/csound5/Engine/envvar.c:1170: undefined reference to `sf_open_fd' /home/ubuntu/csound5/csound5/Engine/envvar.c:1173: undefined reference to `sf_command' /home/ubuntu/csound5/csound5/Engine/envvar.c:1159: undefined reference to `sf_open_fd' /home/ubuntu/csound5/csound5/Engine/envvar.c:1148: undefined reference to `sf_open' ./csound5/libcsound.a(fgens.o): In function `gen53_freq_response_to_ir': /home/ubuntu/csound5/csound5/Engine/fgens.c:2531: undefined reference to `logf' /home/ubuntu/csound5/csound5/Engine/fgens.c:2553: undefined reference to `cos' /home/ubuntu/csound5/csound5/Engine/fgens.c:2554: undefined reference to `sin' ./csound5/libcsound.a(fgens.o): In function `gen19': /home/ubuntu/csound5/csound5/Engine/fgens.c:947: undefined reference to `sin' ./csound5/libcsound.a(fgens.o): In function `gen10': /home/ubuntu/csound5/csound5/Engine/fgens.c:638: undefined reference to `sin' ./csound5/libcsound.a(fgens.o): In function `gen09': /home/ubuntu/csound5/csound5/Engine/fgens.c:618: undefined reference to `sin' ./csound5/libcsound.a(fgens.o): In function `gen51': /home/ubuntu/csound5/csound5/Engine/fgens.c:2405: undefined reference to `pow' ./csound5/libcsound.a(fgens.o): In function `gen25': /home/ubuntu/csound5/csound5/Engine/fgens.c:1209: undefined reference to `pow' ./csound5/libcsound.a(fgens.o): In function `gen05': /home/ubuntu/csound5/csound5/Engine/fgens.c:450: undefined reference to `pow' ./csound5/libcsound.a(fgens.o): In function `gen31': /home/ubuntu/csound5/csound5/Engine/fgens.c:1473: undefined reference to `cos' /home/ubuntu/csound5/csound5/Engine/fgens.c:1473: undefined reference to `sin' ./csound5/libcsound.a(fgens.o): In function `gen20': /home/ubuntu/csound5/csound5/Engine/fgens.c:1041: undefined reference to `cos' /home/ubuntu/csound5/csound5/Engine/fgens.c:1041: undefined reference to `cos' /home/ubuntu/csound5/csound5/Engine/fgens.c:1041: undefined reference to `cos' /home/ubuntu/csound5/csound5/Engine/fgens.c:1007: undefined reference to `pow' /home/ubuntu/csound5/csound5/Engine/fgens.c:1009: undefined reference to `pow' /home/ubuntu/csound5/csound5/Engine/fgens.c:1018: undefined reference to `sqrt' /home/ubuntu/csound5/csound5/Engine/fgens.c:1029: undefined reference to `sin' /home/ubuntu/csound5/csound5/Engine/fgens.c:1032: undefined reference to `sin' ./csound5/libcsound.a(fgens.o): In function `gen16': /home/ubuntu/csound5/csound5/Engine/fgens.c:845: undefined reference to `expf' /home/ubuntu/csound5/csound5/Engine/fgens.c:850: undefined reference to `expf' ./csound5/libcsound.a(fgens.o): In function `gen15': /home/ubuntu/csound5/csound5/Engine/fgens.c:803: undefined reference to `cosf' /home/ubuntu/csound5/csound5/Engine/fgens.c:804: undefined reference to `sinf' ./csound5/libcsound.a(fgens.o): In function `gen12': /home/ubuntu/csound5/csound5/Engine/fgens.c:727: undefined reference to `log' ./csound5/libcsound.a(fgens.o): In function `gen11': ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2007-12-16 21:56 |
From | "Rory Walsh" |
Subject | Re: [Cs-dev] building API application errors... |
I should have held that last post but since sending it I added a -lsndfile and -lpthread to my command line and now I only get the following errors: ubuntu@ubuntu:~/csound5$ gcc csdAPItest.cpp -o apitest -I./csound5/H -lcsound -lsndfile -pthread /usr/local/lib/libcsound.a(one_file.o): In function `csoundTmpFileName': /home/ubuntu/csound5/csound5/Top/one_file.c:88: warning: the use of `tmpnam' is dangerous, better use `mkstemp' /tmp/ccwJzlWN.o:(.eh_frame+0x11): undefined reference to `__gxx_personality_v0' /usr/local/lib/libcsound.a(csmodule.o): In function `csoundGetLibrarySymbol': /home/ubuntu/csound5/csound5/Top/csmodule.c:899: undefined reference to `dlsym' /usr/local/lib/libcsound.a(csmodule.o): In function `csoundCloseLibrary': /home/ubuntu/csound5/csound5/Top/csmodule.c:894: undefined reference to `dlclose' /usr/local/lib/libcsound.a(csmodule.o): In function `csoundOpenLibrary': /home/ubuntu/csound5/csound5/Top/csmodule.c:888: undefined reference to `dlopen' /usr/local/lib/libcsound.a(csmodule.o): In function `csoundLoadExternal': /home/ubuntu/csound5/csound5/Top/csmodule.c:229: undefined reference to `dlerror' collect2: ld returned 1 exit status > I'm trying to build a simple Csound app using the latest source from CVS > on a new linux installation but I'm getting the following errors, any > ideas? Perhaps I need to change my Csound build settings? > > Rory. > > ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2007-12-16 22:21 |
From | Victor.Lazzarini@nuim.ie |
Subject | Re: [Cs-dev] building API application errors... |
Attachments | None None None None |
Date | 2007-12-16 22:23 |
From | Victor.Lazzarini@nuim.ie |
Subject | Re: [Cs-dev] building API application errors... |
Attachments | None None None None |
Date | 2007-12-16 23:14 |
From | Rory Walsh |
Subject | Re: [Cs-dev] building API application errors... |
Thanks Victor, I'll try that out. Rory. Victor.Lazzarini@nuim.ie wrote: > > -ldl > ----- Original Message ----- > From: Rory Walsh |