
21 Sep
2010
21 Sep
'10
11 a.m.
Small note:
Generally it is very simple to do a standard template like:
int main() { return 0; }
And it would fail if you would try to link with not-existing library, no need to specify
anything unusual. You don't need to call any function explicitly. This is the way autoconf works.
Nod, and sometimes that works, but I've also been bitten by it not working: for example when checking for a C++ library you need to be sure that it's ABI is compatible with the code you're building, so actually linking against something tangible seems to be the correct thing to do. Cheers, John.