[Stk] STK Linker error suggestion
Michael Feldman
michaelfeldman at ymail.com
Mon Oct 19 16:05:05 PDT 2015
Hey Now.
I tried Visual Studio route as well. Could not get it to work. Help appreciated.
Thank you.
> On Oct 19, 2015, at 17:58, Gary Scavone <gary at ccrma.Stanford.EDU> wrote:
>
> Hi Nitesh,
>
> There is no .lib included with the STK distribution. Rather, you need to compile and link together all the necessary classes for your program.
>
> 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.
>
> Regards,
>
> —gary
>
>> On Oct 19, 2015, at 1:03 PM, Nitesh Kumar Chaudhary <nitesh.lnmiit at gmail.com> wrote:
>>
>>
>> ---------- 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/
>> _______________________________________________
>> Stk mailing list
>> Stk at ccrma.stanford.edu
>> https://cm-mail.stanford.edu/mailman/listinfo/stk
>
>
> _______________________________________________
> Stk mailing list
> Stk at ccrma.stanford.edu
> https://cm-mail.stanford.edu/mailman/listinfo/stk
More information about the Stk
mailing list