www.digitalmars.com         C & C++   DMDScript  

c++.mfc - Error

reply "James Kirkham" <JamesKirkham1 hotmail.com> writes:
  Sorry to keep reposting, but when no one replied I started to try and get
it to work myself.  I have extracted the files to C:\dm and have tried
running the make command on my windowsxp machine on the file allmfc.mak.
When I do so I get the following error:" Fatal allmfc.mak 161: No terminator
specified for in-line filer operator.  An I doing this right, am I
completely off track or is there a simple mistake.  I have never tried
setting anything up like this before; I am trying to learn MFC.  Thanks for
any help you can give.  Please feel free to ignore my other posts.  I am
sure someone will criticise me for multi-posting.  I am desperatly trying to
get my first MFC app to compile as I am working on a project that will
require it.

James Kirkham
Oct 13 2002
parent reply user domain.invalid writes:
James Kirkham wrote:
   Sorry to keep reposting, but when no one replied I started to try and get
 it to work myself.  I have extracted the files to C:\dm and have tried
 running the make command on my windowsxp machine on the file allmfc.mak.
 When I do so I get the following error:" Fatal allmfc.mak 161: No terminator
 specified for in-line filer operator.  An I doing this right, am I
 completely off track or is there a simple mistake.  I have never tried
 setting anything up like this before; I am trying to learn MFC.  Thanks for
 any help you can give.  Please feel free to ignore my other posts.  I am
 sure someone will criticise me for multi-posting.  I am desperatly trying to
 get my first MFC app to compile as I am working on a project that will
 require it.
 
 James Kirkham
 
 
What you need to do: Extract the file in a directory maintaining the direcory structure in the tar.gz files. eg: c:\dm is the compiler base dir. c:\dm\mfc\ c:\dm\atl\ Make sure to include c:\dm\atl\include c:\dm\mfc\include in your include path like dmc -Ic:\dm\atl\include -Ic:\dm\atl\include Make sure to link your mfc-app against the c:\dm\mfc\lib\nafxcw.lib. You don't have to (rebuild) the mfc lib's to use mfc in you apps the most commonly used lib (nafxcw.lib)is already in the archive. Good luck
Oct 13 2002
parent reply "James Kirkham" <JamesKirkham1 hotmail.com> writes:
As I said I am one complete noob.  When you say make sure to include
c:\dm\atl\include c:\dm\mfc\include in your
include path, what do you mean?  Does this info go inside my app?  In a
file?  If so how...

<user domain.invalid> wrote in message
news:aocot6$1f9a$1 digitaldaemon.com...
 James Kirkham wrote:
   Sorry to keep reposting, but when no one replied I started to try and
get
 it to work myself.  I have extracted the files to C:\dm and have tried
 running the make command on my windowsxp machine on the file allmfc.mak.
 When I do so I get the following error:" Fatal allmfc.mak 161: No
terminator
 specified for in-line filer operator.  An I doing this right, am I
 completely off track or is there a simple mistake.  I have never tried
 setting anything up like this before; I am trying to learn MFC.  Thanks
for
 any help you can give.  Please feel free to ignore my other posts.  I am
 sure someone will criticise me for multi-posting.  I am desperatly
trying to
 get my first MFC app to compile as I am working on a project that will
 require it.

 James Kirkham
What you need to do: Extract the file in a directory maintaining the direcory structure in the tar.gz files. eg: c:\dm is the compiler base dir. c:\dm\mfc\ c:\dm\atl\ Make sure to include c:\dm\atl\include c:\dm\mfc\include in your include path like dmc -Ic:\dm\atl\include -Ic:\dm\atl\include Make sure to link your mfc-app against the c:\dm\mfc\lib\nafxcw.lib. You don't have to (rebuild) the mfc lib's to use mfc in you apps the most commonly used lib (nafxcw.lib)is already in the archive. Good luck
Oct 13 2002
parent reply user domain.invalid writes:
Using the IDDE:
-right click the project, select 'Settings...'
-select the 'Directories' tab
-put those paths (separated with a ; ) in the 'include 
directories' entry

Using the command-line:
add -Ic:\dm\atl\include -Ic:\dm\mfc\include to the compiler 
commandline like

dmc -Ic:\dm\atl\include -Ic:\dm\mfc\include <other compiler 
options flags> file.cpp

Or you could try to read the manuals. And tutorial in how to use 
the (commandline) compiler.

James Kirkham wrote:
 As I said I am one complete noob.  When you say make sure to include
 c:\dm\atl\include c:\dm\mfc\include in your
 include path, what do you mean?  Does this info go inside my app?  In a
 file?  If so how...
 
 <user domain.invalid> wrote in message
 news:aocot6$1f9a$1 digitaldaemon.com...
 
James Kirkham wrote:

  Sorry to keep reposting, but when no one replied I started to try and
get
it to work myself.  I have extracted the files to C:\dm and have tried
running the make command on my windowsxp machine on the file allmfc.mak.
When I do so I get the following error:" Fatal allmfc.mak 161: No
terminator
specified for in-line filer operator.  An I doing this right, am I
completely off track or is there a simple mistake.  I have never tried
setting anything up like this before; I am trying to learn MFC.  Thanks
for
any help you can give.  Please feel free to ignore my other posts.  I am
sure someone will criticise me for multi-posting.  I am desperatly
trying to
get my first MFC app to compile as I am working on a project that will
require it.

James Kirkham
What you need to do: Extract the file in a directory maintaining the direcory structure in the tar.gz files. eg: c:\dm is the compiler base dir. c:\dm\mfc\ c:\dm\atl\ Make sure to include c:\dm\atl\include c:\dm\mfc\include in your include path like dmc -Ic:\dm\atl\include -Ic:\dm\atl\include Make sure to link your mfc-app against the c:\dm\mfc\lib\nafxcw.lib. You don't have to (rebuild) the mfc lib's to use mfc in you apps the most commonly used lib (nafxcw.lib)is already in the archive. Good luck
Oct 14 2002
parent reply "James Kirkham" <JamesKirkham1 hotmail.com> writes:
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.

<user domain.invalid> wrote in message
news:aodqjo$2gad$1 digitaldaemon.com...
 Using the IDDE:
 -right click the project, select 'Settings...'
 -select the 'Directories' tab
 -put those paths (separated with a ; ) in the 'include
 directories' entry

 Using the command-line:
 add -Ic:\dm\atl\include -Ic:\dm\mfc\include to the compiler
 commandline like

 dmc -Ic:\dm\atl\include -Ic:\dm\mfc\include <other compiler
 options flags> file.cpp

 Or you could try to read the manuals. And tutorial in how to use
 the (commandline) compiler.

 James Kirkham wrote:
 As I said I am one complete noob.  When you say make sure to include
 c:\dm\atl\include c:\dm\mfc\include in your
 include path, what do you mean?  Does this info go inside my app?  In a
 file?  If so how...

 <user domain.invalid> wrote in message
 news:aocot6$1f9a$1 digitaldaemon.com...

James Kirkham wrote:

  Sorry to keep reposting, but when no one replied I started to try and
get
it to work myself.  I have extracted the files to C:\dm and have tried
running the make command on my windowsxp machine on the file
allmfc.mak.
When I do so I get the following error:" Fatal allmfc.mak 161: No
terminator
specified for in-line filer operator.  An I doing this right, am I
completely off track or is there a simple mistake.  I have never tried
setting anything up like this before; I am trying to learn MFC.  Thanks
for
any help you can give.  Please feel free to ignore my other posts.  I
am
sure someone will criticise me for multi-posting.  I am desperatly
trying to
get my first MFC app to compile as I am working on a project that will
require it.

James Kirkham
What you need to do: Extract the file in a directory maintaining the direcory structure in the tar.gz files. eg: c:\dm is the compiler base dir. c:\dm\mfc\ c:\dm\atl\ Make sure to include c:\dm\atl\include c:\dm\mfc\include in your include path like dmc -Ic:\dm\atl\include -Ic:\dm\atl\include Make sure to link your mfc-app against the c:\dm\mfc\lib\nafxcw.lib. You don't have to (rebuild) the mfc lib's to use mfc in you apps the most commonly used lib (nafxcw.lib)is already in the archive. Good luck
Oct 14 2002
parent reply bw <bw_member pathlink.com> writes:
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
Oct 14 2002
parent reply "James Kirkham" <JamesKirkham1 hotmail.com> writes:
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
Oct 14 2002
parent reply Jan Knepper <jan smartsoft.us> writes:
James Kirkham wrote:

 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
This means that your LIB path has not been set. The linker is NOT able to find certain library files. nafxcw.lib is the MFC library file. The other two are Windows API library files. Try: set LIB=c:\dm\lib;c:\dm\mfc\lib; and than run dmc again. Jan
Oct 14 2002
parent reply "James Kirkham" <JamesKirkham1 hotmail.com> writes:
Where do I set this in the console a file?  If so how...

"Jan Knepper" <jan smartsoft.us> wrote in message
news:3DAACD2C.D759AD98 smartsoft.us...
 James Kirkham wrote:

 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
This means that your LIB path has not been set. The linker is NOT able to
find
 certain library files. nafxcw.lib is the MFC library file. The other two
are
 Windows API library files.

 Try:
 set LIB=c:\dm\lib;c:\dm\mfc\lib;
 and than run dmc again.

 Jan
Oct 14 2002
parent reply "James Kirkham" <JamesKirkham1 hotmail.com> writes:
I check my settings here is what the console returned:


C:\dm\bin>set
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\James\Application Data
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=FAMILYPC
ComSpec=C:\WINDOWS\system32\cmd.exe
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\James
LIB=c:\dm\lib;c:\dm\mfc\lib;
LOGONSERVER=\\FAMILYPC
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Co
mmon Files\Adaptec Shared\System;C:\BORLAND\BCC55\BIN;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 1 Stepping 2, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0102
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\James\LOCALS~1\Temp
TMP=C:\DOCUME~1\James\LOCALS~1\Temp
USERDOMAIN=FAMILYPC
USERNAME=James
USERPROFILE=C:\Documents and Settings\James
windir=C:\WINDOWS


This appears to be right so what is wrong?

"James Kirkham" <JamesKirkham1 hotmail.com> wrote in message
news:aoej9n$bvo$1 digitaldaemon.com...
 Where do I set this in the console a file?  If so how...

 "Jan Knepper" <jan smartsoft.us> wrote in message
 news:3DAACD2C.D759AD98 smartsoft.us...
 James Kirkham wrote:

 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
This means that your LIB path has not been set. The linker is NOT able
to
 find
 certain library files. nafxcw.lib is the MFC library file. The other two
are
 Windows API library files.

 Try:
 set LIB=c:\dm\lib;c:\dm\mfc\lib;
 and than run dmc again.

 Jan
Oct 14 2002
next sibling parent Jan Knepper <jan smartsoft.us> writes:
Check if the three mentioned files are actually in the ~/lib and ~/mfc/lib
directory. They might be missing.

Jan



James Kirkham wrote:

 I check my settings here is what the console returned:

 C:\dm\bin>set
 ALLUSERSPROFILE=C:\Documents and Settings\All Users
 APPDATA=C:\Documents and Settings\James\Application Data
 CLIENTNAME=Console
 CommonProgramFiles=C:\Program Files\Common Files
 COMPUTERNAME=FAMILYPC
 ComSpec=C:\WINDOWS\system32\cmd.exe
 HOMEDRIVE=C:
 HOMEPATH=\Documents and Settings\James
 LIB=c:\dm\lib;c:\dm\mfc\lib;
 LOGONSERVER=\\FAMILYPC
 NUMBER_OF_PROCESSORS=1
 OS=Windows_NT
 Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
 Files\Co
 mmon Files\Adaptec Shared\System;C:\BORLAND\BCC55\BIN;
 PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
 PROCESSOR_ARCHITECTURE=x86
 PROCESSOR_IDENTIFIER=x86 Family 15 Model 1 Stepping 2, GenuineIntel
 PROCESSOR_LEVEL=15
 PROCESSOR_REVISION=0102
 ProgramFiles=C:\Program Files
 PROMPT=$P$G
 SESSIONNAME=Console
 SystemDrive=C:
 SystemRoot=C:\WINDOWS
 TEMP=C:\DOCUME~1\James\LOCALS~1\Temp
 TMP=C:\DOCUME~1\James\LOCALS~1\Temp
 USERDOMAIN=FAMILYPC
 USERNAME=James
 USERPROFILE=C:\Documents and Settings\James
 windir=C:\WINDOWS

 This appears to be right so what is wrong?

 "James Kirkham" <JamesKirkham1 hotmail.com> wrote in message
 news:aoej9n$bvo$1 digitaldaemon.com...
 Where do I set this in the console a file?  If so how...

 "Jan Knepper" <jan smartsoft.us> wrote in message
 news:3DAACD2C.D759AD98 smartsoft.us...
 James Kirkham wrote:

 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
This means that your LIB path has not been set. The linker is NOT able
to
 find
 certain library files. nafxcw.lib is the MFC library file. The other two
are
 Windows API library files.

 Try:
 set LIB=c:\dm\lib;c:\dm\mfc\lib;
 and than run dmc again.

 Jan
Oct 14 2002
prev sibling parent reply "James Kirkham" <JamesKirkham1 hotmail.com> writes:
I just noticed this "c:\dm\mfc\lib;" path does not exist on my system for
the lib.  Where should it point?  My MFC directory looks like this contains
two folders include and src.

"James Kirkham" <JamesKirkham1 hotmail.com> wrote in message
news:aoejn8$ci6$1 digitaldaemon.com...
 I check my settings here is what the console returned:


 C:\dm\bin>set
 ALLUSERSPROFILE=C:\Documents and Settings\All Users
 APPDATA=C:\Documents and Settings\James\Application Data
 CLIENTNAME=Console
 CommonProgramFiles=C:\Program Files\Common Files
 COMPUTERNAME=FAMILYPC
 ComSpec=C:\WINDOWS\system32\cmd.exe
 HOMEDRIVE=C:
 HOMEPATH=\Documents and Settings\James
 LIB=c:\dm\lib;c:\dm\mfc\lib;
 LOGONSERVER=\\FAMILYPC
 NUMBER_OF_PROCESSORS=1
 OS=Windows_NT
 Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
 Files\Co
 mmon Files\Adaptec Shared\System;C:\BORLAND\BCC55\BIN;
 PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
 PROCESSOR_ARCHITECTURE=x86
 PROCESSOR_IDENTIFIER=x86 Family 15 Model 1 Stepping 2, GenuineIntel
 PROCESSOR_LEVEL=15
 PROCESSOR_REVISION=0102
 ProgramFiles=C:\Program Files
 PROMPT=$P$G
 SESSIONNAME=Console
 SystemDrive=C:
 SystemRoot=C:\WINDOWS
 TEMP=C:\DOCUME~1\James\LOCALS~1\Temp
 TMP=C:\DOCUME~1\James\LOCALS~1\Temp
 USERDOMAIN=FAMILYPC
 USERNAME=James
 USERPROFILE=C:\Documents and Settings\James
 windir=C:\WINDOWS


 This appears to be right so what is wrong?

 "James Kirkham" <JamesKirkham1 hotmail.com> wrote in message
 news:aoej9n$bvo$1 digitaldaemon.com...
 Where do I set this in the console a file?  If so how...

 "Jan Knepper" <jan smartsoft.us> wrote in message
 news:3DAACD2C.D759AD98 smartsoft.us...
 James Kirkham wrote:

 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
This means that your LIB path has not been set. The linker is NOT able
to
 find
 certain library files. nafxcw.lib is the MFC library file. The other
two
 are
 Windows API library files.

 Try:
 set LIB=c:\dm\lib;c:\dm\mfc\lib;
 and than run dmc again.

 Jan
Oct 14 2002
parent bw <bw_member pathlink.com> writes:
my bad, i thought you installed it there it must be in c:\mfc\lib instead of
c:\dm\mfc\lib

if it was me i'd move the mfc folder, i think that dm\mfc\lib and dm\mfc\include
are default paths in the dm\bin\sc.ini file, and wherever you install mfc, i
think it should match those setting... that way you don't have to specify them
every time you run dmc

i had to run implib on winspool.drv and shell32.dll in my windows\system folder
and i put the resulting lib files in dm\lib they seem to not be a part of the
compiler download.  there's some name mangling&decorated name issues to deal
with too.  one thing at a time!!

L8r,
bw
In article <aoejug$cua$1 digitaldaemon.com>, James Kirkham says...
I just noticed this "c:\dm\mfc\lib;" path does not exist on my system for
the lib.  Where should it point?  My MFC directory looks like this contains
two folders include and src.
Oct 14 2002