Results 1 to 3 of 3

Thread: Problem when trying to import C code into C++

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2004
    Location
    Canberra, Australia
    Posts
    175

    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:

    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?
    Last edited by Holywhippet; Aug 24th, 2008 at 10:58 PM.

  2. #2
    Fanatic Member
    Join Date
    Sep 2005
    Posts
    540

    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?

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2004
    Location
    Canberra, Australia
    Posts
    175

    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).
    Attached Files Attached Files
    • File Type: c LIC.C (27.9 KB, 60 views)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width