On Wed, Dec 21, 2011 at 11:46:22AM +1100, Sisyphus wrote: > > ----- Original Message ----- > From: "David Oswald" <daosw...@gmail.com> > To: <inline@perl.org> > Sent: Tuesday, December 20, 2011 3:55 PM > Subject: Inline::CPP Namespaces.
> One thing I overlooked. > With one of the x64 Microsoft compilers that I have (namely, the one that > ActiveState uses to build their x64 ActivePerl), it's necessary to link to > bufferoverflowU.lib to build *any* executable. > I'll try and come up with a solution to this - haven't succeeded yet. (MS > compilers can be absolute shit to work with, and I try to avoid using them > for that reason.) If I understand this correctly then such a compiler couldn't compile: int main() { return 0; } with a "default" command line. So is a robust solution to try to compile and run the above, and if one can't, to warn/bail out/something? (and for extra paranoia, also compile the variant with return 1; and verify that it has a different exit code) Nicholas Clark