[Stk] Cygwin & stk

Helena Troy helenatroy1@hotmail.com
Tue, 17 Jan 2006 16:36:23 +0000


Hello,

I'm a programming novice.  I have been having problems with my environment
and I am kind of weak with makefiles. Right now I just want to compile 
play.cpp.
I've used GE Wang's simple makefile for cygwin to get started and I've just 
hit a
series of errors that I can't figure out how to get rid of.

I have three questions -
1) why doesn't the system find the include files specifed in "INCLUDES"
(I've looked carefully for typos ...)
2) How can I add more than one include path to "INCLUDES" (eg - for cygwin)
3) If I remove the newline after "play.cpp" on line 10 I get the error
make: *** No rule to make target `gcc', needed by `play.o'.  Stop.
but I dont need a newline after "play.o" on line 8.  Why?

Thanks ever so much

*  *  *  *  *  *  *   Cygwin version info      *  *  *  *   *  *  *
setup-version: 2.249.2
*  *  *  *  *  *  *   my make file                *  *  *  *   *  *  *
CC=gcc
INCLUDES = /cygdrive/c/a_Xfer/stk/stk-4.2.1/include/
FLAGS=-D__WINDOWS_MM__ $(INCLUDES) -O3 -c
LIBS=-lwinmm -lstdc++ -lm
play: play.o gcc -o play.exe play.o -lwminmm -lstdc++ -lm
play.o: play.cpp
    gcc -D__WINDOWS_MM__ $(INCLUDES) -O3 -c play.cpp
clean:      rm -f play.exe *~ *.o

*  *  *  *  *  *  *   some compiler errors     *  *  *  *   *  *  *
Helena@SUPP-LAPTOP1 /cygdrive/c/a_Xfer/stk/stk-4.2.1/projects/examples
$ make
gcc -D__WINDOWS_MM__ /cygdrive/c/a_Xfer/stk/stk-4.2.1/include -O3 -c 
play.cpp
play.cpp:16:22: FileWvIn.h: No such file or directory
play.cpp:17:21: RtAudio.h: No such file or directory
play.cpp:20:20: iostream: No such file or directory
play.cpp:26: 'StkFrames' is used as a type, but is not defined as a type.
play.cpp: In function `void usage()':
play.cpp:32: `cout' undeclared in namespace `std'
play.cpp:33: `cout' undeclared in namespace `std'
play.cpp:34: `cout' undeclared in namespace `std'
play.cpp:35: `cout' undeclared in namespace `std'
play.cpp:36: `cout' undeclared in namespace `std'