[Stk] using namespace stk

Nelson Carlos de Sousa Campos nelson.campos at ee.ufcg.edu.br
Sat Oct 22 15:38:21 PDT 2011


Hi,
I'm using Visual Studio 2010 and have a problem with namespace. This is my
code, from tutorial:
// stk_project.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "Noise.h"

using namespace stk;


int _tmain(int argc, _TCHAR* argv[])
{
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;
}

When I try to compile my code, this error appear:

Error 1 error C2871: 'stk' : a namespace with this name does not exist
c:\users\nelson\documents\visual
studio 2010\projects\stk_project\stk_project\stk_project.cpp 7 1 stk_project

What's happening?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ccrma-mail.stanford.edu/pipermail/stk/attachments/20111022/09c5c1e5/attachment.html 


More information about the Stk mailing list