linking error

Env: MFC Dialog based Application
Files: MainDlg.cpp, MainDlg.h, Dialog1.cpp, Dialog1.h, Dialog2.cpp, Dialog2.h, etc.

I have following linking error when compile. Compilation is OK but linking is having problem. What would be the reason and how to fix it? Please see attached MainDlg.txt (MainDlg.cpp, MainDlg.h) and Dialog1.txt (Dialog1.cpp, Dialog1.h)

Dialog2.cpp also has the similar structure of Dialog1, but use Convert2DWord.

Please advise.

--------------
Linking...
LINK : warning LNK4098: defaultlib "mfc42.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib "mfcs42.lib" conflicts with use of other libs; use /NODEFAULTLIB:library
Dialog1.obj : error LNK2001: unresolved external symbol "public: void __thiscall CMainDlg::Convert2String(int *,char *)" (?Convert2String@CMainDlg@@QAEXPAHPAD@Z)
Dialog2.obj : error LNK2001: unresolved external symbol "public: void __thiscall CMainDlg::Convert2DWord(char *,int *)" (?Convert2Dword@CMainDlg@@QAEXPADPAH@Z)
nafxcw.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argv
nafxcw.lib(appcore.obj) : error LNK2001: unresolved external symbol ___argc
nafxcw.lib(filelist.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcw.lib(apphelp.obj) : error LNK2001: unresolved external symbol __mbctype
nafxcw.lib(timecore.obj) : error LNK2001: unresolved external symbol __mbctype
Release/Main.exe : fatal error LNK1120: 18 unresolved externals
Error executing link.exe.
[1575 byte] By [Dimension] at [2007-11-18 18:29:07]
# 1 Re: linking error
the Dialog1.cpp and Dialog1.h.
Dimension at 2007-11-11 1:21:07 >
# 2 Re: linking error
For the project setting, one fo the entries is:

Win32 Release:
/nodefaultlib:"LIBC"

Win32 Debug:
/nodefaultlib:"MSVCRT"
Dimension at 2007-11-11 1:22:01 >
# 3 Re: linking error
did u try setting the project to debug..

Build->set Active Configuration

choose win32 debug
Max Payne at 2007-11-11 1:23:00 >
# 4 Re: linking error
Yes, but still do not know the rootcause.
Dimension at 2007-11-11 1:24:05 >
# 5 Re: linking error
void Convert2String (NEW_STRUCT *myNum, char *myString)
{
....
}

void Convert2Dword ( char *myString, INT32 * myDword)
{
....
}

this in mainDlg.cpp should be like this:

void CMainDlg::Convert2String (NEW_STRUCT *myNum, char *myString)
{
....
}

void CMainDlg::Convert2Dword ( char *myString, INT32 * myDword)
{
....
}
Max Payne at 2007-11-11 1:25:01 >
# 6 Re: linking error
If I have the function(s) in the MainDlg.cpp

static int something(...)

I can't change to static int CMainDlg::something(), it said:
error C2724: 'something' : 'static' should not be used on member functions defined at file scope.

How to fix that if I still want to use static int ?
Dimension at 2007-11-11 1:26:12 >