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 » cmqc.h error!!

Post new topic  Reply to topic
 cmqc.h error!! « View previous topic :: View next topic » 
Author Message
lam
PostPosted: Tue Nov 21, 2006 8:07 am    Post subject: cmqc.h error!! Reply with quote

Acolyte

Joined: 09 Nov 2006
Posts: 50

hi,
I installed websphere MQ version 6 for windows and now I try to build a C program to get messages from the queue,and I copied all file .h witch I found in "iBM\tools\c " in my project
but I have a lot of error in cmqc.h file

parse error before "MQINT64" cmqc.h line 2287
line 2287 : typedef _int64 MQINT64;

parse error before "MQUINT64" cmqc.h line 2288

line 2288: typedef unsigned _int64 MQUINT64;

and an other errors in this file please show me what I have to do to build my programm
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Nov 21, 2006 8:13 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzal.doc/build.htm
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
xxx
PostPosted: Tue Nov 21, 2006 8:53 pm    Post subject: Reply with quote

Centurion

Joined: 13 Oct 2003
Posts: 137

I fixed this by commenting all the
typedef _int64 MQINT64, on windows MQ is still a 32 bit application and commenting 64bit typedef did the trick to me
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Tue Nov 21, 2006 10:03 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

lam wrote:
hi,
I installed websphere MQ version 6 for windows and now I try to build a C program to get messages from the queue,and I copied all file .h witch I found in "iBM\tools\c " in my project
but I have a lot of error in cmqc.h file

parse error before "MQINT64" cmqc.h line 2287
line 2287 : typedef _int64 MQINT64;

parse error before "MQUINT64" cmqc.h line 2288

line 2288: typedef unsigned _int64 MQUINT64;

and an other errors in this file please show me what I have to do to build my programm

Programming 101.
- If you are using MS Visual Studio 6 then apply the last Visual Studio SP from MS. i.e. SP6
- If you are using gcc or MinGW then the correct approach is to add the following to your code or header file:
Code:
#ifndef _int64
#define _int64 long long
#endif

This has worked for me.

xxx wrote:
I fixed this by commenting all the
typedef _int64 MQINT64, on windows MQ is still a 32 bit application and commenting 64bit typedef did the trick to me

The only problem with this is that it breaks every time you apply a FP or CSD.

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » cmqc.h error!!
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.