bug-commoncpp
[Top][All Lists]
Advanced

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

Re: Successfully compiled 1.3.1 on AIX 5.2 /w Visual Age C++ 6.0 after s


From: David Sugar
Subject: Re: Successfully compiled 1.3.1 on AIX 5.2 /w Visual Age C++ 6.0 after some tweaking
Date: Thu, 27 Jan 2005 15:12:45 -0500
User-agent: Mozilla Thunderbird 1.0 (Macintosh/20041206)

True...looks like the only other place its needed is in string.h.  Done.

address@hidden wrote:
In misc.h the pragma pack is wrapped with "#if defined(__GNUC__) || 
!defined(__hpux)" but it isn't in cc++/string.h.  The easiest fix would be to wrap 
it also.

Ron

-----Original Message-----
From: David Sugar [mailto:address@hidden
Sent: Thursday, January 27, 2005 2:54 PM
To: Horrell, Ronald (Card Services)
Cc: address@hidden
Subject: Re: Successfully compiled 1.3.1 on AIX 5.2 /w Visual Age C++
6.0 after some tweaking


I should add we need a reliablle define to test for VA compiler. I believe we currently use an _AIX macro to detect and select some aix specific things, but I would not want to apply that macro check alone as some of these changes would break using gcc on aix. The behavior of pragma pack(unpack), for example, is specific to the VA compiler.

address@hidden wrote:

Hi All,
        I was finally able to successfully compile version 1.3.1 on AIX 5.2 /w 
Visual Age C++ after some tweaking.

System Details:

  Compiler: VisualAge C++ Compiler Version 6.0.0.5
  OS: AIX 5.2.0.0

C/C++ Flags: "-qcpluscmt" or "-+" Allows C++ comments "//" in C files. "-qlanglvl=redefmac" Allows macros to be redefined without #undef "_THREAD_SAFE"

configure Flags:
  "--enable-static --disable-shared": Personal preference
  "--without-exceptions": Needed due to use of "dynamic_cast without RTTI" 
error.

config.h:
  HAVE_SYS_LIBCSYS_H: Had to be commented out due to errors with memcopy 
declarations.

libtool:
  "${CC/${host}-}": "bad substitution error" (lines 904 and 1297) had to 
comment out check.


With these changes it compiles and runs successfully.

Note:
  The VisualAge C++ Compiler doesn't like "#pragma pack()" and gives numerous warning 
messages. With this compiler you would need to do "#pragma pack(nopack)" instead.

Thanks,
Ron Horrell


**********************************************************************
This transmission may contain information that is privileged, confidential 
and/or exempt from disclosure under applicable law. If you are not the intended 
recipient, you are hereby notified that any disclosure, copying, distribution, 
or use of the information contained herein (including any reliance thereon) is 
STRICTLY PROHIBITED. If you received this transmission in error, please 
immediately contact the sender and destroy the material in its entirety, 
whether in electronic or hard copy format. Thank you
**********************************************************************



_______________________________________________
Bug-commoncpp mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-commoncpp







reply via email to

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