Hello,
I know this has been discussed before: doing checks on c++ libs,
and being able to check for memberfuncs.
However, I have a more modest problem:
I want to check for simple global C++ func.
However, even if I set the language to C++, the conftest.C
is created in such a way, that the func I am looking for
is prototyped in "extern C", thereby causing the check to fail.
this:
AC_LANG_CPLUSPLUS
AC_CHECK_LIB(splinewrap, CreateCursorGeode,,,)
causes:
ld32: ERROR 33 : Unresolved text symbol "CreateCursorGeode" -- 1st referenced by
conftest.o.
Use linker option -v to see when and which objects, archives and dsos are
loaded.
ld32: INFO 152: Output file removed because of error.
configure: failed program was:
#line 3773 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char CreateCursorGeode();
int main() {
CreateCursorGeode()
; return 0; }
And I think because of the extern C thingy.
Can someone explain how to properly check for C++ global func in a lib?
Because I've searched for this info everywhere: all manuals, mail
archives, internet, etc... I couldn't find it anywhere.
Many thanks!
Bram Stolk
--
------------------------------------------------------------------------------
Bram Stolk, VR Specialist.
SARA Academic Computing Services Amsterdam, PO Box 94613, 1090 GP AMSTERDAM
email: [EMAIL PROTECTED] Phone +31-20-5923059 Fax +31-20-6683167
"I heard if you play the NT-4.0-CD backwards, you get a satanic message."
"Thats nothing, if you play it forward, it installs NT-4.0"
------------------------------------------------------------------------------