|
-
September 1st, 2009, 03:01 PM
#1
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
-
September 1st, 2009, 03:02 PM
#2
Re: use C project with c++
Should work fine so long as the routines are marked as extern "C".
-
September 1st, 2009, 03:30 PM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|