Well IBM confirmed the library incompatibility and the support centre has
put a request for a gcc version since it is so wide spread... Not sure if I
hold my breath or start porting my requirements to a "C" version ?


Sid


-----Original Message-----
From: Tibor [mailto:[EMAIL PROTECTED]
Sent: Friday, 8 October 2004 5:02 PM
To: [EMAIL PROTECTED]
Subject: Re: Compiling C++ MQ apps on HPUX - need help !


> So, if you are using GNU compilers, you are restricted to c code only.
> If you want C++, you will have to use a HP compiler.

Other way to rewrite the OO model for MQ in GNU environment. I've already
seen it because one of our supplier made this and works fine.

It is a bigger effort, of course - mainly in multithreaded environment.

HTH,

Tibor

----

> Hi Sid,

> I haven't checked the situation for HP/UX, but on Solaris you cannot
> use the GNU C++ compiler with MQSeries. I am guessing, but I think
> that g++ is the GNU c++ compiler, not a HP provided one.

> C code works fine with gcc (even though it is not supported) because
> the library formats are compatible between gcc and the supported
> compilers.

> When you get into C++, the module names get munged in wierd ways, and
> the different compilers do this in different ways. IBM have to ship a
> separate library for each C++ compiler that is going to be supported,
> and the library has to be compiled by the target compiler. At MQ5.2
> there were actually separate libraries for the v4 and v5 SunWS
> compilers because of this issue.

> For this reason, they tend to only support the vendor provided
> compilers on unix systems.

> So, if you are using GNU compilers, you are restricted to c code only.
> If you want C++, you will have to use a HP compiler. Of course, if I
> have guessed wrong and you are already using the HP compiler, then I
> have no idea what your problem is.

> Regards,

> Neil Casey
> National Australia Bank
> Southern Star Technology
> WebSphere MQ Support
> 1/122 Lewis Rd Wantirna South
> office. +61 3 9886 2375 (x82375)
> mobile. +61 414 615 334



>              [EMAIL PROTECTED]
>              .AU
>              Sent by: MQSeries                                    To
>              List                      [EMAIL PROTECTED]
>              <[EMAIL PROTECTED]                                    cc
>              n.AC.AT>
>                                                                   Subject
>                                        Compiling C++ MQ apps on HPUX -
>              08/10/2004 11:42          need help !


>              Please respond to
>                MQSeries List
>              <[EMAIL PROTECTED]
>                  n.AC.AT>






> G'Day all,

> I am trying to build some MQ apps in C++ on HPUX, and cannot get
> anything to compile.  I can compile normal "C" MQ apps with no
> problems, so all the libraries are present and work fine.

> I am linking -limqi23ah and -lmqic libraries into the application but
> get the following errors, can anyone shed some light ?



>         g++ main.cpp -omain  -L/opt/mqm/lib -limqi23ah -lmqic

> /usr/ccs/bin/ld: Unsatisfied symbols:

>    ImqCac::useEmptyBuffer(char const*, unsigned long)(first referenced
> in /var/t
> mp//cc3JlOPd.o) (code)
>    ImqMgr::~ImqMgr [in-charge]()(first referenced in
> /var/tmp//cc3JlOPd.o) (code
> )
>    ImqGmo3::~ImqGmo3 [in-charge]()(first referenced in
> /var/tmp//cc3JlOPd.o)
> (co
> de)
>    ImqMsg::ImqMsg[in-charge]()(first referenced in
> /var/tmp//cc3JlOPd.o)
> (code)
>    ImqGmo3::ImqGmo3[in-charge]()(first referenced in /var/tmp//cc3JlOPd.o)
> (code
> )
>    ImqQue::ImqQue[in-charge]()(first referenced in /var/tmp//cc3JlOPd.o)
> (code)
>    ImqObj::setConnectionReference(ImqMgr*)     (first referenced in
> /var/tmp//cc
> 3JlOPd.o) (code)
>    ImqObj::open()    (first referenced in /var/tmp//cc3JlOPd.o) (code)
>    ImqMgr::disconnect()     (first referenced in /var/tmp//cc3JlOPd.o)
> (code)
>    ImqMgr::connect()    (first referenced in /var/tmp//cc3JlOPd.o) (code)
>    ImqCac::dataLength() const(first referenced in /var/tmp//cc3JlOPd.o)
> (code)
>    ImqMtr::setCorrelationId(unsigned char const*)(first referenced in
> /var/tmp//
> cc3JlOPd.o) (code)
>    ImqMgr::ImqMgr[in-charge]()(first referenced in /var/tmp//cc3JlOPd.o)
> (code)
>    ImqMsg::formatIs(char const*) const(first referenced in
> /var/tmp//cc3JlOPd.o)
>  (code)
>    ImqQue::get(ImqMsg&, ImqGmo3&)   (first referenced in
> /var/tmp//cc3JlOPd.o) (
> code)
>    ImqMtr::setMessageId(unsigned char const*)(first referenced in
> /var/tmp//cc3J
> lOPd.o) (code)
>    ImqObj::close()    (first referenced in /var/tmp//cc3JlOPd.o) (code)
>    ImqMsg::~ImqMsg [in-charge]()(first referenced in /var/tmp//cc3JlOPd.o)
> (code
> )
>    CMQSupport::CMQSupport[in-charge]()(first referenced in
> /var/tmp//cc3JlOPd.o)
>  (code)
>    ImqQue::~ImqQue [in-charge]()(first referenced in /var/tmp//cc3JlOPd.o)
> (code
> )
>    ImqObj::setName(char const*)(first referenced in /var/tmp//cc3JlOPd.o)
> (code)

>    ImqObj::setOpenOptions(long) (first referenced in
> /var/tmp//cc3JlOPd.o) (code
> )
>    CTest::CTest[in-charge]()(first referenced in /var/tmp//cc3JlOPd.o)
> (code)
> collect2: ld returned 1 exit status
> *** Error exit code 1

> Any help appreciated.

> Sid Young

> Instructions for managing your mailing list subscription are provided
> in the Listserv General Users Guide available at http://www.lsoft.com
> Archive: http://vm.akh-wien.ac.at/MQSeries.archive

> Instructions for managing your mailing list subscription are provided
> in the Listserv General Users Guide available at http://www.lsoft.com
> Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in the
Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Reply via email to