Author |
Message
|
MQGuy2000 |
Posted: Mon Jan 12, 2004 2:25 pm Post subject: Error while importing C structure. Help Pl. |
|
|
Centurion
Joined: 20 Jul 2003 Posts: 131
|
Hi MQSI Gurus,'
Regards to all.
I am trying to implement the basic example provided in the MQSI guide.
When I try to import the C Structure (pl. see below) I get an error in the report file.
Do we need C compiler in the class path?? is there anything that we need to set. PLEASE HELP.
requests.h
--------------
struct Request
{
char EmpNo[6];
char RequestType[6];
char OrderNo[6];
char WorkDept[3];
}
This is the error I get in the report.
Importing C header file D:\chandra\dev\data\mqsi\requests.h...
No newline at end of file
[error 1] line 7: syntax error
actual: [end of file] expecting: &, LP, POINTER, ~, struct, union, operator,
class, IDENTIFIER, IDENTIFIER
1 error found during parse.
Error: Some errors have occurred while trying to parse the file.
Please ensure the the file contains valid 'C' code only and compiles correctly
No valid C structures found in header file: D:\chandra\dev\data\mqsi\requests.h. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Jan 12, 2004 3:09 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Quote: |
No newline at end of file |
That seems pretty obvious to me.
Open the file that you are trying to import in a text editor, and add a blank line at the end of the file. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kirani |
Posted: Mon Jan 12, 2004 3:09 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
You don't need C compiler in your class path. Is your C header file correct? I mean, did you try to compile it with a C compiler? I think you are missing ; at the end. Your structure should be ..
Code: |
struct Request
{
char EmpNo[6];
char RequestType[6];
char OrderNo[6];
char WorkDept[3];
};
|
_________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
MQGuy2000 |
Posted: Mon Jan 12, 2004 3:14 pm Post subject: |
|
|
Centurion
Joined: 20 Jul 2003 Posts: 131
|
Sure. Thank You. That helped me import the C structure.
But it gives me this error. Sorry if its ABC of MQSI.
--
Warning: The Custom Wire Format Plugin is not installed and registered for the project.
No Custom Wire Format values will be set as a result
----
Do I need to install something else to use the C structure. |
|
Back to top |
|
 |
kirani |
Posted: Mon Jan 12, 2004 3:17 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
No, you don't need to install anything.
Please make sure you have CWF wire format added to your message set. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
MQGuy2000 |
Posted: Tue Jan 13, 2004 8:12 am Post subject: |
|
|
Centurion
Joined: 20 Jul 2003 Posts: 131
|
Thanks Guys for your help. I could import. Let me work on the entire message flow.
Thanks. |
|
Back to top |
|
 |
|