CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2009
    Posts
    2

    use C project with c++

    Hi all!

    I would want know if exist a way to use an souce code library write in C with an c++ project.

    I have to decode an .grib (grib2) file. I found more valid libraries, but they are all write in C and my project is in C++. There is a way to use it in my code, or i have to build new decoder?

    Thank you for any answer.

    Marco

  2. #2
    Lindley is offline Elite Member Power Poster
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    10,895

    Re: use C project with c++

    Should work fine so long as the routines are marked as extern "C".

  3. #3
    Join Date
    Sep 2009
    Posts
    2

    Re: use C project with c++

    I'll try add "extern" to header.

    Thank you very much, i'm quite new of c++

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

Featured