URGENT: C++.NET and C Runtime Libraries

  • Thread starter Thread starter Joseph Narissi
  • Start date Start date
J

Joseph Narissi

Hello,

For my current project I need to incorporate some legacy C code with my
c++.NET app. I have my project setup to use an additional INCLUDE directory,
pointed to the VS6 include directory.

Linker settings include the following: msvcrt.lib mscoree.lib


I got most of the files needed to work properly, except when I include one
file that uses "#include <io.h>" I get the following linker errors:


acisam.obj : error LNK2001: unresolved external symbol "int __cdecl
open(char const *,int,...)" (?open@@$$J0YAHPBDHZZ)
acisam.obj : error LNK2001: unresolved external symbol "long __cdecl
lseek(int,long,int)" (?lseek@@$$J0YAJHJH@Z)
acisam.obj : error LNK2001: unresolved external symbol "int __cdecl
read(int,void *,unsigned int)" (?read@@$$J0YAHHPAXI@Z)
acisam.obj : error LNK2001: unresolved external symbol "int __cdecl
close(int)" (?close@@$$J0YAHH@Z)
acisam.obj : error LNK2001: unresolved external symbol "int __cdecl
write(int,void const *,unsigned int)" (?write@@$$J0YAHHPBXI@Z)


Anyone have any idea what library to include, or how to fix this?

Thanks in advance for the help....

Joe
 
Back
Top