|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
cmqc.h error!! |
« View previous topic :: View next topic » |
Author |
Message
|
lam |
Posted: Tue Nov 21, 2006 8:07 am Post subject: cmqc.h error!! |
|
|
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 |
|
 |
jefflowrey |
Posted: Tue Nov 21, 2006 8:13 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
xxx |
Posted: Tue Nov 21, 2006 8:53 pm Post subject: |
|
|
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 |
|
 |
RogerLacroix |
Posted: Tue Nov 21, 2006 10:03 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|