I am getting this error when trying to complile the main program. the .cpp and the .h files compile fine, but not the main.

Error 1 error LNK2028: unresolved token (0A00004A) "public: void __thiscall MyEmail::Createfile(void)" (?Createfile@MyEmail@@$$FQAEXXZ) referenced in function "int __cdecl main(void)" (?main@@$$HYAHXZ) test.obj e-mail

main code

#include "stdafx.h"
#include "e-mail.h"

void main ()
{
    MyEmail e;

    e.Createfile();

}

Recommended Answers

All 2 Replies

What compiler? Have you included email.h in your project?

yes e-mail.h is in the project.
I am using vs2008

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.