D
Doug Bailey
I have found a linker problem in .NET2003 when trying to build a web
service.
To replicate the problem, simply build a new web service project
FILE->NEW->PRROJECT… command.
In the "Hello World" web service example add the following 2 lines:
char test[20];
sprintf(test, "test");
In addition add:
#include <stdio.h>
at the top of the CPP file so it can compile.
When I build the service I get the following error:
testxxClass.obj : error LNK2001: unresolved external symbol "int
__cdecl sprintf(char *,char const *,...)" (?sprintf@@$$J0YAHPADPBDZZ)
When I add LIBCMTD.LIB to the library references and build the
project, the error changes to:
LIBCMTD.LIB(crt0.obj) : error LNK2019: unresolved external symbol
_main referenced in function _mainCRTStartup
Does anybody have any ideas?
I am currently migrating some legacy code into my application and
prefer not having to rewrite many of the handling functions to get
around these library reference errors.
Thanks
Doug Bailey
service.
To replicate the problem, simply build a new web service project
FILE->NEW->PRROJECT… command.
In the "Hello World" web service example add the following 2 lines:
char test[20];
sprintf(test, "test");
In addition add:
#include <stdio.h>
at the top of the CPP file so it can compile.
When I build the service I get the following error:
testxxClass.obj : error LNK2001: unresolved external symbol "int
__cdecl sprintf(char *,char const *,...)" (?sprintf@@$$J0YAHPADPBDZZ)
When I add LIBCMTD.LIB to the library references and build the
project, the error changes to:
LIBCMTD.LIB(crt0.obj) : error LNK2019: unresolved external symbol
_main referenced in function _mainCRTStartup
Does anybody have any ideas?
I am currently migrating some legacy code into my application and
prefer not having to rewrite many of the handling functions to get
around these library reference errors.
Thanks
Doug Bailey