c++.windows.32-bits - unable to run/compile tutorials from digital mars CD
- Jens Friese (29/29) Nov 13 2002 Dear Developers,
- user domain.invalid (5/45) Nov 13 2002 It seems you are missing the MFC libs. Or the library path does
- Jens Friese (3/5) Nov 14 2002 Indeed, I had to adjust the library path.
Dear Developers, I recently bought the DigitalMars CD and I have problems getting the tutorials to run. Lesson 1 & 2 work properly but lesson 3,4,5 do not compile - even if I use the correct project files available on CD. I did not alter the code found in \dm\samples\TUTORIAL\LESSON3\FINISH\ in any way. I just opened the project and clicked on "Execute Program". I always get the following error message: link /CO /DE /NOPACKF /XU /A:16 /RC -31 :tmlread.RES TMLREAD.LNK Error: F:\Programme\dm\samples\TUTORIAL\LESSON3\FINISH\tmlrddoc.OBJ(tmlrddoc) : Symbol Undefined ??0AFX_CLASSINIT RAC PEUCRuntimeClass Z (pascal AFX_CLASSINIT::AFX_CLASSINIT(CRuntimeClass far *)) Error: F:\Programme\dm\samples\TUTORIAL\LESSON3\FINISH\tmlrddoc.OBJ(tmlrddoc) (1374660): Symbol Undefined ?OnNewDocument CDocument VECHXZ (int pascal CDocument::OnNewDocument(void )far ) [.. I deleted the messages for another 146 errors. If you need them, tell me..] Error: F:\Programme\dm\samples\TUTORIAL\LESSON3\FINISH\mainfrm.OBJ(mainfrm) (1819172): Symbol Undefined ?classCFrameWnd CFrameWnd 2UCRuntimeClass A (CRuntimeClass CFrameWnd::classCFrameWnd) Warning: No Start Address Errors: 149 Warnings: 1 Build failed What's going on here? Do I have to adjust compiler settings? I'm looking forward to your reply. Regards, Jens
Nov 13 2002
It seems you are missing the MFC libs. Or the library path does not have the right settings. Check you have a nafxcw.lib file somewhere on the CD or somewhere in the DMC install directory. Jens Friese wrote:Dear Developers, I recently bought the DigitalMars CD and I have problems getting the tutorials to run. Lesson 1 & 2 work properly but lesson 3,4,5 do not compile - even if I use the correct project files available on CD. I did not alter the code found in \dm\samples\TUTORIAL\LESSON3\FINISH\ in any way. I just opened the project and clicked on "Execute Program". I always get the following error message: link /CO /DE /NOPACKF /XU /A:16 /RC -31 :tmlread.RES TMLREAD.LNK Error: F:\Programme\dm\samples\TUTORIAL\LESSON3\FINISH\tmlrddoc.OBJ(tmlrddoc) : Symbol Undefined ??0AFX_CLASSINIT RAC PEUCRuntimeClass Z (pascal AFX_CLASSINIT::AFX_CLASSINIT(CRuntimeClass far *)) Error: F:\Programme\dm\samples\TUTORIAL\LESSON3\FINISH\tmlrddoc.OBJ(tmlrddoc) (1374660): Symbol Undefined ?OnNewDocument CDocument VECHXZ (int pascal CDocument::OnNewDocument(void )far ) [.. I deleted the messages for another 146 errors. If you need them, tell me..] Error: F:\Programme\dm\samples\TUTORIAL\LESSON3\FINISH\mainfrm.OBJ(mainfrm) (1819172): Symbol Undefined ?classCFrameWnd CFrameWnd 2UCRuntimeClass A (CRuntimeClass CFrameWnd::classCFrameWnd) Warning: No Start Address Errors: 149 Warnings: 1 Build failed What's going on here? Do I have to adjust compiler settings? I'm looking forward to your reply. Regards, Jens
Nov 13 2002
Indeed, I had to adjust the library path. Thanks for the hint. Regards, JensIt seems you are missing the MFC libs. Or the library path does not have the right settings.
Nov 14 2002