| Author | Message | 
		
		  | wongpcl | 
			  
				|  Posted: Thu Jan 10, 2002 1:40 am    Post subject: |   |  | 
		
		  | Novice
 
 
 Joined: 09 Jan 2002Posts: 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 |  | 
		
		  |  | 
		
		  | bmccarty | 
			  
				|  Posted: Thu Jan 10, 2002 10:19 am    Post subject: |   |  | 
		
		  | Apprentice
 
 
 Joined: 18 Dec 2001Posts: 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 |  | 
		
		  |  | 
		
		  | dgolding | 
			  
				|  Posted: Fri Jan 11, 2002 2:51 am    Post subject: |   |  | 
		
		  |  Yatiri
 
 
 Joined: 16 May 2001Posts: 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 |  | 
		
		  |  | 
		
		  | bduncan | 
			  
				|  Posted: Fri Jan 11, 2002 1:31 pm    Post subject: |   |  | 
		
		  | Padawan
 
 
 Joined: 11 Apr 2001Posts: 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 |  | 
		
		  |  | 
		
		  | RogerLacroix | 
			  
				|  Posted: Sat Jan 12, 2002 12:12 am    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 15 May 2001Posts: 3265
 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 |  | 
		
		  |  | 
		
		  | dgolding | 
			  
				|  Posted: Mon Jan 14, 2002 1:14 am    Post subject: |   |  | 
		
		  |  Yatiri
 
 
 Joined: 16 May 2001Posts: 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 |  | 
		
		  |  | 
		
		  | ycchin | 
			  
				|  Posted: Wed Jul 30, 2003 11:09 pm    Post subject: Compiling PROC |   |  | 
		
		  | Newbie
 
 
 Joined: 30 Jul 2003Posts: 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 |  | 
		
		  |  | 
		
		  | Vijay Kumar P | 
			  
				|  Posted: Fri Feb 18, 2005 1:33 am    Post subject: Library file dependencies |   |  | 
		
		  | Novice
 
 
 Joined: 24 Jan 2005Posts: 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 |  | 
		
		  |  | 
		
		  |  |