use strict; use warnings; use Inline C => Config => #CLEAN_AFTER_BUILD => 0, # BUILD_NOISY => 1, # display the compilation inc => '-I/path/to/librtlsdr_headers', libs => '-L/path/to/librtsldr_library, ; use Inline C => <<'EOC'; #include void foo() { /* do something that uses librtlsdr and print out a success/fail message */ } void bar() { /* do something else that uses librtlsdr and print out a success/fail message */ } EOC foo(); bar();