MFC code integrated with normal C,C++ code.

MFC code integrated with normal C,C++ code.

Post by QmFuc2lkaG » Sat, 28 Feb 2004 21:41:10


Hello

Are there any real issues involved when I integrate my C code with MFC code. I am integrating my C,C++ file
in the MFC generated project workspace.
e.g.
I have my normal C,C++ files as
Implement.cpp, cli.c
In Implementer.cpp I hav

class myclas

..
static myclass *getOb()


Assuming Project name gui I have my MFC files as gui.cpp, guiDlg.cpp , stdafx.cpp.

When I use myclass::getOb() in my guiDlg.cpp I get an error
error LNK2001: unresolved external symbol public: static class myclass* __cdecl myclass::getObA(void)"...

Can anybody plz tell me why am I getting this error ?
 
 
 

MFC code integrated with normal C,C++ code.

Post by rquir » Tue, 02 Mar 2004 18:03:57


So where is your actual function? Including the class definition you
have supplied just declares the function. Where is the body of the
function and why do you not link it in?