Author |
Message
|
ryzor |
Posted: Tue Aug 31, 2004 10:16 pm Post subject: which compiler to use for my modified amqsput0 [win2000] |
|
|
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 |
|
 |
kirani |
Posted: Tue Aug 31, 2004 10:41 pm Post subject: |
|
|
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 |
|
 |
ryzor |
Posted: Wed Sep 01, 2004 1:02 am Post subject: |
|
|
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 |
|
 |
Michael Dag |
Posted: Wed Sep 01, 2004 2:39 am Post subject: Re: which compiler to use for my modified amqsput0 [win2000] |
|
|
 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 |
|
 |
tillywern |
Posted: Thu Sep 02, 2004 10:32 am Post subject: |
|
|
 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 |
|
 |
ryzor |
Posted: Mon Sep 06, 2004 2:04 am Post subject: |
|
|
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 |
|
 |
RogerLacroix |
Posted: Mon Sep 06, 2004 11:47 am Post subject: |
|
|
 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 |
|
 |
|