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 » lib files for Visual C++ and compiler switches

Post new topic  Reply to topic
 lib files for Visual C++ and compiler switches « View previous topic :: View next topic » 
Author Message
sideshow
PostPosted: Wed Jun 26, 2002 6:38 am    Post subject: lib files for Visual C++ and compiler switches Reply with quote

Newbie

Joined: 25 Jun 2002
Posts: 4

Is there any particular .lib files that need to be added to a MSVC project in order to execute a program without receiving a 2058 error?

Or are there any special compiler directives I should be using?..

Thanks...
Back to top
View user's profile Send private message
mrlinux
PostPosted: Wed Jun 26, 2002 7:01 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

How does your program obtain the queue manager name ???
if from a command line option then you need to goto the project/settings
and set the command line
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
sideshow
PostPosted: Wed Jun 26, 2002 7:57 am    Post subject: lib files for Visual C++ and compiler switches Reply with quote

Newbie

Joined: 25 Jun 2002
Posts: 4

The queue manager is passed as a parameter from the command line. It is after the execution of the program with the queue manager name as a parameter when I received the 2058.

Where in the settings do you mean to set the command line?.. I'm not sure I know what your suggestion.

Thanks for the help.
Back to top
View user's profile Send private message
mrlinux
PostPosted: Wed Jun 26, 2002 8:11 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

Well I have to reinstall visual c++, this from memory there is a pull down
called Project and under that there is a selection called Settings under
one of the tabs is a place for command line arguments you need to set that as you would if you were running the program from the command line, I will have Visual C++ installed in an hour or so, Just got a new system and of course they dont load all the stuff you need.
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
jhalstead
PostPosted: Wed Jun 26, 2002 8:22 am    Post subject: Reply with quote

Master

Joined: 16 Aug 2001
Posts: 258
Location: London

Could be off the mark, however if your getting 2058 errors this implies the code has compiled and linked to the relevant mqm.lib already doesn't it? If so I'd take a look at your code.

When I compile a program using the MSVC command line compilier I use the following.

cl /nologo /W3 /GX /O2 /D "WIN32" /D"NDEBUG" /D "_CONSOLE" [sourcefile.c] /YX /c

link kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib mqm.lib /nologo /subsystem:console /incremental:no ewsmqin.obj


Good Luck
Jamie
Back to top
View user's profile Send private message Send e-mail
mrlinux
PostPosted: Wed Jun 26, 2002 8:39 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

Iam assuming you are trying to execute it in the MSVC enviroment, if not
then disregard my previous messages.

A 2058 indicates that your program connected to a MQSeries listener process and the queue manager name did not match the name of the queue manager the listener process is attached to.
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
sideshow
PostPosted: Thu Jun 27, 2002 8:41 am    Post subject: Reply with quote

Newbie

Joined: 25 Jun 2002
Posts: 4

Actually after the program was compiled and linked, I was executing it from the command line passing the queue as a parameter, this is where the 2058 occurs.

I will try to set the command line parameters from settings and execute in the MSVC envrionment and see if that makes a difference.

Thanks
Back to top
View user's profile Send private message
mrlinux
PostPosted: Thu Jun 27, 2002 10:49 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

how about the queue manager name ???? are you not specifing it ???
the 2058 is an error related to the queue manager name
_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » lib files for Visual C++ and compiler switches
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.