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 » MQ using C

Post new topic  Reply to topic Goto page Previous  1, 2
 MQ using C « View previous topic :: View next topic » 
Author Message
jefflowrey
PostPosted: Tue May 16, 2006 3:30 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Is c:\program files\WebSphere MQ\bin\ on the PATH?

Also, don't take this personally, but please don't PM me with follow-ups from public threads, or stuff you haven't yet posted publicly. I'm not here to provide individual help to specific people in private.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue May 16, 2006 3:38 pm    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

If you are using imqb23vn.lib imqs23vn.lib as mvic suggest's (and for c++ see this link:
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzal.doc/winc.htm
)
then you shouldn't be using mqm.lib:


Quote:
Linking...
C:\Program Files\IBM\WebSphere MQ\Tools\Lib\MQM.LIB : fatal error LNK1107: invalid or corrupt file: cannot read at 0x9C

_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
jags1891
PostPosted: Wed May 17, 2006 11:21 am    Post subject: hi Reply with quote

Apprentice

Joined: 15 May 2006
Posts: 32

i did everything sameway but its giving different error now


------ Rebuild All started: Project: MQM, Configuration: Debug Win32 ------
Deleting intermediate and output files for project 'MQM', configuration 'Debug|Win32'
Compiling...
stdafx.cpp
Compiling...
MQM.cpp
c:\mq_c_c_program\mqm\mqm\mqm.cpp(114) : warning C4996: 'strcpy' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy'
Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
c:\mq_c_c_program\mqm\mqm\mqm.cpp(132) : warning C4996: 'strncpy' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\string.h(156) : see declaration of 'strncpy'
Message: 'This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
c:\mq_c_c_program\mqm\mqm\mqm.cpp(137) : warning C4996: 'strncpy' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\string.h(156) : see declaration of 'strncpy'
Message: 'This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
c:\mq_c_c_program\mqm\mqm\mqm.cpp(143) : warning C4996: 'strncpy' was declared deprecated
c:\program files\microsoft visual studio 8\vc\include\string.h(156) : see declaration of 'strncpy'
Message: 'This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
Compiling manifest to resources...
Linking...
LINK : C:\MQ_C_C_Program\MQM\Debug\MQM.exe not found or not built by the last incremental link; performing full link
Embedding manifest...
Project : error PRJ0003 : Error spawning 'cmd.exe'.
Build log was saved at "file://c:\MQ_C_C_Program\MQM\MQM\Debug\BuildLog.htm"
MQM - 1 error(s), 4 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
Back to top
View user's profile Send private message
mvic
PostPosted: Wed May 17, 2006 10:14 pm    Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

wschutz wrote:
...then you shouldn't be using mqm.lib

It will be necessary to link with mqm.lib directly if (and only if) the MQI is accessed from C somewhere in the program's .obj files. Therefore there are cases where you'd need to link a C++ program with 3 libs: ie. the 2 C++ libs and mqm.lib. (I don't know whether this applies to jags1891's case). My previous post(s) didn't make that clear, sorry.
Back to top
View user's profile Send private message
mvic
PostPosted: Wed May 17, 2006 10:19 pm    Post subject: Re: hi Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

jags1891 wrote:
Project : error PRJ0003 : Error spawning 'cmd.exe'

It looks as if the build completed (with warnings) but a post-build step failed to run. Look within the settings of the Visual Studio project to find what post-build steps are configured. Maybe they need to be configured differently for this machine, or possibly removed altogether - but this is a matter for your project team leader I think.
Back to top
View user's profile Send private message
fschofer
PostPosted: Thu May 18, 2006 12:09 am    Post subject: Reply with quote

Knight

Joined: 02 Jul 2001
Posts: 524
Location: Mainz, Germany

Hi,

have you tried compiling a simple MQ program like amqsput
=>
C:\Program Files\IBM\WebSphere MQ\Tools\c\Samples\amqsput0.c

This would show you if it is possible or not to compile MQ programs at all.

Greetings
Frank
Back to top
View user's profile Send private message Send e-mail
jags1891
PostPosted: Thu May 18, 2006 6:14 am    Post subject: Reply with quote

Apprentice

Joined: 15 May 2006
Posts: 32

hi now the program worked, All that I did was downloded amqzsaic.dll and it solved the problem, thanks everyone
Back to top
View user's profile Send private message
ydsk
PostPosted: Tue Feb 20, 2007 11:15 pm    Post subject: Reply with quote

Chevalier

Joined: 23 May 2005
Posts: 410

I know this is an old post.
but i am facing a similar problem.

How did downloading amqzsaic.dll olve the problem ? Can someone pls explain ?

The file shold already be there in MQ\bin directory.

thnks.
ydsk.
Back to top
View user's profile Send private message
run
PostPosted: Thu Apr 24, 2008 10:13 am    Post subject: Reply with quote

Apprentice

Joined: 14 May 2007
Posts: 45
Location: Newyork, USA

Thats probably getting the .DLL file from the bin folder of the CD and dropping in the bin folder of your system.
Back to top
View user's profile Send private message
EddieA
PostPosted: Thu Apr 24, 2008 10:23 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

run. Why are you replying to a year old post that asked about a 2 year old problem.

Cheers.
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » General IBM MQ Support » MQ using C
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.