help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Automake


From: Marc Schellens
Subject: Automake
Date: Wed, 25 Aug 2004 18:29:30 +0900
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1

I try to check for a C++ library (ie. wxWidgets 2.5)

When I use
AC_CHECK_LIB( wx_base-2.5, wxInitialize)

the library is not found.
Investigating I found out, that the macro creates a test file:

#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 wxInitialize ();
int
main ()
{
wxInitialize ();
  ;
  return 0;
}



compiling and linking this by hand, I found that
the extern "C" is the problem here.

How can automake cope with C++ libraries (ie demangled name)

Thanks,
marc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]