Welcome! Log In Create A New Profile

Advanced

idl

Posted by Anonymous User 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Anonymous User
idl
March 27, 2006 10:06AM
Hi,I have saved the following as currency.idl using wordpad.


//currency.idl

interface Convertor
{
double convert( in double amount,
in string fromcode,
in string toCode
);
};


In the command prompt window the following happened.

C:\unisa\mico\demo\poa\ASS1>idl currency.idl
currency.idl:1: parse error before '{'

C:\unisa\mico\demo\poa\ASS1>



Why do I get this error?


Anonymous User
Re: idl
March 29, 2006 08:52AM
The answer is eMacs.
Re: idl
March 30, 2006 01:41PM
I have cut and pasted your IDL into a file using wordpad and used the Orbix IDL compiler on it. The idl compiler was perfectly happy with it. I do not have mico installed at the moment, so cannot check with that.

Are there maybe some funny characters in your file somewhere not shown above? Maybe try to delete everything except the actual interface lines.
Re: idl
March 31, 2006 08:44AM
Cut and paste and compiles OK with mico idl compiler as well.

I am a bit curious why the error you report indicates a problem with a brace on line 1, which is some way away from the first brace in your file. My guess is that if you copy and paste the contents of the file as you have posted it here you will not have a problem.

Bob
Anonymous User
Re: idl
April 01, 2006 05:48PM
Thanks for the help .
Everything is working in eMacs.
Re: idl
April 03, 2006 11:43AM
Great.
Sorry, only registered users may post in this forum.

Click here to login