Skip Menu |

This queue is for tickets about the Devel-CheckLib CPAN distribution.

Report information
The Basics
Id: 59518
Status: open
Priority: 0/
Queue: Devel-CheckLib

People
Owner: Nobody in particular
Requestors: justincase [...] yopmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Support C++
It seems natural to also support C++ libraries.
From: blue [...] thisisnotmyrealemail.com
On Sun Jul 18 22:11:49 2010, justincase wrote: Show quoted text
> It seems natural to also support C++ libraries.
+1. maybe ExtUtils::CppGuess can be used for this.
+1 for me as well. Here is how I am doing this in the meantime: ----- use ExtUtils::CppGuess; use Devel::CheckLib; my $guess = ExtUtils::CppGuess->new; my %mb_opts = $guess->module_build_options; # even though not using Module::Build ... check_lib_or_exit( lib => 'mylibname', header => 'mylibheader.h', ccflags => $mb_opts{extra_compiler_flags}, ldflags => $mb_opts{extra_linker_flags} ...); ----- This seems to work ok. Alternatively you can use $guess->_get_cflags() and $guess->_get_lflags() to get the compiler/linker flags. However since those start with an underscore it seems they are not meant to be used outside of EU::CppGuess. Perhaps the author of EU::CppGuess would be willing rename those as get_cflags() and get_lflags(). -- Regards, Michael Schout