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 Discussion » Linking mqm.lib for C Programming

Post new topic  Reply to topic
 Linking mqm.lib for C Programming « View previous topic :: View next topic » 
Author Message
arasokan
PostPosted: Fri Jan 07, 2005 6:13 am    Post subject: Linking mqm.lib for C Programming Reply with quote

Newbie

Joined: 07 Jan 2005
Posts: 3

Hi,

I am using Microsoft VC++ Toollit 2003(command line) for executing C programs. When I tried running MQ C programs it shows link error.
I have set path to mqm.lib ..still not working. It is getting compiled but not getting linked.

I am facing the same problem when I use Dev C++ to compile my program. How to link the Library file? Help me please!!!

ASHOK
Back to top
View user's profile Send private message Yahoo Messenger
Michael Dag
PostPosted: Fri Jan 07, 2005 7:57 am    Post subject: Reply with quote

Jedi Knight

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

which commandline options have you used/tried?

cl ... ?
_________________
Michael



MQSystems Facebook page
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
jefflowrey
PostPosted: Fri Jan 07, 2005 8:14 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You're probably trying to use a long path when you need to use a short path.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Fri Jan 07, 2005 9:16 am    Post subject: Reply with quote

Jedi Knight

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

Hi,

I have used long path names with both Dev C++ (really GCC under the covers) and MS Toolkit. You need to use double quotes.

Quote:
I have set path to mqm.lib ..still not working. It is getting compiled but not getting linked.

How EXACTLY are you setting the 'path'?? And please don't say 'SET PATH=...'

Have you download any of the freely available C programs that I have posted at my webs site? Because they include makefile samples for GCC.

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
arasokan
PostPosted: Sun Jan 09, 2005 9:26 pm    Post subject: Still trying... Reply with quote

Newbie

Joined: 07 Jan 2005
Posts: 3

I tried the Options

1. SET PATH = ....
2. In "Environment Variables" I set it as LIB = .....
3. In DEV C++, I added to the list of Libraries the folder containing mqm.Lib and also tried adding mqm.Lib itself.

Thanks for all your replies. Plz let me know how exactly should I have to set the path.

Ashok.
Back to top
View user's profile Send private message Yahoo Messenger
arasokan
PostPosted: Mon Jan 10, 2005 2:59 am    Post subject: Atlast...done. Reply with quote

Newbie

Joined: 07 Jan 2005
Posts: 3

Hi all,

Thanks for your replies. I am able to make it. I tried Dev C++.
I was trying to execute my program as a stand-alone, so only I was not able to. Later, I created a project and then included those libraries to that Project. It works fine.

I am a beginer, I expect a lot guidance from you.
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Linking mqm.lib for C Programming
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.