[Stk] compilation error

Gary Scavone gary at ccrma.Stanford.EDU
Thu Sep 17 08:45:30 PDT 2009


Hi Atunu,

I think you need the pthread library for the MUTEX stuff.  In your  
second attempt, there appears to either be a badly formatted command  
line and/or the compiler can't find the STK library.  Did you run  
"make" in the src directory to compile the STK library?

--gary

On 16-Sep-09, at 12:05 PM, Atunu Name wrote:

> Hello,
>
>  I am trying to compile an example, test.cpp  in a separate file. I  
> have some errors:
>  g++ -o test  -I../../audio_tool/stk-4.4.1/include  test.cpp   - 
> L ../../audio_tool/stk-4.4.1/src/ -lstk
> ../../audio_tool/stk-4.4.1/include/Mutex.h:67: error: ‘MUTEX’ does  
> not name a type
> ../../audio_tool/stk-4.4.1/include/Mutex.h:68: error: ‘CONDITION’  
> does not name a type
>
> I also tried the following:
> g++ -O3 -Wall -o test  -I ../../audio_tool/stk-4.4.1/include  - 
> DHAVE_GETTIMEOFDAY -D__MACOSX_CORE__-D__LITTLE_ENDIAN__  test.cpp   - 
> L ../../audio_tool/stk-4.4.1/src/ -lstk -lpthread -framework CoreAudio
> <command line>:1:16: warning: missing whitespace after the macro name
> ld: library not found for -lstk
> collect2: ld returned 1 exit status
> My stk-4.4.1 is on the desktop, and I am trying to use the test.cpp  
> to make some changes according to my need  in another folder  
> directory on my desktop.
> I played around this but still errors. Can anybody help me with an  
> example, please.
> Thank you.
>
>
>
>
> Yahoo! Canada Toolbar : Search from anywhere on the web and bookmark  
> your favourite sites. Download it now!
>
> _______________________________________________
> Stk mailing list
> Stk at ccrma.stanford.edu
> http://ccrma-mail.stanford.edu/mailman/listinfo/stk




More information about the Stk mailing list