J
jazihak
Can any one tell me how to resolve this 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::InteropServices;
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.Wrapper_Class::sayHello
fatal error LNK1120: 1 unresolved externals
Can any one tell me what am I doing wrong? or how to resolve it? Is
there any headers that I need to include?
Thank you...
JZ
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::InteropServices;
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.Wrapper_Class::sayHello
fatal error LNK1120: 1 unresolved externals
Can any one tell me what am I doing wrong? or how to resolve it? Is
there any headers that I need to include?
Thank you...
JZ