Ada Error No Candidate Interpretations Match The Actuals
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Compilation errors - non-visible declaration at a-textio.ads up vote 0 down vote favorite I'm new in Ada and unfortunately i got stuck on a problem. Here is my code: with Ada.Text_Io; with Ada.Integer_Text_Io; --use Ada.Text_Io; --use Ada.Integer_Text_Io; procedure life is type Plansza is array (Integer range <>, Integer range <>) of Integer; File : Ada.Text_IO.File_Type; tab : Plansza(1..4,1..4); Filename : String := "plansza.txt"; begin Ada.Text_IO.Open (File => File, Mode => Ada.Text_IO.In_File, Name => Filename); for x in 1..4 loop for y in 1..4 loop Ada.Text_IO.Get ( File => File, Item => Plansza(x,y) ); end loop; end loop; for x in 1..4 loop for y in 1..4 loop Ada.Text_IO.Put (Item => Plansza(x,y)); end loop; New_Line; end loop; end life; End this is what i get: life.adb:14:17: "Set_Output" is not visible life.adb:14:17: non-visible declaration at a-textio.ads:114 life.adb:18:44: no candidate interpretations match the actuals: life.adb:18:73: argument of type conversion must be single expression life.adb:18:73: ==> in call to "Get" at a-textio.ads:239 life.adb:18:73: ==> in call to "Get" at a-textio.ads:205 life.adb:23:44: no candidate interpretations match the actuals: life.adb:23:44: missing argument for parameter "File" in call to "put" declared at a-textio.ads:241 life.adb:23:44: missing argument for parameter "File" in call to "put" declared at a-textio.ads:207 life.adb:23:58: argument of type conversion must be single expression life.adb:23:58: ==> in call to "Put" at a-textio.ads:242 life.adb:23:58: ==> in call to "Put" at a-textio.ads:208 life.adb:25:25: "New_Line" is not visible life.adb:25:25: non-visible declaration at a-textio.ads:166 life.adb:25:25: non-visible declaration at a-textio.ads:165 gnatmake: "life.adb" compilation error I don't know where this errors come from, especially one "non-visible declaration at a-textio.ads", by these about parameters also. ada share|improve this question asked Jan 2 '14 at 20:26 user2443194 377 3 You refer to Plansza(x,y). Plansza is a type, not as variable. You probably want tab
Calculator isFirst, Second : float;Operator : Character;beginPut ("Enter an expression in the http://stackoverflow.com/questions/20891244/compilation-errors-non-visible-declaration-at-a-textio-ads form [NUMBER1(newline)OPERATOR(newline)NUMBER2] ");Get (First);Get (Operator);Get (Second);case Operator is when '+' => Put (First + Second, Width => 1); when '-' => Put (First - Second, http://ideone.com/ROemVr Width => 1); when '*' => Put (First * Second, Width => 1); when '/' => Put (First / Second, Width => 1); when others => Put ("Invalid operator '");end case;New_Line;end Calculator; d2l0aCBBZGEuVGV4dF9JTywgQWRhLkludGVnZXJfVGV4dF9JTzsKdXNlICBBZGEuVGV4dF9JTywgQWRhLkludGVnZXJfVGV4dF9JTzsKICAgIHByb2NlZHVyZSBDYWxjdWxhdG9yIGlzCiAgICAKRmlyc3QsIFNlY29uZCA6IGZsb2F0OwpPcGVyYXRvciAgICAgIDogQ2hhcmFjdGVyOwpiZWdpbgogICAgClB1dCAoIkVudGVyIGFuIGV4cHJlc3Npb24gaW4gdGhlIGZvcm0gW05VTUJFUjEobmV3bGluZSlPUEVSQVRPUihuZXdsaW5lKU5VTUJFUjJdICIpOwpHZXQgKEZpcnN0KTsKR2V0IChPcGVyYXRvcik7CkdldCAoU2Vjb25kKTsKICAgICAgICAKY2FzZSBPcGVyYXRvciBpcwogICAgICAgICAgICB3aGVuICcrJyA9PgogICAgICAgICAgICAgICAgUHV0IChGaXJzdCArIFNlY29uZCwgV2lkdGggPT4gMSk7CiAgICAgICAgICAgIHdoZW4gJy0nID0+CiAgICAgICAgICAgICAgICBQdXQgKEZpcnN0IC0gU2Vjb25kLCBXaWR0aCA9PiAxKTsKICAgICAgICAgICAgd2hlbiAnKicgPT4KICAgICAgICAgICAgICAgIFB1dCAoRmlyc3QgKiBTZWNvbmQsIFdpZHRoID0+IDEpOwogICAgICAgICAgICB3aGVuICcvJyA9PgogICAgICAgICAgICAgICAgUHV0IChGaXJzdCAvIFNlY29uZCwgV2lkdGggPT4gMSk7CiAgICAgICAgICAgIHdoZW4gb3RoZXJzID0+IFB1dCAoIkludmFsaWQgb3BlcmF0b3IgJyIpOwogICAgICAgICAgICAgICAKZW5kIGNhc2U7Ck5ld19MaW5lOwplbmQgQ2FsY3VsYXRvcjsKCg== Compilation error #stdin compilation error #stdout 0s 5100KB comments (?) stdin copy MjQuNQorCjY= 24.5 + 6 compilation info gcc-4.6 -c -pipe -O2 prog.adb prog.adb:3:15: warning: file name does not match unit name, should be "calculator.adb" prog.adb:10:01: no can
Bugs Ada Class Library Brought to you by: krischik Summary Files https://sourceforge.net/p/adacl/bugs/1/ Reviews Support Wiki Code Tickets ▾ Bugs Support Requests News Discussion Donate Create Ticket View Stats Group Compile Searches Changes Closed Tickets https://gcc.gnu.org/ml/gcc-patches/2006-10/msg01717.html Open Tickets Help Formatting Help #1 Library does not compile Milestone: Compile Status: closed Owner: Björn Persson Labels: AdaCL.Command_Line (1) Priority: 7 ada error Updated: 2012-09-15 Created: 2004-06-21 Creator: Martin Krischik Private: No make gnat make -PAdaCL -Xbc=/work/ada/bc-20040319 -Xgc=Without_GC -Xtarget=Linux -vP0 -Xstyle=Debug gcc -c -shared -g -fPIC -gnatf -gnatU -gnatwcdfijklmopruvz -gnatq -gnatQ -gnati1 -gnatT4 -gnata -gnato -gnatVcdfimorst -g -I- -gnatA /work/sf. olga/adacl/Include/adacl-command_line-orto-discrete_parameters. adb adacl-command_line-orto-discrete_parameters.adb:20:20: warning: unit "Handling" is not ada error no referenced adacl-command_line-orto-discrete_parameters.adb:73:21: warning: formal parameter "def" is not referenced adacl-command_line-orto-discrete_parameters.adb:74:22: warning: formal parameter "name" is not referenced adacl-command_line-orto.adb:434:28: error: "generic_modify_elements" not declared in "info_vectors" adacl-command_line-orto.adb:512:10: error: "process_unfound" is undefined adacl-command_line-orto.adb:566:19: error: no candidate interpretations match the actuals: adacl-command_line-orto.adb:566:19: error: missing argument for parameter "New_Item" in call to "Append" declared at charles-vectors-unbounded.ads:129, instance at adacl-command_line-orto.ads:270 adacl-command_line-orto.adb:566:19: error: missing argument for parameter "New_Item" in call to "Append" declared at charles-vectors-unbounded.ads:129, instance at adacl-command_line-orto.ads:249 adacl-command_line-orto.adb:566:19: error: missing argument for parameter "New_Item" in call to "Append" declared at charles-vectors-unbounded.ads:129, instance at adacl-command_line-orto.ads:246 adacl-command_line-orto.adb:566:19: error: missing argument for parameter "New_Item" in call to "Append" declared at adacl-eastrings-latin_1.ads:42 adacl-command_line-orto.adb:566:19: error: missing argument for parameter "New_Item" in call to "Append" declared at adacl-eastrings-latin_1.ads:38 adacl-command_line-orto.adb:566:19: error: missing argument for parameter "New_Item" in call to "Append" declared at adacl-eastrings-latin_1.ads:34 adacl-command_line-orto.adb:566:19
[Ada] fix handling of object.method notation From: Arnaud Charlet