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

    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.


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

    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

    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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.