[Stk] Fwd: STK Linker error suggestion

Nitesh Kumar Chaudhary nitesh.lnmiit at gmail.com
Mon Oct 19 10:03:50 PDT 2015


---------- Forwarded message ----------
From: Nitesh Kumar Chaudhary <nitesh.lnmiit at gmail.com>
Date: Mon, Oct 19, 2015 at 6:00 PM
Subject: Re: [Stk] STK Linker error suggestion
To: Gary Scavone <gary at ccrma.stanford.edu>


Sir, i have included  the source and header file from src/ directory in (VC
++ Directories --> Source Directories and Include Directories) and C/C++
Additional include Directories, there is no any error in the code, it is
linker error, i am trying to use simple code of tutorial from STK website.

Also i am not finding any .lib file after extracting the .zip file for
windows (tried in visual studio 2013 and 2015). I am trying to resolve the
problem from last 3 days but i am not able to do so.

*program that i am using *

#include "Noise.h"
using namespace stk;
int main()
{
StkFloat output;
Noise noise;
for (unsigned int i = 0; i<20; i++) {
output = noise.tick();
std::cout << "i = " << i << " : output = " << output << std::endl;
}
return 0;
}


*Error : *

1>------ Build started: Project: STK19OCT, Configuration: Debug Win32 ------
1>  Main.cpp
1>Main.obj : error LNK2019: unresolved external symbol "protected: virtual
__thiscall stk::Stk::~Stk(void)" (??1Stk at stk@@MAE at XZ) referenced in
function "public: virtual __thiscall stk::Generator::~Generator(void)"
(??1Generator at stk@@UAE at XZ)
1>Main.obj : error LNK2019: unresolved external symbol "public: __thiscall
stk::StkFrames::~StkFrames(void)" (??1StkFrames at stk@@QAE at XZ) referenced in
function "public: virtual __thiscall stk::Generator::~Generator(void)"
(??1Generator at stk@@UAE at XZ)
1>Main.obj : error LNK2019: unresolved external symbol "public: __thiscall
stk::Noise::Noise(unsigned int)" (??0Noise at stk@@QAE at I@Z) referenced in
function _main
1>C:\Users\chaudhary jee\Desktop\STK19OCT\Debug\STK19OCT.exe : fatal error
LNK1120: 3 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========



Thanks



On 19-Oct-2015 5:28 pm, "Gary Scavone" <gary at ccrma.stanford.edu> wrote:

> It looks like you aren’t including the source and header files for the STK
> classes in the src/ directory.
>
> —gary
>
> > On Oct 19, 2015, at 11:44 AM, Nitesh Kumar Chaudhary <
> nitesh.lnmiit at gmail.com> wrote:
> >
> > Hello Sir,
> >
> > I have tried to use STK but every time i am getting the Linker error, i
> have tried many times to use it i ahve used the installation instruction
> for windows but i am not able to do so, could you please help me in doing
> it ?
> >
> > I am using Visual studio 2013
> >
> > error that i am getting
> >
> > prog.obj : error LNK2019: unresolved external symbol "protected: virtual
> __thiscall stk::Stk::~Stk(void)" (??1Stk at stk@@MAE at XZ) referenced in
> function "public: virtual __thiscall stk::Generator::~Generator(void)"
> (??1Generator at stk@@UAE at XZ)
> > 1>prog.obj : error LNK2019: unresolved external symbol "public:
> __thiscall stk::StkFrames::~StkFrames(void)" (??1StkFrames at stk@@QAE at XZ)
> referenced in function "public: virtual __thiscall
> stk::Generator::~Generator(void)" (??1Generator at stk@@UAE at XZ)
> > 1>prog.obj : error LNK2019: unresolved external symbol "public:
> __thiscall stk::Noise::Noise(unsigned int)" (??0Noise at stk@@QAE at I@Z)
> referenced in function _main
> > 1>.\19th OCT STK1.exe : fatal error LNK1120: 3 unresolved externals
> > ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
> >
> > Thanks
> >
> > --
> > Nitesh Kumar Chaudhary
> > 3rd year Undergraduate (Electronics & Communication Engineering)
> > LNMIIT , Jaipur
> > Mobile :+91-9772979813
> > in.linkedin.com/pub/nitesh-kumar-chaudhary/4a/a79/179/
> > _______________________________________________
> > Stk mailing list
> > Stk at ccrma.stanford.edu
> > https://cm-mail.stanford.edu/mailman/listinfo/stk
>
>


-- 
Nitesh Kumar Chaudhary
3rd year Undergraduate (*Electronics & Communication Engineering*)
LNMIIT , Jaipur
Mobile :+91-9772979813
in.linkedin.com/pub/nitesh-kumar-chaudhary/4a/a79/179/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/pipermail/stk/attachments/20151019/a27fb0cd/attachment.html>


More information about the Stk mailing list