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 » WebSphere Message Broker (ACE) Support » Importing C sub structure in Message Set

Post new topic  Reply to topic
 Importing C sub structure in Message Set « View previous topic :: View next topic » 
Author Message
fbaril3
PostPosted: Thu Sep 12, 2002 3:51 am    Post subject: Importing C sub structure in Message Set Reply with quote

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
View user's profile Send private message
Tibor
PostPosted: Thu Sep 12, 2002 6:18 am    Post subject: Re: Importing C sub structure in Message Set Reply with quote

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
View user's profile Send private message
fbaril3
PostPosted: Fri Sep 13, 2002 12:15 am    Post subject: Reply with quote

Acolyte

Joined: 14 Jun 2002
Posts: 53

Indeed, now it works well !

THANKS.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Importing C sub structure in Message Set
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.