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 » IBM MQ API Support » Error linkink C program

Post new topic  Reply to topic
 Error linkink C program « View previous topic :: View next topic » 
Author Message
narendra
PostPosted: Mon Jul 08, 2002 6:32 am    Post subject: Error linkink C program Reply with quote

Apprentice

Joined: 04 Jun 2002
Posts: 26

I am trying to port a support pac in 'C' to NT. It compiles fine but when i try to link the program i get the following error.

--------------------Configuration: EVMON - Win32 Debug--------------------
Linking...
EVMON.OBJ : error LNK2001: unresolved external symbol _MQDISC
EVMON.OBJ : error LNK2001: unresolved external symbol _MQCLOSE
EVMON.OBJ : error LNK2001: unresolved external symbol _MQGET
EVMON.OBJ : error LNK2001: unresolved external symbol _MQOPEN
EVMON.OBJ : error LNK2001: unresolved external symbol _MQCONN
Debug/EVMON.exe : fatal error LNK1120: 5 unresolved externals
Error executing link.exe.

Please let me know, if am missing any thing in the path

Thanks in advance

Naren
Back to top
View user's profile Send private message
bduncan
PostPosted: Mon Jul 08, 2002 7:29 am    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

To be able to tell you if you are missing anything in the path, we probably need to see your path parameters
_________________
Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator
Back to top
View user's profile Send private message Visit poster's website AIM Address
nimconsult
PostPosted: Mon Jul 08, 2002 10:31 pm    Post subject: Reply with quote

Master

Joined: 22 May 2002
Posts: 268
Location: NIMCONSULT - Belgium

You need to include mqm.lib in your link libraries.

The file is located in the "tools\lib" folder of you MQ Series installation.

If you use Visual Studio:
- Add the directory "c:\program files\mqseries\tools\lib" (may vary depending on your installation path) in the "tools / options / directories"
- Edit your project settings and add the "mqm.lib" library in the list of link libraries
_________________
Nicolas Maréchal
Senior Architect - Partner

NIMCONSULT Software Architecture Services (Belgium)
http://www.nimconsult.be
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Claudio
PostPosted: Thu Jul 11, 2002 5:49 am    Post subject: Reply with quote

Newbie

Joined: 19 Jun 2002
Posts: 2

What Compiler are you trying to use?

Claudio.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Error linkink C program
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.