Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Help needed very urgently....

2 replies · 1,208 views · Started 20 December 2005

Hi ,

Greetings From Prakash.A I am working in Sybmian C++ env.. Now I have the following problem.

I have creted a userdefined class "CSocketsEngine" in a seperated file "SocketsEngine.h, .cpp" inside this class I created the function "NewL()" and "NewLC()" both are static fucntions and " ServerName(), SetPort()" these are ordinary functions.

I created the object for this class(CSocketsEngine) in "Socketappui.h" and try to call the above functions in "Socketappui.cpp".

It is compiled properly, but when I tried to build the above code the following error that " LNK 2001, unresolved external public static __this call NewL().." occurs. The same error occurs for "NewLC()" ,"ServerName()" ," SetPort()" these functions also.

I hope some libray files are missing in the .mmp files.. But I dont know the name of that libray file..so can you please tell me the exact library files to be inculded in the project or whether is there any other solutions is avaiable? If so please help me It is needed very urgently please. So please help me..

With Regards,
Prakash.A

Dude you added the SocketsEngine.cpp in your mmp right?
And please do not post too many questions, ppl will think you re spamming and
nobody wil care to look at your postings.
--eminemence.

Hi Thanx to eminemence ,

I have included all the necessary files in .mmp files . Then again the same problem occurs. And included all the library files for the included heder files. But still the errors occur. Here with I have attached the necessary 2 files. Please do the needful.

With Regards,
Prakash.A

Attachments: SocketsEngine cpp.doc (9 KB) SocketsEngine-h.doc (5 KB)