Unrsolved token ERROR VC++

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jazi
    New Member
    • Jun 2007
    • 21

    Unrsolved token ERROR VC++

    Hi All,

    Can any one tell me how to resolve the following issue;
    I have the following function

    hello.cpp
    #include "stdafx.h"
    #include <stdlib.h>
    #include <vcclr.h>
    #include <string>
    namespace Wrapper
    {

    String^ Wrapper_Class:: sayHello(void){
    String^ str="Hello";
    return str;
    }
    }

    hello.h
    #pragma once


    #include "string"
    #include <stdio.h>
    #include <stdlib.h>
    #include "stdafx.h"

    using namespace System::Runtime ::InteropServic es;
    using namespace System;
    using namespace std;

    String^ Wrapper_Class:: sayHello(void)


    Here is the ERROR message I keep getting
    error LNK2020: unresolved token (06000012) Wrapper.SinFold _Wrapper_Class: :sayHello

    Can any one tell me what am I doing wrong? or how to resolve it?

    Thank you...
    JZ
  • Jazi
    New Member
    • Jun 2007
    • 21

    #2
    Sorry I posted the old error message. Here is the message
    error LNK2020: unresolved token (06000012) Wrapper.Wrapper _Class::sayHell o

    Comment

    • weaknessforcats
      Recognized Expert Expert
      • Mar 2007
      • 9214

      #3
      This looks like C#.

      I am moving this to the .NET forum.

      Comment

      Working...