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 » General IBM MQ Support » newbie 'c' programmer

Post new topic  Reply to topic
 newbie 'c' programmer « View previous topic :: View next topic » 
Author Message
dcsquard
PostPosted: Wed Nov 27, 2002 9:26 am    Post subject: newbie 'c' programmer Reply with quote

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
View user's profile Send private message
Bill57
PostPosted: Wed Nov 27, 2002 10:35 am    Post subject: Reply with quote

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
View user's profile Send private message
clindsey
PostPosted: Wed Nov 27, 2002 11:50 am    Post subject: Reply with quote

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
View user's profile Send private message
Bill57
PostPosted: Thu Nov 28, 2002 6:06 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » newbie 'c' programmer
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.