BZDEV: Blitz and aCC

From: oystein.rognes@rf.no
Date: Wed Mar 24 1999 - 09:08:28 EST


Hi all.
I have problems with blitz++ and aCC. I'm using aCC version1.15, on a HPUX
10.20.

My main problem is that when I "make lib" (no flags, for the time being) I
get the following error message:

oysteinr@odin:85> make lib
        aCC -I./.. -c ./globals.cpp
Error 43: "/usr/include/sys/time.h", line 482 # C++ does not allow
Old-style
    (non-prototype) function definitions.
    static int
    ^^^^^^^^^^
Warning 495: "/usr/include/sys/time.h", line 486 # The linkage directive is
    ignored for an object or function declared static.
    __fd_isset(__n, __p)
    ^^^^^^^^^^
Error 445: "/usr/include/sys/time.h", line 482 # Cannot recover from
earlier
    errors.
    static int
    ^^^^^^^^^^
*** Error exit code 2

Stop.
*** Error exit code 1

Stop.

Now, in the latest release notes that follwed the compiler, there was a
suggestion that this problem with the /sys/time.h may be overcomed with

   ...declaration for which HP aC++ generates an error like the following:

      Error 43: "/usr/include/sys/time.h", line 487 # C++ does not allow
      Old-style (non-prototype) function definitions.

    To workaround, whenever time.h is included by a source program, you can
    define the __STDC__ macro on your command-line, as in the following
example:

           aCC -D__STDC__

 So I do this, and icnlude the flag. But this genreates an enormous amount
of errors...

So my question is:

Is there anybody out there who has successfully installed blitz++ on HPUX?

Best regards,
Oystein Rognes

--------------------- blitz-dev list --------------------------------
* To subscribe/unsubscribe: use the handy web form at
http://oonumerics.org/blitz/lists.html



This archive was generated by hypermail 2b29 : Wed Feb 20 2002 - 04:30:09 EST