|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Importing C sub structure in Message Set |
« View previous topic :: View next topic » |
Author |
Message
|
fbaril3 |
Posted: Thu Sep 12, 2002 3:51 am Post subject: Importing C sub structure in Message Set |
|
|
Acolyte
Joined: 14 Jun 2002 Posts: 53
|
Hello,
I want to import a C structure in a message set with the control center.
My structure called "test" has got a sub structure called "ex" in it.
The file I try to import is the following :
struct ex {
char a[5];
char b[3]
} ex1;
struct test {
char c[6];
struct ex d;
} test1;
I do not succeed in importing the C structure with a sub structure.
In the log, I have the following message :
Importing C header file
[error 1] line 5: syntax error
actual: RC } expecting: COMMA, SEMICOLON
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:
Does someone know how to import a C structure who has got in it a sub structure (with a file example if possible ...) ?
THANKS. |
|
Back to top |
|
 |
Tibor |
Posted: Thu Sep 12, 2002 6:18 am Post subject: Re: Importing C sub structure in Message Set |
|
|
 Grand Master
Joined: 20 May 2001 Posts: 1033 Location: Hungary
|
fabril,
You are missing a semicolon after variable b! Try this sample:
Code: |
struct ex {
char a[5];
char b[3];
} ex1;
|
Moreover, when I didn't put an <Enter> at end, I got an error message: No newline at end of file
Have to know, MQSI has a rigorous import process (C and COBOL), so any small mistyping can give a lot of errors. Therefore checking the 'Report only' is highly recommended. |
|
Back to top |
|
 |
fbaril3 |
Posted: Fri Sep 13, 2002 12:15 am Post subject: |
|
|
Acolyte
Joined: 14 Jun 2002 Posts: 53
|
Indeed, now it works well !
THANKS. |
|
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
|
|
|
|