[Stk] Issue linking STK

Matthew Laughlin Matthew Laughlin <bunglenutter@gmail.com>
Mon, 8 Nov 2004 19:17:27 +0000


Hi Gary,

Yeah I got all the preprocessor defs and stuff - although I was
thinking that including the src folder in the directories window would
mean I wouldn't have to add the .cpp files to the project. Sorted now
though, thanks Gary.

Matt


On Mon, 8 Nov 2004 10:06:32 -0500, Gary Scavone <gary@ccrma.stanford.edu> wrote:
> Hi Matthew,
> 
> VC++ messages can sometimes be a bit cryptic.  But did you specifically
> add the necessary files (Stk.h, Stk.cpp, Noise.h, Noise.cpp), as well
> as your test program, to the VC++ project?  It seems from the messages
> below that that is the problem.  Just including directories is not
> enough.  You'll also need the __LITTLE_ENDIAN__, __WINDOWS_MM__, and
> __WINDOWS_DS__ or __WINDOWS_ASIO__ preprocessor definitions and
> assorted libraries (as explained in the documentation).
> 
> --gary
> 
> 
> 
> On Sunday, November 7, 2004, at 08:17  AM, Matthew Laughlin wrote:
> 
> > Hi all,
> >
> > I'm demonstrating banded waveguides in a seminar next month and I am
> > trying to use STK for sound examples, possibly in real time. I
> > installed STK 4.2 yesterday and tried to run the first tutorial
> > (noise) but for some reason the linker can't find the implementations
> > of the various functions. I'm using VC++ 6 and I have added every
> > folder under the sun - include, src etc. but nothing seems to work. I
> > have also made all the necessary changes to preprocessor, code
> > generation etc. Here's what it says when I try to build the very first
> > noise tutorial:
> >
> > c:\stk-4.2.0\include\stk.h(34) : warning C4068: unknown pragma
> > Linking...
> > bwdemo.obj : error LNK2001: unresolved external symbol "public:
> > virtual __thiscall Noise::~Noise(void)" (??1Noise@@UAE@XZ)
> > bwdemo.obj : error LNK2001: unresolved external symbol "public:
> > virtual double __thiscall Noise::tick(void)" (?tick@Noise@@UAENXZ)
> > bwdemo.obj : error LNK2001: unresolved external symbol "public:
> > __thiscall Noise::Noise(void)" (??0Noise@@QAE@XZ)
> > bwdemo.exe : fatal error LNK1120: 3 unresolved externals
> > Error executing link.exe.
> >
> > bwdemo.exe - 4 error(s), 1 warning(s)
> >
> > This is probably something really stupid, but any help would be
> > appreciated!
> >
> > Yours,
> >
> > Matthew Laughlin
> >
> > _______________________________________________
> > Stk mailing list
> > Stk@ccrma.stanford.edu
> > http://ccrma-mail.stanford.edu/mailman/listinfo/stk
> 
>