Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linking Cobol and MQ series

Status
Not open for further replies.

balachandar

Programmer
Apr 16, 2001
88
CA
HI friends,
I am trying to execute the cobol sample programs from IBM.
After including the copybooks , the compilation went through .however in linking I am getting the error that
unresolved external symbol _mqput@32
unresolved external symbol _mqdisc@12
unresolved external symbol _mqclose@20
unresolved external symbol _mqopen@24
unresolved external symbol _mqconn@16

this I am getting even after including the library files
suugested by IBM.
Can any one help me fix this error
thanks and regards
balachandar ganesan
 
Can you be more specific on what library files you included in your link step? Also can you tell us what link options you specified?
 
HI
Now we have crossed this stpe after linking with
MQIccb32.lib and some other library files suggested in the manual for linking.
Now the .exe file has been created but when executed it gives the error
"can not find MQCONN in the directory". how to fix this error.

The code
Call "MQCONN" using the parameter fields.
we also tried
Call 'MQCONN' using the parameter fields.

any hints, tips suggestions are welcome
regards
balachandar


 
balachandar,

I am having the same problem with MQCONN call (file not found). Did you solve your problem? If so, how? If not, can someone please help us?

Thanks,


Lude
 
Hey! I fixed my problem. cobol.dir in the cobol32/lbr directory had the compile parameter LITLINK "2". I took off the "2" and the MQCONN worked fine. LITLINK "2" is only intended to provide compatibility to 16-bit cobol. Apparently, it messes up the calls in 32-bit systems.

Lude
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top