[Top][All Lists]

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

HEAD and HP-UX C++ compiler

From: libtool
Subject: HEAD and HP-UX C++ compiler
Date: Wed, 19 Sep 2001 22:03:12 -0500
User-agent: Mutt/1.2.5i

>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 conftstm.o
Error 352: "", line 23 # Cannot take the address of main.
      {"main", (lt_ptr_t) &main},
  $ cat
#ifdef __cplusplus
extern "C" {

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

/* 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

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 (address@hidden)

reply via email to

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