Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by duncanb7
at 2024-07-08 10:48:22
Point:500 Replies:6 POST_ID:828563USER_ID:11059
Topic:
C++ Programming Language;C Programming Language;Java Programming Language
TOday I complier old cpp program(year of 2005) with cl.exe and link.exe from VS 10.0 VC++ at command line and run the program, it found error as follows
LINK:fatal error LNK1104: cannot open file "nafxcw.lib"
And google it for the solution as follows
2.8: Why do I get an unresolved external on nafxcw.lib or uafxcw.lib? (top)
The files nafx*.lib and uafx*.lib are the static LIB versions of MFC. The files beginning with "n" are the ANSI version, and the files beginning with "u" are the Unicode version. By default, only the ANSI files are installed on your hard drive. If the linker cannot find these LIB files, copy them from your Visual C++ CD to your <VCdir>vc98mfclib directory.
If those files are not on your CD, then you have an edition of Visual C++ that does not support static linking to MFC. You will need to change your project settings to use the DLL version of MFC. Click Project->Settings and go the General tab. In the Microsoft Foundation Classes combo box, select Use MFC in a Shared DLL.
http://www.codeproject.com/Articles/1248/The-Code-Project-Visual-C-Forum-FAQ
Just want to know how to run link.exe at command line with option to include
DLL of MFC...
I check at MS at http://msdn.microsoft.com/en-us/library/y0zzbyt4(v=vs.71).aspx
nothing say about this.
Anyway, just want to solve the fatal error issue about no file of nfxcw.lib at
command line with cl.exe and link.exe
Please advise
Duncan
Author: duncanb7 replied at 2024-09-24 01:08:32
Thanks for your reply
I will continue this in new thread
I will continue this in new thread
Accepted Solution
Expert: jcgd replied at 2024-07-09 14:56:53
125 points GOOD
to use MFC share library you must put _AFXDLL in prepocessor directive of your project or use /D "_AFXDLL" in command line
Assisted Solution
Expert: AndyAinscow replied at 2024-07-09 03:07:08
125 points GOOD
>>I used cl.exe and link.exe at command line.
OK - but was it used the same as previously ?
Also - would it not be simpler to open the solution in visual studio and compile/link from there?
OK - but was it used the same as previously ?
Also - would it not be simpler to open the solution in visual studio and compile/link from there?
Assisted Solution
Expert: Orcbighter replied at 2024-07-09 02:49:05
125 points GOOD
Please show us the full commandline, with the relevant flags, that you are using to compile and link.
Author: duncanb7 replied at 2024-07-09 02:22:49
I used cl.exe and link.exe at command line.
Assisted Solution
Expert: AndyAinscow replied at 2024-07-08 23:17:18
125 points GOOD
Are you using the same command line options for the compile/link as you did previously?
If this is an MFC project is there some reason you don't want to compile it from Visual Studio rather than from the command line ?
If this is an MFC project is there some reason you don't want to compile it from Visual Studio rather than from the command line ?