James Kirkham
| No this is not right the compiler gives this error:
C:\dm\bin>dmc -Ic:\dm\atl\include -Ic:\dm\mfc\include code.cpp
link code,,,user32+kernel32/noi;
OPTLINK (R) for Win32 Release 7.50B1
Copyright (C) Digital Mars 1989 - 2001 All Rights Reserved
nafxcw.lib
Warning 2: File Not Found nafxcw.lib
winspool.lib
Warning 2: File Not Found winspool.lib
shell32.lib
Warning 2: File Not Found shell32.lib
code.obj(code)
Error 42: Symbol Undefined ?DoMessageBox@CWinApp@@UAEHPBDII@Z (int syscall
CWin
App::DoMessageBox(char const *,unsigned ,unsigned ))
code.obj(code)
Error 42: Symbol Undefined ?DoWaitCursor@CWinApp@@UAEXH@Z (void syscall
CWinApp
::DoWaitCursor(int ))
code.obj(code)
Error 42: Symbol Undefined ?OnDDECommand@CWinApp@@UAEHPAD@Z (int syscall
CWinAp
p::OnDDECommand(char *))
code.obj(code)
Error 42: Symbol Undefined ?WinHelpA@CWinApp@@UAEXKI@Z (void syscall
CWinApp::W
inHelpA(unsigned long ,unsigned ))
code.obj(code)
Error 42: Symbol Undefined ??0CFrameWnd@@QAE@XZ (syscall
CFrameWnd::CFrameWnd(v
oid ))
code.obj(code)
Error 42: Symbol Undefined ?rectDefault@CFrameWnd@@2VCRect@@B (const CRect
CFra
meWnd::rectDefault)
code.obj(code)
Error 42: Symbol Undefined
?Create@CFrameWnd@@QAEHPBD0KABUtagRECT@@PAVCWnd@@0KP
AUCCreateContext@@@Z (int syscall CFrameWnd::Create(char const *,char const
*,un
signed long ,tagRECT const &,CWnd *,char const *,unsigned long
,CCreateContext *
))
code.obj(code)
Error 42: Symbol Undefined ?ShowWindow@CWnd@@QAEHH@Z (int syscall
CWnd::ShowWin
dow(int ))
code.obj(code)
Error 42: Symbol Undefined
?DelayUpdateFrameMenu@CFrameWnd@@UAEXPAUHMENU__@@@Z
(void syscall CFrameWnd::DelayUpdateFrameMenu(HMENU__ *))
code.obj(code)
Error 42: Symbol Undefined ?ExitHelpMode@CFrameWnd@@UAEXXZ (void syscall
CFrame
Wnd::ExitHelpMode(void ))
code.obj(code)
Error 42: Symbol Undefined ??1CFrameWnd@@UAE@XZ (syscall
CFrameWnd::~CFrameWnd(
void ))
code.obj(code)
Error 42: Symbol Undefined ?ActivateFrame@CFrameWnd@@UAEXH@Z (void syscall
CFra
meWnd::ActivateFrame(int ))
code.obj(code)
Error 42: Symbol Undefined
?OnSetPreviewMode@CFrameWnd@@UAEXHPAUCPrintPreviewSt
ate@@@Z (void syscall CFrameWnd::OnSetPreviewMode(int ,CPrintPreviewState
*))
code.obj(code)
Error 42: Symbol Undefined ?GetMessageBar@CFrameWnd@@UAEPAVCWnd@@XZ (CWnd
*sysc
all CFrameWnd::GetMessageBar(void ))
code.obj(code)
Error 42: Symbol Undefined
?NegotiateBorderSpace@CFrameWnd@@UAEHIPAUtagRECT@@@Z
(int syscall CFrameWnd::NegotiateBorderSpace(unsigned ,tagRECT *))
code.obj(code)
Error 42: Symbol Undefined
?OnCreateClient@CFrameWnd@@MAEHPAUtagCREATESTRUCTA@@
PAUCCreateContext@@@Z (int syscall
CFrameWnd::OnCreateClient(tagCREATESTRUCTA *,
CCreateContext *))
code.obj(code)
Error 42: Symbol Undefined ?OnUpdateFrameTitle@CFrameWnd@@UAEXH@Z (void
syscall
CFrameWnd::OnUpdateFrameTitle(int ))
code.obj(code)
Error 42: Symbol Undefined ?OnUpdateFrameMenu@CFrameWnd@@UAEXPAUHMENU__@@@Z
(vo
id syscall CFrameWnd::OnUpdateFrameMenu(HMENU__ *))
code.obj(code)
Error 42: Symbol Undefined
?GetDefaultAccelerator@CFrameWnd@@UAEPAUHACCEL__@@XZ
(HACCEL__ *syscall CFrameWnd::GetDefaultAccelerator(void ))
code.obj(code)
Error 42: Symbol Undefined ?CheckAutoCenter@CWnd@@UAEHXZ (int syscall
CWnd::Che
ckAutoCenter(void ))
code.obj(code)
Error 42: Symbol Undefined ?IsFrameWnd@CFrameWnd@@UBEHXZ (int syscall
CFrameWnd
::IsFrameWnd(void )const )
code.obj(code)
Error 42: Symbol Undefined
?SetOccDialogInfo@CWnd@@MAEHPAU_AFX_OCC_DIALOG_INFO@
@@Z (int syscall CWnd::SetOccDialogInfo(_AFX_OCC_DIALOG_INFO *))
code.obj(code)
Error 42: Symbol Undefined
?LoadFrame@CFrameWnd@@UAEHIKPAVCWnd@@PAUCCreateConte
xt@@@Z (int syscall CFrameWnd::LoadFrame(unsigned ,unsigned long ,CWnd
*,CCreate
Context *))
code.obj(code)
Error 42: Symbol Undefined
?GetActiveDocument@CFrameWnd@@UAEPAVCDocument@@XZ (C
Document *syscall CFrameWnd::GetActiveDocument(void ))
code.obj(code)
Error 42: Symbol Undefined ?GetActiveFrame@CFrameWnd@@UAEPAV1@XZ (CFrameWnd
*sy
scall CFrameWnd::GetActiveFrame(void ))
code.obj(code)
Error 42: Symbol Undefined ?GetMessageString@CFrameWnd@@UBEXIAAVCString@@@Z
(vo
id syscall CFrameWnd::GetMessageString(unsigned ,CString &)const )
code.obj(code)
Error 42: Symbol Undefined ?RecalcLayout@CFrameWnd@@UAEXH@Z (void syscall
CFram
eWnd::RecalcLayout(int ))
code.obj(code)
Error 42: Symbol Undefined ?EndModalState@CFrameWnd@@UAEXXZ (void syscall
CFram
eWnd::EndModalState(void ))
code.obj(code)
Error 42: Symbol Undefined
?PreTranslateMessage@CFrameWnd@@UAEHPAUtagMSG@@@Z (i
nt syscall CFrameWnd::PreTranslateMessage(tagMSG *))
code.obj(code)
Error 42: Symbol Undefined
?OnAmbientProperty@CWnd@@UAEHPAVCOleControlSite@@JPA
UtagVARIANT@@@Z (int syscall CWnd::OnAmbientProperty(COleControlSite *,long
,tag
VARIANT *))
code.obj(code)
Error 42: Symbol Undefined ?WindowProc@CWnd@@MAEJIIJ@Z (long syscall
CWnd::Wind
owProc(unsigned ,unsigned ,long ))
code.obj(code)
Error 42: Symbol Undefined ?OnWndMsg@CWnd@@MAEHIIJPAJ@Z (int syscall
CWnd::OnWn
dMsg(unsigned ,unsigned ,long ,long *))
code.obj(code)
Error 42: Symbol Undefined ?DefWindowProcA@CWnd@@MAEJIIJ@Z (long syscall
CWnd::
DefWindowProcA(unsigned ,unsigned ,long ))
code.obj(code)
Error 42: Symbol Undefined ?PostNcDestroy@CFrameWnd@@MAEXXZ (void syscall
CFram
eWnd::PostNcDestroy(void ))
code.obj(code)
Error 42: Symbol Undefined ?OnChildNotify@CWnd@@MAEHIIJPAJ@Z (int syscall
CWnd:
:OnChildNotify(unsigned ,unsigned ,long ,long *))
code.obj(code)
Error 42: Symbol Undefined ?GetScrollBarCtrl@CWnd@@UBEPAVCScrollBar@@H@Z
(CScro
llBar *syscall CWnd::GetScrollBarCtrl(int )const )
code.obj(code)
Error 42: Symbol Undefined ?WinHelpA@CWnd@@UAEXKI@Z (void syscall
CWnd::WinHelp
A(unsigned long ,unsigned ))
code.obj(code)
Error 42: Symbol Undefined ?ContinueModal@CWnd@@UAEHXZ (int syscall
CWnd::Conti
nueModal(void ))
code.obj(code)
Error 42: Symbol Undefined ?EndModalLoop@CWnd@@UAEXH@Z (void syscall
CWnd::EndM
odalLoop(int ))
code.obj(code)
Error 42: Symbol Undefined ?OnCommand@CFrameWnd@@MAEHIJ@Z (int syscall
CFrameWn
d::OnCommand(unsigned ,long ))
code.obj(code)
Error 42: Symbol Undefined ?OnNotify@CWnd@@MAEHIJPAJ@Z (int syscall
CWnd::OnNot
ify(unsigned ,long ,long *))
code.obj(code)
Error 42: Symbol Undefined
?GetSuperWndProcAddr@CWnd@@MAEPAP6GJPAUHWND__@@IIJ@Z
XZ (long stdcall (*)(HWND__ *,unsigned ,unsigned ,long )*syscall
CWnd::GetSuperW
ndProcAddr(void ))
code.obj(code)
Error 42: Symbol Undefined ?BeginModalState@CFrameWnd@@UAEXXZ (void syscall
CFr
ameWnd::BeginModalState(void ))
code.obj(code)
Error 42: Symbol Undefined
?GetExtraConnectionPoints@CCmdTarget@@MAEHPAVCPtrArr
ay@@@Z (int syscall CCmdTarget::GetExtraConnectionPoints(CPtrArray *))
code.obj(code)
Error 42: Symbol Undefined
?GetConnectionHook@CCmdTarget@@MAEPAUIConnectionPoin
t@@ABU_GUID@@@Z (IConnectionPoint *syscall
CCmdTarget::GetConnectionHook(_GUID c
onst &))
code.obj(code)
Error 42: Symbol Undefined ?PreSubclassWindow@CWnd@@UAEXXZ (void syscall
CWnd::
PreSubclassWindow(void ))
code.obj(code)
Error 42: Symbol Undefined
?Create@CWnd@@UAEHPBD0KABUtagRECT@@PAV1@IPAUCCreateC
ontext@@@Z (int syscall CWnd::Create(char const *,char const *,unsigned long
,ta
gRECT const &,CWnd *,unsigned ,CCreateContext *))
code.obj(code)
Error 42: Symbol Undefined ?DestroyWindow@CWnd@@UAEHXZ (int syscall
CWnd::Destr
oyWindow(void ))
code.obj(code)
Error 42: Symbol Undefined
?PreCreateWindow@CFrameWnd@@MAEHAAUtagCREATESTRUCTA@
@@Z (int syscall CFrameWnd::PreCreateWindow(tagCREATESTRUCTA &))
code.obj(code)
Error 42: Symbol Undefined ?CalcWindowRect@CWnd@@UAEXPAUtagRECT@@I@Z (void
sysc
all CWnd::CalcWindowRect(tagRECT *,unsigned ))
code.obj(code)
Error 42: Symbol Undefined
?OnToolHitTest@CWnd@@UBEHVCPoint@@PAUtagTOOLINFOA@@@
Z (int syscall CWnd::OnToolHitTest(CPoint ,tagTOOLINFOA *)const )
code.obj(code)
Error 42: Symbol Undefined ?GetMessageMap@CFrameWnd@@MBEPBUAFX_MSGMAP@@XZ
(AFX_
MSGMAP const *syscall CFrameWnd::GetMessageMap(void )const )
code.obj(code)
Error 42: Symbol Undefined
?GetCommandMap@CCmdTarget@@MBEPBUAFX_OLECMDMAP@@XZ (
AFX_OLECMDMAP const *syscall CCmdTarget::GetCommandMap(void )const )
code.obj(code)
Error 42: Symbol Undefined
?GetDispatchMap@CCmdTarget@@MBEPBUAFX_DISPMAP@@XZ (A
FX_DISPMAP const *syscall CCmdTarget::GetDispatchMap(void )const )
code.obj(code)
Error 42: Symbol Undefined
?GetConnectionMap@CCmdTarget@@MBEPBUAFX_CONNECTIONMA
P@@XZ (AFX_CONNECTIONMAP const *syscall
CCmdTarget::GetConnectionMap(void )const
)
code.obj(code)
Error 42: Symbol Undefined
?GetInterfaceMap@CCmdTarget@@MBEPBUAFX_INTERFACEMAP@
@XZ (AFX_INTERFACEMAP const *syscall
CCmdTarget::GetInterfaceMap(void )const )
code.obj(code)
Error 42: Symbol Undefined
?GetEventSinkMap@CCmdTarget@@MBEPBUAFX_EVENTSINKMAP@
@XZ (AFX_EVENTSINKMAP const *syscall
CCmdTarget::GetEventSinkMap(void )const )
code.obj(code)
Error 42: Symbol Undefined ?OnCreateAggregates@CCmdTarget@@UAEHXZ (int
syscall
CCmdTarget::OnCreateAggregates(void ))
code.obj(code)
Error 42: Symbol Undefined
?GetInterfaceHook@CCmdTarget@@UAEPAUIUnknown@@PBX@Z
(IUnknown *syscall CCmdTarget::GetInterfaceHook(void const *))
code.obj(code)
Error 42: Symbol Undefined
?GetRuntimeClass@CFrameWnd@@UBEPAUCRuntimeClass@@XZ
(CRuntimeClass *syscall CFrameWnd::GetRuntimeClass(void )const )
code.obj(code)
Error 42: Symbol Undefined
?OnCmdMsg@CFrameWnd@@UAEHIHPAXPAUAFX_CMDHANDLERINFO@
@@Z (int syscall CFrameWnd::OnCmdMsg(unsigned ,int ,void
*,AFX_CMDHANDLERINFO *)
)
code.obj(code)
Error 42: Symbol Undefined ?OnFinalRelease@CWnd@@UAEXXZ (void syscall
CWnd::OnF
inalRelease(void ))
code.obj(code)
Error 42: Symbol Undefined ?IsInvokeAllowed@CCmdTarget@@UAEHJ@Z (int
syscall CC
mdTarget::IsInvokeAllowed(long ))
code.obj(code)
Error 42: Symbol Undefined ?GetDispatchIID@CCmdTarget@@UAEHPAU_GUID@@@Z
(int sy
scall CCmdTarget::GetDispatchIID(_GUID *))
code.obj(code)
Error 42: Symbol Undefined ?GetTypeInfoCount@CCmdTarget@@UAEIXZ (unsigned
sysca
ll CCmdTarget::GetTypeInfoCount(void ))
code.obj(code)
Error 42: Symbol Undefined
?GetTypeLibCache@CCmdTarget@@UAEPAVCTypeLibCache@@XZ
(CTypeLibCache *syscall CCmdTarget::GetTypeLibCache(void ))
code.obj(code)
Error 42: Symbol Undefined ?GetTypeLib@CCmdTarget@@UAEJKPAPAUITypeLib@@@Z
(long
syscall CCmdTarget::GetTypeLib(unsigned long ,ITypeLib **))
code.obj(code)
Error 42: Symbol Undefined
?ProcessWndProcException@CWinApp@@UAEJPAVCException@
@PBUtagMSG@@@Z (long syscall CWinApp::ProcessWndProcException(CException
*,tagMS
G const *))
code.obj(code)
Error 42: Symbol Undefined
?ProcessMessageFilter@CWinThread@@UAEHHPAUtagMSG@@@Z
(int syscall CWinThread::ProcessMessageFilter(int ,tagMSG *))
code.obj(code)
Error 42: Symbol Undefined ?GetMainWnd@CWinThread@@UAEPAVCWnd@@XZ (CWnd
*syscal
l CWinThread::GetMainWnd(void ))
code.obj(code)
Error 42: Symbol Undefined ?Delete@CWinThread@@UAEXXZ (void syscall
CWinThread:
:Delete(void ))
code.obj(code)
Error 42: Symbol Undefined
?OpenDocumentFile@CWinApp@@UAEPAVCDocument@@PBD@Z (C
Document *syscall CWinApp::OpenDocumentFile(char const *))
code.obj(code)
Error 42: Symbol Undefined ?AddToRecentFileList@CWinApp@@UAEXPBD@Z (void
syscal
l CWinApp::AddToRecentFileList(char const *))
code.obj(code)
Error 42: Symbol Undefined ?InitApplication@CWinApp@@UAEHXZ (int syscall
CWinAp
p::InitApplication(void ))
code.obj(code)
Error 42: Symbol Undefined ?SaveAllModified@CWinApp@@UAEHXZ (int syscall
CWinAp
p::SaveAllModified(void ))
code.obj(code)
Error 42: Symbol Undefined ?Run@CWinApp@@UAEHXZ (int syscall
CWinApp::Run(void
))
code.obj(code)
Error 42: Symbol Undefined
?PreTranslateMessage@CWinThread@@UAEHPAUtagMSG@@@Z (
int syscall CWinThread::PreTranslateMessage(tagMSG *))
code.obj(code)
Error 42: Symbol Undefined ?PumpMessage@CWinThread@@UAEHXZ (int syscall
CWinThr
ead::PumpMessage(void ))
code.obj(code)
Error 42: Symbol Undefined ?OnIdle@CWinApp@@UAEHJ@Z (int syscall
CWinApp::OnIdl
e(long ))
code.obj(code)
Error 42: Symbol Undefined ?IsIdleMessage@CWinThread@@UAEHPAUtagMSG@@@Z
(int sy
scall CWinThread::IsIdleMessage(tagMSG *))
code.obj(code)
Error 42: Symbol Undefined ?ExitInstance@CWinApp@@UAEHXZ (int syscall
CWinApp::
ExitInstance(void ))
code.obj(code)
Error 42: Symbol Undefined ?GetMessageMap@CWinApp@@MBEPBUAFX_MSGMAP@@XZ
(AFX_MS
GMAP const *syscall CWinApp::GetMessageMap(void )const )
code.obj(code)
Error 42: Symbol Undefined
?GetRuntimeClass@CWinApp@@UBEPAUCRuntimeClass@@XZ (C
RuntimeClass *syscall CWinApp::GetRuntimeClass(void )const )
code.obj(code)
Error 42: Symbol Undefined
?OnCmdMsg@CCmdTarget@@UAEHIHPAXPAUAFX_CMDHANDLERINFO
@@@Z (int syscall CCmdTarget::OnCmdMsg(unsigned ,int ,void
*,AFX_CMDHANDLERINFO
*))
code.obj(code)
Error 42: Symbol Undefined ?OnFinalRelease@CCmdTarget@@UAEXXZ (void syscall
CCm
dTarget::OnFinalRelease(void ))
code.obj(code)
Error 42: Symbol Undefined ??1CWinApp@@UAE@XZ (syscall
CWinApp::~CWinApp(void )
)
code.obj(code)
Error 42: Symbol Undefined ??0CWinApp@@QAE@PBD@Z (syscall
CWinApp::CWinApp(char
const *))
OPTLINK : Warning 134: No Start Address
--- errorlevel 87
"bw" <bw_member@pathlink.com> wrote in message news:aoed6f$436$1@digitaldaemon.com...
> In article <aodugt$2l4o$1@digitaldaemon.com>, James Kirkham says...
> >
> >Ok thanks! I understand now. Can you also explain in the same detail
this:
> >"Make sure to link your mfc-app against the c:\dm\mfc\lib\nafxcw.lib". Thanks Again.
>
> looks like the way you installed you should be good to go, try c:\dm\bin\sc yourfile.cpp -L/ENTRY:WinMainCRTStartup
>
>
|