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 » Error while importing C structure. Help Pl.

Post new topic  Reply to topic
 Error while importing C structure. Help Pl. « View previous topic :: View next topic » 
Author Message
MQGuy2000
PostPosted: Mon Jan 12, 2004 2:25 pm    Post subject: Error while importing C structure. Help Pl. Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Mon Jan 12, 2004 3:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Mon Jan 12, 2004 3:09 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
MQGuy2000
PostPosted: Mon Jan 12, 2004 3:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Mon Jan 12, 2004 3:17 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
MQGuy2000
PostPosted: Tue Jan 13, 2004 8:12 am    Post subject: Reply with quote

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
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 » Error while importing C structure. Help Pl.
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.