URGENT: C++.NET and C Runtime Libraries

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
 
N

neomat

HI every body
sorry I have the same problem.
May somebody help me?
it's urgent.

neomat
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top