in reply to Wrapping a C library
As a tease for Inline::C, the following is from the start of the library's documentation. It gets as far as telling me the library doesn't recognize the file type. In a quick search I couldn't find a compatible data file for download.
#!/usr/bin/perl # use Inline C => DATA => INC => '-I/usr/local/trmm/GVBOX/include' => LIBS => '-L/usr/local/trmm/GVBOX/lib -lrsl'; my_test(); __END__ __C__ #include "rsl.h" int my_test() { Radar *radar; radar = RSL_anyformat_to_radar("radar.dat", NULL); RSL_load_refl_color_table(); RSL_volume_to_gif(radar->v[DZ_INDEX], "dz_sweep", 400, 400, 200.0) +; return(0); }
If someone posts a link to a compatible data file I would poke at it some more.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Wrapping a C library
by deadpickle (Pilgrim) on Mar 24, 2009 at 06:20 UTC | |
by syphilis (Archbishop) on Mar 24, 2009 at 08:58 UTC | |
by ig (Vicar) on Mar 24, 2009 at 10:01 UTC | |
by ig (Vicar) on Mar 24, 2009 at 23:16 UTC | |
by deadpickle (Pilgrim) on Mar 25, 2009 at 00:00 UTC |