How to link old 3 pty libs in MC++???

T

Thorsten

Hi all


I'm trying to use a third party library which is compiled with an older C++
compiler then the compiler in Visual Studio 2003. My project is a managed
C++ library and I use the Visual Studio 2003.


In the header files of the third party lib I can see that <fstream.h> is
used and if I include this header file I get an error that fstream.h cannot
be found.
My first try was to copy the old header and lib files of VS6 and add the
directories in my project settings. But I get now this error msg:



error LNK2019: unresolved external symbol _main referenced in function
_mainCRTStartup



So can somebody please tell me if it is first of all possible to link such
old libraries with in a managed C++ project or even in an unmanaged C++
library project of VS2003? If so, what could be the best way to do it?
Or, what compiler settings have I to set to get rid of the error?



Thanks for any help!!



Cheers

Thorsten
 
B

Bruno van Dooren

In the header files of the third party lib I can see that <fstream.h> is
used and if I include this header file I get an error that fstream.h
cannot be found.
My first try was to copy the old header and lib files of VS6 and add the
directories in my project settings. But I get now this error msg:

Try including <fstream> instead of fstream.h.

--

Kind regards,
Bruno van Dooren
(e-mail address removed)
Remove only "_nos_pam"
 

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