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.
module Chat {
const long MAX_NAME = 32;
typedef string<max_name> nameType;
struct ChatMessage {
long userID;
long index;
string content;
};
#pragma keylist ChatMessage userID
struct NameService {
long userID;
nameType name;
};
#pragma keylist NameService userID
struct NamedMessage {
long userID;
nameType userName
long index;
string content;
};
#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".
-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:
-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>