Re: ipdl compile error
Benjamin Smedberg <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
On 8/18/09 2:46 AM, Tibor Mezei wrote: > I'm trying to compile my ipdl file to c++ files(make -C > $OBJDIR/ipc/ipdl), but I get the following error: > > /home/zemei/mozilla/src/modules/libpref/ipc/Preferences.ipdl:14: > error: argument typename `String' of message `GetCharPref' has not > been declared > Specification is not well typed. > > First I tried with non-capital s, but that has the same problem. > After that i check the ipc/test-harness/Test.ipdl file. > There are String types with capital S, but don't know what's the problem. I believe we removed the magic `String` type. Use nsCString for narrow (char*) strings and nsString for wide (PRUnichar*) strings. You may need to add a `using nsCString;` declaration to the head of your .ipdl file. --BDS