>From HEAD:
...
checking how to run the C++ preprocessor... aCC -E
checking the maximum length of command line arguments... 393217
checking command to parse /usr/ccs/bin/nm -p output from cc object...  failed
...

Problem is, with HP C++, A.03.30 (A.03.31 is the latest):

$ aCC -o conftest conftest.cc conftstm.o
Error 352: "conftest.cc", line 23 # Cannot take the address of main.
      {"main", (lt_ptr_t) &main},
                           ^^^^  
  $ cat conftest.cc
#ifdef __cplusplus
extern "C" {
#endif

extern char nm_test_var;
extern int main();
extern int nm_test_func();
#if defined (__STDC__) && __STDC__
# define lt_ptr_t void *
#else
# define lt_ptr_t char *
# define const
#endif

/* The mapping between symbol names and symbols. */
const struct {
  const char *name;
  lt_ptr_t address;
}
lt_preloaded_symbols[] =
{
  {"nm_test_var", (lt_ptr_t) &nm_test_var},
  {"main", (lt_ptr_t) &main},
  {"nm_test_func", (lt_ptr_t) &nm_test_func},
  {0, (lt_ptr_t) 0}
};

#ifdef __cplusplus
}
#endif

So, do we ignore main on HP-UX with aCC? BTW, G++ 3.0.1 failes too.
Solaris C++ (5.3) works fine.

-- 
albert chin ([EMAIL PROTECTED])

_______________________________________________
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool

Reply via email to