www.digitalmars.com         C & C++   DMDScript  

c++.windows.32-bits - unable to run/compile tutorials from digital mars CD

reply Jens Friese <Jens_member pathlink.com> writes:
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
parent reply user domain.invalid writes:
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
parent Jens Friese <Jens_member pathlink.com> writes:
Indeed, I had to adjust the library path.
Thanks for the hint. 

Regards, Jens

It seems you are missing the MFC libs. Or the library path does 
not have the right settings.
Nov 14 2002