Problem when trying to import C code into C++
I'm trying to make use of this library (http://www.sintef.no/upload/IKT/9011...eg_1.0_gpl.tgz) in a C++ library. Unfortunately C and C++ aren't languages I'm overly familiar with. I just want to get the code running enough so that I can see how it works and convert it to VB .NET.
I load the C source code into Visual Studio and the problems begin. When I try to compile the project, I get errors like this:
Quote:
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\cerrno(18): error C2143: syntax error : missing '{' before ':'
This confuses me because the error seems to be occuring in code that comes with Visual Studio.
Any ideas please?
Re: Problem when trying to import C code into C++
Hey.
I don't know if this is still the case, but I don't think anyone will download the zip file, because of an incident that happened a few years ago.
Instead can you please post (At least some) of the code up and we will try to help you figure out what is wrong.
Are you sure that this code works in a C compiler?
1 Attachment(s)
Re: Problem when trying to import C code into C++
Here's one of the C files. I don't really have a compiler other than Visual Studio 2003 to see if it compiles ok. (Well, I have a copy of DJGPP but I'm pretty rusty with using it).