| Author | 
		  Message
		 | 
		
		  | arasokan | 
		  
		    
			  
				 Posted: Fri Jan 07, 2005 6:13 am    Post subject: Linking mqm.lib for C Programming | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Michael Dag | 
		  
		    
			  
				 Posted: Fri Jan 07, 2005 7:57 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam) 
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Fri Jan 07, 2005 8:14 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | RogerLacroix | 
		  
		    
			  
				 Posted: Fri Jan 07, 2005 9:16 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 15 May 2001 Posts: 3265 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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | arasokan | 
		  
		    
			  
				 Posted: Sun Jan 09, 2005 9:26 pm    Post subject: Still trying... | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | arasokan | 
		  
		    
			  
				 Posted: Mon Jan 10, 2005 2:59 am    Post subject: Atlast...done. | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |