Hi,
I am using codeblocks together with the Visual C++ toolkit compiler and I have installed the Microsoft Platform SDK.
I am trying to compile a program which uses an MFC class (CString). I have included the afx.h header which is provided by the Platform SDK in the include\mfc directory. When I build my app I get an error saying:
LINK : fatal error LNK1104: cannot open file 'nafxcw.lib'
I have done some research and from what I can understand the mfc libs are not distributed with the platform sdk and you cannot link to them statically. Instead, for people using Visual C++ they recommend checking a checkbox which says: 'Use MFC in a Shared DLL'.
I am a bit of a newbie so my questions my be a bit obvious but here they are:
- can I compile a app using precompiles DLL's. i.e. I don't need the .Lib file necessarily?
- If so how do I configure codeblock to link against a dll rather than looking for the .lib file
- Last where is the mfc shared dll?
thanks in advance
cheers
andre