<div dir="ltr">Hello Gary,<div><br></div><div>your help is highly appreciated, but the problem still remains, i have tried use the details from examples directories for linking purpose but not able to resolve it "<span style="font-size:12.8px"> </span><span style="font-size:12.8px">error LNK2019: unresolved external symbol "protected....</span>".</div><div><br></div><div><br></div><div>Thanks</div><div>Nitesh</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 20, 2015 at 12:05 AM, Michael Feldman <span dir="ltr"><<a href="mailto:michaelfeldman@ymail.com" target="_blank">michaelfeldman@ymail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey Now.<br>
I tried Visual Studio route as well. Could not get it to work. Help appreciated.<br>
Thank you.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
<br>
> On Oct 19, 2015, at 17:58, Gary Scavone <<a href="mailto:gary@ccrma.Stanford.EDU">gary@ccrma.Stanford.EDU</a>> wrote:<br>
><br>
> Hi Nitesh,<br>
><br>
> There is no .lib included with the STK distribution. Rather, you need to compile and link together all the necessary classes for your program.<br>
><br>
> If it helps, there is a somewhat old VC++ project file included in the examples directories that might help you figure it out. I don’t use Windows very much and when I do, I use the MinGW environment for compiling. Thus, I can’t help with the details of including and linking the source files.<br>
><br>
> Regards,<br>
><br>
> —gary<br>
><br>
>> On Oct 19, 2015, at 1:03 PM, Nitesh Kumar Chaudhary <<a href="mailto:nitesh.lnmiit@gmail.com">nitesh.lnmiit@gmail.com</a>> wrote:<br>
>><br>
>><br>
>> ---------- Forwarded message ----------<br>
>> From: Nitesh Kumar Chaudhary <<a href="mailto:nitesh.lnmiit@gmail.com">nitesh.lnmiit@gmail.com</a>><br>
>> Date: Mon, Oct 19, 2015 at 6:00 PM<br>
>> Subject: Re: [Stk] STK Linker error suggestion<br>
>> To: Gary Scavone <<a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a>><br>
>><br>
>><br>
>> 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.<br>
>><br>
>> 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.<br>
>><br>
>> program that i am using<br>
>><br>
>> #include "Noise.h"<br>
>> using namespace stk;<br>
>> int main()<br>
>> {<br>
>> StkFloat output;<br>
>> Noise noise;<br>
>> for (unsigned int i = 0; i<20; i++) {<br>
>> output = noise.tick();<br>
>> std::cout << "i = " << i << " : output = " << output << std::endl;<br>
>> }<br>
>> return 0;<br>
>> }<br>
>><br>
>><br>
>> Error :<br>
>><br>
>> 1>------ Build started: Project: STK19OCT, Configuration: Debug Win32 ------<br>
>> 1> Main.cpp<br>
>> 1>Main.obj : error LNK2019: unresolved external symbol "protected: virtual __thiscall stk::Stk::~Stk(void)" (??1Stk@stk@@MAE@XZ) referenced in function "public: virtual __thiscall stk::Generator::~Generator(void)" (??1Generator@stk@@UAE@XZ)<br>
>> 1>Main.obj : error LNK2019: unresolved external symbol "public: __thiscall stk::StkFrames::~StkFrames(void)" (??1StkFrames@stk@@QAE@XZ) referenced in function "public: virtual __thiscall stk::Generator::~Generator(void)" (??1Generator@stk@@UAE@XZ)<br>
>> 1>Main.obj : error LNK2019: unresolved external symbol "public: __thiscall stk::Noise::Noise(unsigned int)" (??0Noise@stk@@QAE@I@Z) referenced in function _main<br>
>> 1>C:\Users\chaudhary jee\Desktop\STK19OCT\Debug\STK19OCT.exe : fatal error LNK1120: 3 unresolved externals<br>
>> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========<br>
>><br>
>><br>
>><br>
>> Thanks<br>
>><br>
>><br>
>><br>
>> On 19-Oct-2015 5:28 pm, "Gary Scavone" <<a href="mailto:gary@ccrma.stanford.edu">gary@ccrma.stanford.edu</a>> wrote:<br>
>> It looks like you aren’t including the source and header files for the STK classes in the src/ directory.<br>
>><br>
>> —gary<br>
>><br>
>>> On Oct 19, 2015, at 11:44 AM, Nitesh Kumar Chaudhary <<a href="mailto:nitesh.lnmiit@gmail.com">nitesh.lnmiit@gmail.com</a>> wrote:<br>
>>><br>
>>> Hello Sir,<br>
>>><br>
>>> 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 ?<br>
>>><br>
>>> I am using Visual studio 2013<br>
>>><br>
>>> error that i am getting<br>
>>><br>
>>> prog.obj : error LNK2019: unresolved external symbol "protected: virtual __thiscall stk::Stk::~Stk(void)" (??1Stk@stk@@MAE@XZ) referenced in function "public: virtual __thiscall stk::Generator::~Generator(void)" (??1Generator@stk@@UAE@XZ)<br>
>>> 1>prog.obj : error LNK2019: unresolved external symbol "public: __thiscall stk::StkFrames::~StkFrames(void)" (??1StkFrames@stk@@QAE@XZ) referenced in function "public: virtual __thiscall stk::Generator::~Generator(void)" (??1Generator@stk@@UAE@XZ)<br>
>>> 1>prog.obj : error LNK2019: unresolved external symbol "public: __thiscall stk::Noise::Noise(unsigned int)" (??0Noise@stk@@QAE@I@Z) referenced in function _main<br>
>>> 1>.\19th OCT STK1.exe : fatal error LNK1120: 3 unresolved externals<br>
>>> ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========<br>
>>><br>
>>> Thanks<br>
>>><br>
>>> --<br>
>>> Nitesh Kumar Chaudhary<br>
>>> 3rd year Undergraduate (Electronics & Communication Engineering)<br>
>>> LNMIIT , Jaipur<br>
>>> Mobile :<a href="tel:%2B91-9772979813" value="+919772979813">+91-9772979813</a><br>
>>> <a href="http://in.linkedin.com/pub/nitesh-kumar-chaudhary/4a/a79/179/" rel="noreferrer" target="_blank">in.linkedin.com/pub/nitesh-kumar-chaudhary/4a/a79/179/</a><br>
>>> _______________________________________________<br>
>>> Stk mailing list<br>
>>> <a href="mailto:Stk@ccrma.stanford.edu">Stk@ccrma.stanford.edu</a><br>
>>> <a href="https://cm-mail.stanford.edu/mailman/listinfo/stk" rel="noreferrer" target="_blank">https://cm-mail.stanford.edu/mailman/listinfo/stk</a><br>
>><br>
>><br>
>><br>
>><br>
>> --<br>
>> Nitesh Kumar Chaudhary<br>
>> 3rd year Undergraduate (Electronics & Communication Engineering)<br>
>> LNMIIT , Jaipur<br>
>> Mobile :<a href="tel:%2B91-9772979813" value="+919772979813">+91-9772979813</a><br>
>> <a href="http://in.linkedin.com/pub/nitesh-kumar-chaudhary/4a/a79/179/" rel="noreferrer" target="_blank">in.linkedin.com/pub/nitesh-kumar-chaudhary/4a/a79/179/</a><br>
>> _______________________________________________<br>
>> Stk mailing list<br>
>> <a href="mailto:Stk@ccrma.stanford.edu">Stk@ccrma.stanford.edu</a><br>
>> <a href="https://cm-mail.stanford.edu/mailman/listinfo/stk" rel="noreferrer" target="_blank">https://cm-mail.stanford.edu/mailman/listinfo/stk</a><br>
><br>
><br>
> _______________________________________________<br>
> Stk mailing list<br>
> <a href="mailto:Stk@ccrma.stanford.edu">Stk@ccrma.stanford.edu</a><br>
> <a href="https://cm-mail.stanford.edu/mailman/listinfo/stk" rel="noreferrer" target="_blank">https://cm-mail.stanford.edu/mailman/listinfo/stk</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><span style="font-family:georgia,serif">Nitesh Kumar Chaudhary</span><div><span style="color:rgb(102,102,102)"><span style="font-family:georgia,serif">3rd year Undergraduate (<i>Electronics & Communication Engineering</i>)</span></span></div><div><span style="color:rgb(102,102,102)"><span style="font-family:georgia,serif">LNMIIT , Jaipur<br></span></span></div><div><span style="color:rgb(102,102,102)"><span style="font-family:georgia,serif">Mobile :+91-9772979813<br></span></span><a href="http://in.linkedin.com/pub/nitesh-kumar-chaudhary/4a/a79/179/" title="View public profile" name="UNIQUE_ID_SafeHtmlFilter_webProfileURL" target="_blank">in.linkedin.com/pub/nitesh-kumar-chaudhary/4a/a79/179/</a><br></div></div></div>
</div>