Unresolved Symbol using nprintf() in release build

0 Likes

Problem:

I tried using the nprintf() function today to get some debugging output in a

Release build.  The compilation went fine, but the link failed with the

following:

rtMS940.lib(C038p.obj) : error LNK2001: unresolved external symbol

_DebugString

Is there something else I have to do to use nprintf()?  The Debug build

linked OK.

Resolution:

You can get around this problem by adding the following line to your VxD's MAK file.

USER_LIB = $(VTOOLSD)\lib\cfms.lib

Add this line before the

!include $(VTOOLSD)\include\vtoolsd.mak

!include $(VTOOLSD)\include\vxdtarg.mak

lines in the makefile.

Old KB# 12007
Comment List
Anonymous
Related Discussions
Recommended