[OSRS-PROJ] C++ friendly header file?

Paul Jensen pdjensen at agileimage.com
Thu Mar 30 11:45:52 EST 2000


I've written a C++ wrapper around Proj4 for my own use and simply put the extern
"C" { ... } code in the wrapper header file around my #include "projects.h".

I also have a few bug fixes that I fed back to Gerald Evenden a long time ago,
but I'll try and do some checking against the current base when I get time.

It's been a very robust library, even in multi-threaded applications. Thanks,
Gerald!

	Paul


Rick Brownrigg wrote:

> As I typically use C++, I've found that I have problems linking my
> code.  My quick-N-dirty solution is to patch the "projects.h" header
> file, surround everything by
> 
>     #ifdef __cplusplus
>         #extern "C" {
>     endif
>     ...
>     #ifdef __cplusplus
>         }
>     #endif
> 
> directives.  This is easy enough to do, but I inevitably forget for new
> installations.  There may also be a cleaner approach, and I admit I
> haven't investigated thoroughly.
> 
> Anyone else see this?  Have better solutions?  More to the point, could
> we get whatever prefered solution incorporated into the next release?

-- 
Paul Jensen	Agile Image Movers	http://agileimage.com
----------------------------------------
OSRS PRoject PROJ Discussion List
To Subscribe: send a message to majordomo at remotesensing.org with 'subscribe osrs-proj' in the body
To Unsubscribe: send a message to majordomo at remotesensing.org with 'unsubscribe osrs-proj' in the body
To Report Problems: send a message to owner-osrs-proj at remotesensing.org



More information about the Proj mailing list