From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,URI_HEX,WEIRD_PORT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,74d953d10520ed5e,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-26 06:27:40 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: rm@gunlab.com.ru (Roman V. Isaev) Newsgroups: comp.lang.ada Subject: using charles library Date: 26 May 2003 06:27:39 -0700 Organization: http://groups.google.com/ Message-ID: NNTP-Posting-Host: 195.151.20.194 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1053955660 8991 127.0.0.1 (26 May 2003 13:27:40 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 26 May 2003 13:27:40 GMT Xref: archiver1.google.com comp.lang.ada:37781 Date: 2003-05-26T13:27:40+00:00 List-Id: I'm learning the ropes, so it might be stupid question but I tried use charles.maps.sorted.strings.unbounded (used sample code by mheaney@on2.com from this newsgroup archive): with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Charles.Maps.Sorted.Strings.Unbounded; with Charles.Strings.Unbounded; use Charles.Strings.Unbounded; package body gettext is package Translation_Tables is new Charles.Maps.Sorted.Strings.Unbounded (Element_Type => Charles.Strings.Unbounded.Container_Type); TT : Translation_Tables.Container_Type; ........ procedure load_mo_file is ........ Insert(TT, "key", Element => To_Container("value")); When I try to compile I get following error: gnatmake -gnatf gettext -I../charles 2>&1|head adagcc -c -gnatf -I../charles gettext.adb gettext.adb:133:10: no candidate interpretations match the actuals: gettext.adb:133:10: missing argument for parameter "New_Item" in call to "insert" declared at charles-strings-unbounded.ads:180 gettext.adb:133:10: missing argument for parameter "New_Item" in call to "insert" declared at charles-strings-unbounded.ads:175 gettext.adb:133:10: missing argument for parameter "New_Item" in call to "insert" declared at charles-strings-unbounded.ads:170 gettext.adb:133:10: missing argument for parameter "New_Item" in call to "insert" declared at charles-strings-unbounded.ads:164 gettext.adb:133:10: missing argument for parameter "Count" in call to "insert" declared at charles-strings-unbounded.ads:159 gettext.adb:133:10: missing argument for parameter "New_Item" in call to "insert" declared at a-strunb.ads:274 gettext.adb:133:10: missing argument for parameter "New_Item" in call to "insert" declared at a-strunb.ads:268 gnatmake: "gettext.adb" compilation error What's wrong?.. fbsd 4.8, gnat 3.15p built from ports, charles-20030320.zip.