Tips, compiling with HPUX C++ 
Author Message
 Tips, compiling with HPUX C++

Hi,

I had difficulty compiling Python-1.3 with HPUX C++, after recreating
my own main.C and compiling with the options,
   -DHAVE_CONFIG_H -DHAVE_PROTOTYPES -DHAVE_STDARG_PROTOTYPES

I still hit a quirk with the Py_FatalError definitions in the standard
distribution.  The header file $PYTHONHOME/Include/allobjects.h
(line 92) missed the extern "C" stuff as in;

   #ifdef __cplusplus
   extern "C" {
   #endif
     extern void Py_FatalError Py_PROTO((char *));
   #ifdef __cplusplus
   }
   #endif

Cheers,

Dan MacDonald



Fri, 05 Jun 1998 03:00:00 GMT  
 Tips, compiling with HPUX C++
        When building C++ extensions on SUN-SPARC I found that, in addition
 to setting the compilation option -DHAVE_STDARG_PROTOTYPES, I also needed to
 change statements like

extern PyObject *Py_BuildValue Py_PROTO((char *, ...));

 to

extern PyObject *Py_BuildValue Py_PROTO((char * ...));

 in the file `modsupport.h',

                                                Brian Yang



Sat, 06 Jun 1998 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Compile tips for Visual C++ 4.x

2. HPUX and ruby 1.8preview2 compile error

3. HPUX compile problems

4. compile errors w/f90 on HPUX 10.20

5. Python 2.1 compile error on HPUX

6. Compiling PHP 4.2.2 with Apache 2 from HP for HPUX 11i

7. compiling gnome-python under hpux

8. HPUX to IBM RS6000 Compiling *.F Files

9. HPUX 10.2 compiling problems

10. Can't compile TK 8.0.4 on HPUX 11.0

11. HPUX cc can't compile tclUnixTime.c

12. Q: compiling TK on HPUX V10.10

 

 
Powered by phpBB® Forum Software