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 IndexIBM MQ API Supportwhich compiler to use for my modified amqsput0 [win2000]

Post new topicReply to topic
which compiler to use for my modified amqsput0 [win2000] View previous topic :: View next topic
Author Message
ryzor
PostPosted: Tue Aug 31, 2004 10:16 pm Post subject: which compiler to use for my modified amqsput0 [win2000] Reply with quote

Apprentice

Joined: 31 Dec 2001
Posts: 42

Hi there,

Í have modified the amqsput0 on the win 2000 mq series 5.2 environment, what compiler can i use for my c programm to work correctly - i tried using c++ builder and i get Linker Errors of ...

Undefined symbol _MQCONN referenced from .......\....OBJ
_MQOPEN
_MQGET
_MQCLOSE
_MQDISC

could this be my complile or are the other libraries exept the ones in the include directory of my sample c program that i have to copy to the compilers [ c++ builder ]'s directory?
Back to top
View user's profile Send private message Send e-mail
kirani
PostPosted: Tue Aug 31, 2004 10:41 pm Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

Setting the correct LIBPATH should do it. Also, make sure your link with mqm.lib (Server binding) or mqic32.lib (client binding) file.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
ryzor
PostPosted: Wed Sep 01, 2004 1:02 am Post subject: Reply with quote

Apprentice

Joined: 31 Dec 2001
Posts: 42

Hi Kirani,

LIBPATH is this a standard library variable in win 2000 or do i have to create this in the enviroment variable settings?, as at the moment i can't seem to find it there?

thanx for you continued assistance.
Back to top
View user's profile Send private message Send e-mail
Michael Dag
PostPosted: Wed Sep 01, 2004 2:39 am Post subject: Re: which compiler to use for my modified amqsput0 [win2000] Reply with quote

Jedi Knight

Joined: 13 Jun 2002
Posts: 2607
Location: The Netherlands (Amsterdam)

ryzor wrote:
Í have modified the amqsput0 on the win 2000 mq series 5.2 environment, what compiler can i use for my c programm to work correctly?


I have used gcc from cygwin (install cygwin, gcc comes with it) succesfully in the past.

DON'T forget to specify -nocygwin (or something like it) or else your program will not run on a windows machine without cygwin installed...
_________________
Michael



MQSystems Facebook page
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
tillywern
PostPosted: Thu Sep 02, 2004 10:32 am Post subject: Reply with quote

Centurion

Joined: 28 Jan 2003
Posts: 109
Location: Colorado

You may want to ensure that for you compiler options that cmqc.h is a directory that the compiler looks through as well.

With Visual C you put the path to mqm.lib and such as ryzor commented.

Check your compiler/linke documentation as to the locations where it pulls in such things as .h and .dll or .lib files.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
ryzor
PostPosted: Mon Sep 06, 2004 2:04 am Post subject: Reply with quote

Apprentice

Joined: 31 Dec 2001
Posts: 42

Thanx guys,

i used cygwin suggested by MichaelDag - and i managed to make my code compile cleanly

Thanx again - ryzor.
Back to top
View user's profile Send private message Send e-mail
RogerLacroix
PostPosted: Mon Sep 06, 2004 11:47 am Post subject: Reply with quote

Jedi Knight

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

Hi,

If you are not interested in all the extra features of Cygwin, then I would suggest you download and use MinGW.
http://www.mingw.org/

I use it along with Eclipse and they work very well together.

Of course, if you are more of a Microsoft-loving-guy, then you can now download Visual C++ Toolkit for free. Microsoft is now giving away their C/C++ compiler, linker, etc.. for free. (No GUI).
http://msdn.microsoft.com/visualc/vctoolkit2003/

If you are not going to be doing any cross-platform development then I would suggest that you get the Microsoft freebie.

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ API Supportwhich compiler to use for my modified amqsput0 [win2000]
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.