Devel::CheckLib offers a standard way to do
this type of check.

--Chris

On 12/21/2011 6:26 AM, Sisyphus wrote:

----- Original Message ----- From: "Nicholas Clark"

If I understand this correctly then such a compiler couldn't compile:

int main() {
return 0;
}

with a "default" command line.

Oh, yeah ... hadn't thought of that. (Far too simple ;-)

So is a robust solution to try to compile and run the above, and if one
can't, to warn/bail out/something?

I'm wondering if it's even necessary to *build* the executable. Maybe
just *compile* the (existing) code instead - which won't need to link to
anything ?

Cheers,
Rob

Reply via email to