|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
newbie 'c' programmer |
« View previous topic :: View next topic » |
Author |
Message
|
dcsquard |
Posted: Wed Nov 27, 2002 9:26 am Post subject: newbie 'c' programmer |
|
|
Newbie
Joined: 27 Nov 2002 Posts: 1 Location: Medford, OR
|
I am an experienced MQSeries administrator. But, I am a newbie "C"
programmer and I don't have any experience with AIX operating system.
I am trying to compile and link a sample program found in the
/usr/mqm/samp directory. Can you direct me to someone or somewhere I can get assistance?
ld: 0711-318 ERROR: Undefined symbols were found.
The following symbols are in error:
Symbol Inpndx TY CL Source-File(Object-File) OR Import-File{Shared-object}
RLD: Address Section Rld-type Referencing Symbol
----------------------------------------------------------------------------------------------
.MQCONN [64] ER PR amqsprma.c(amqsprma.o)
00000d14 .text R_RBR [12] .main
Thank you,
Doug
-- -- -- Update -- --
Thanks for the information - and I do have libmqm.a in /usr/mqm/lib but I don't know what that gets me. I know that I need to link to it but I am not sure how to include it when I link. Does this make sense? It sure is out in left field to me.
Thanks Doug
Last edited by dcsquard on Wed Nov 27, 2002 12:14 pm; edited 1 time in total |
|
Back to top |
|
 |
Bill57 |
Posted: Wed Nov 27, 2002 10:35 am Post subject: |
|
|
Apprentice
Joined: 26 Jul 2002 Posts: 35 Location: Atlanta, GA
|
If you want to compile the application to connect as a client, you link it with the mqic32.lib library, for a server connection, link using mqm.lib. If your using the sample code, the proper MQ "dot h" files will be in the code allready (look for something called cmqc.h.
How you actually link to a library will depend to some extent on what compiler you are using. Check the documentation for your compiler for details.
Hope this helps _________________ Bill Anderson
MQSeries Developer |
|
Back to top |
|
 |
clindsey |
Posted: Wed Nov 27, 2002 11:50 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
Pardon me for jumping in, but to clarify one point....
On aix, the client lib is libmqic.a and the server lib is
libmqm. If your program is multi-threaded, use libmqic_r.a and libmqm_r.a
Charlie |
|
Back to top |
|
 |
Bill57 |
Posted: Thu Nov 28, 2002 6:06 am Post subject: |
|
|
Apprentice
Joined: 26 Jul 2002 Posts: 35 Location: Atlanta, GA
|
Oooops, Charlie is absoluty correct about the libraries to link with in AIX. Ive been working with win200 for a year or so, and it't contaminated my brain!
Thanks for pointing out the error charlie _________________ Bill Anderson
MQSeries Developer |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|