Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am working on a linux 4.20 and ubuntu 15.10 virtual machine and my host is windows 7. I am trying to implement a simple chat message example using Data Distribution Service (DDS) protocol provided by Prismtech (Community Edition).

I came across a tutorial where I have to invoke the Chat.idl. Below there is the code in the file, which contains body for interconnection between a server and a client.
C#
module Chat {
    const long MAX_NAME = 32;
    typedef string<max_name> nameType;
    struct ChatMessage {
    long userID; // owner of message
    long index; // message number
    string content; // message body
    };

    #pragma keylist ChatMessage userID
    struct NameService {
    long userID; // unique user identification
    nameType name; // name of the user
    };

    #pragma keylist NameService userID
    struct NamedMessage {
    long userID;   //unique user identification
    nameType userName  //user name
    long index;     //message number
    string content; //message body
    };
    #pragma keylist NamedMessage userID
    };


to invoke this i am supposed to type in "idlpp -S -l c Chat.idl" in my command-line (terminal). Below is my output from the terminal showing "IDL parser error: opening file chat.idl".
C#
-virtual-machine:~/HDE/x86.linux$ idlpp
 Usage: idlpp [-c preprocessor-path] [-b ORB-template-path]
[-n <include-suffix>] [-I path] [-D macro[=definition]] [-S | -C]
[-l (c | c++ | cpp | isocpp | isoc++ | cs | java)] [-j [old]:<new>] [-d directory] [-i]
[-P dll_macro_name[,<h-file>]] [-o (dds-types | custom-psm | no-equality)] <filename>

 akhil@akhil-virtual-machine:~/HDE/x86.linux$ idlpp  -S -l c chat.dil
 IDL parser error: opening file chat.dil


What I have tried:

C#
-virtual-machine:~/HDE/x86.linux$ idlpp
    Usage: idlpp [-c preprocessor-path] [-b ORB-template-path]
   [-n <include-suffix>] [-I path] [-D macro[=definition]] [-S | -C] 
   [-l (c | c++ | cpp | isocpp | isoc++ | cs | java)] [-j [old]:<new>] [-d directory] [-i] 
   [-P dll_macro_name[,<h-file>]] [-o (dds-types | custom-psm | no-equality)] <filename>

    akhil@akhil-virtual-machine:~/HDE/x86.linux$ idlpp  -S -l c chat.dil
    IDL parser error: opening file chat.dil</filename></h-file></new></include-suffix></filename></h-file></new></include-suffix></max_name>
Posted
Updated 13-May-16 2:34am
v3
Comments
Richard MacCutchan 13-May-16 9:02am    
Is the file named chat.idl or chat.dil
CPallini 13-May-16 9:11am    
My virtual 5!
Richard MacCutchan 13-May-16 10:27am    
But it strikes me that people who have not grown up with a "latin" alphabet, may find it quite difficult to spot the difference.
KarstenK 13-May-16 13:08pm    
the idl compiler is a lady. If she get such file extension it wont work. Maybe thats the solution :~

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900