Groups | Blog | Home
all groups > dotnet faqs > august 2005 >

dotnet faqs : errors in using .NET 2003


Chris
8/16/2005 3:36:04 AM
Hi

I have a project that was written in V6.0 (c/c++) and it works just fine,
but when I run it in .NET 2003 (V7.0), I get a whole lot of linking errors.

I have spent alot of time trying to solve it but to no avail....please help!

the errors that show up are:

Compiling...
RecSession.cpp
Recogniser.cpp
CWSR_app.cpp
CallEngine.cpp
Generating Code...
Compiling...
acu_os_port_win.c
Generating Code...
Linking...
ASRClient_T_CRTDLL.lib(SocketFile.obj) : error LNK2019: unresolved external
symbol "__declspec(dllimport) protected: void __thiscall
std::basic_filebuf<char,struct std::char_traits<char> >::_Initcvt(void)"
(__imp_?_Initcvt@?$basic_filebuf@DU?$char_traits@D@std@@@std@@IAEXXZ)
referenced in function "public: int __thiscall
CSocketFile::SocketToFile(unsigned int,char const *)"
(?SocketToFile@CSocketFile@@QAEHIPBD@Z)

ASRClient_T_CRTDLL.lib(SocketFile.obj) : error LNK2019: unresolved external
symbol "__declspec(dllimport) struct _iobuf * __cdecl std::__Fiopen(char
const *,int)" (__imp_?__Fiopen@std@@YAPAU_iobuf@@PBDH@Z) referenced in
function "public: int __thiscall CSocketFile::SocketToFile(unsigned int,char
const *)" (?SocketToFile@CSocketFile@@QAEHIPBD@Z)

.... (another 12 errors like these)

Does anyone have any suggestions?

Francois Bonin [MVP]
8/22/2005 12:00:00 AM
It looks as though the project you are working with depends on MFC classes.
Those classes are not present in the .NET framework.
Hence your linker errors.

[quoted text, click to view]

AddThis Social Bookmark Button