ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » C Compiler for Sun Solaris

Post new topic  Reply to topic
 C Compiler for Sun Solaris « View previous topic :: View next topic » 
Author Message
wongpcl
PostPosted: Thu Jan 10, 2002 1:40 am    Post subject: Reply with quote

Novice

Joined: 09 Jan 2002
Posts: 23

We're going to develop some MQSeries applications and channel exit. The MQSeries for Sun Solaris version is V5.2.

Acccording to the manual, Version 5.0 and Version 4.2 of the Sun Workshop C++ Compiler and the Forte C++ 6 (Sun WorkShop 6 C++) compiler are supported.

BTW, what about cpp and gcc for C/C++ program (it's GNU shareware)? does it work on MQSeries ?

Please advise.

Thanks,
Back to top
View user's profile Send private message
bmccarty
PostPosted: Thu Jan 10, 2002 10:19 am    Post subject: Reply with quote

Apprentice

Joined: 18 Dec 2001
Posts: 43

I am not positive if GNU versions are OK for MQ/Solaris...however if you don't want to pay for the Forte tools, you can still download them for free from Sun for evaluation. I think that they give you 30 days, but you probably can extend it if you sales an e-mail asking for more time.

bmccarty
Back to top
View user's profile Send private message AIM Address MSN Messenger
dgolding
PostPosted: Fri Jan 11, 2002 2:51 am    Post subject: Reply with quote

Yatiri

Joined: 16 May 2001
Posts: 668
Location: Switzerland

I'm fairly certain you CAN'T use the "gcc" compiler with MQ on Solaris - the name-mangling is different for MQ stuff (IBM use the standard Solaris C++ compiler), so when you load the mq libraries you get loads of unresolved references....
Back to top
View user's profile Send private message Visit poster's website
bduncan
PostPosted: Fri Jan 11, 2002 1:31 pm    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

I have used cc/gcc with MQSeries on Solaris, however, you do need to play with the makefiles and tweak the options to get everything to compile, otherwise, as dgolding pointed out, it won't work. I'm afraid I can't tell you off the top of my head how to do it. But someone who is very familiar with gcc and Solaris should be able to figure it out.


_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
RogerLacroix
PostPosted: Sat Jan 12, 2002 12:12 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Hi,

I have successfully used GCC on Solaris 8. Check out any of the following programs (that I wrote) for GCC makefiles for Solaris builds of MQ apps: file2msg, mmx, mrtr, etc...

They are located at:
http://www.geocities.com/capitalware/mqseries.html

later
Roger...
Back to top
View user's profile Send private message Visit poster's website
dgolding
PostPosted: Mon Jan 14, 2002 1:14 am    Post subject: Reply with quote

Yatiri

Joined: 16 May 2001
Posts: 668
Location: Switzerland

GCC will of course work for C code, as you're refering to the IBM-supplied function direct (MQOPEN, MQPUT, etc.). As I understood it, if you use the IBM-supplied MQI C++ classes in code, then using different compilers will generate different names for your objects. So, when you link the code using the C++ MQI library, it will be unable to find your object as the name will have been "mangled" according to a different set of rules. I could be totally wrong here of course - I'm not a C++ guru, I just tried to link my GCC-compiled code using the IBM MQ libraries and it didn't work, and I was given this as an explanation.



[ This Message was edited by: dgolding on 2002-01-14 01:15 ]
Back to top
View user's profile Send private message Visit poster's website
ycchin
PostPosted: Wed Jul 30, 2003 11:09 pm    Post subject: Compiling PROC Reply with quote

Newbie

Joined: 30 Jul 2003
Posts: 4

Is it possible to send me the demo_proc.mk and env_procomp.mk
because I still can't amend both files to use gcc as the compiler which
is what i have only for my sun solaris. Thank you
Back to top
View user's profile Send private message
Vijay Kumar P
PostPosted: Fri Feb 18, 2005 1:33 am    Post subject: Library file dependencies Reply with quote

Novice

Joined: 24 Jan 2005
Posts: 10

Hi,

In order to compile a basic exit program you can use cc, cpp, gcc or any compiler.

but you may also need to specify the required library files like lmqm, lmqmz..

and you will get a output file as a shared object that you need to link to MQSeries.

Regards,
Vijay.
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » C Compiler for Sun Solaris
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.