• compilation or linking error

    From ldries46@21:1/5 to All on Sat Nov 30 09:22:51 2024
    This is a multi-part message in MIME format.
    Using the 25.w0 compiler system on Windows 11 in a program using gtkada
    I got the following error messages using the "Compile File"in the

    [2024-11-30 08:42:53] Could not expand argument in command line: %rbt [2024-11-30 08:42:53] Could not expand argument in command line: %rd [2024-11-30 08:42:53] Build command not launched.

    As said in the last line I cannot run  the program. Also missing the
    chance to debug. This message contains the group file I use. Possibly
    there is an error inside. I did control but the program is indeed not
    running and not even the first line did not run shows that code is not
    the problem. I included the used .gpr file and the base file of the
    program. All the source files are in the directory /base./src while the
    .gpr file is positioned in  /base.
    Using the Check Syntax, Check Semantic and Compile File Show No Errors.
    Run & debug show only some runtime failures message but never reaches
    the start of the code :

    Num     Type           Disp Enb Address            What
    1       breakpoint     keep y   0x00000000004015a8 in sudoku_main at
    D:\ada\project\Sudoku\src\sudoku_main.adb:44

    What did I do wrong?



    LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tCi0tICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAtLQotLSAg ICAgIENvcHlyaWdodCAoQykgMjAxNiBMLiBEcmllcyAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgLS0KLS0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC0tCi0tIFRoaXMg bGlicmFyeSBpcyBmcmVlIHNvZnR3YXJlOyAgeW91IGNhbiByZWRpc3RyaWJ1dGUgaXQgYW5k L29yIG1vZGlmeSBpdCAtLQotLSB1bmRlciB0ZXJtcyBvZiB0aGUgIEdOVSBHZW5lcmFsIFB1 YmxpYyBMaWNlbnNlICBhcyBwdWJsaXNoZWQgYnkgdGhlIEZyZWUgLS0KLS0gU29mdHdhcmUg IEZvdW5kYXRpb247ICBlaXRoZXIgdmVyc2lvbiAzLCAgb3IgKGF0IHlvdXIgIG9wdGlvbikg YW55IGxhdGVyIC0tCi0tIHZlcnNpb24uIFRoaXMgbGlicmFyeSBpcyBkaXN0cmlidXRlZCBp biB0aGUgaG9wZSB0aGF0IGl0IHdpbGwgYmUgdXNlZnVsLCAtLQotLSBidXQgV0lUSE9VVCBB TlkgV0FSUkFOVFk7ICB3aXRob3V0IGV2ZW4gdGhlIGltcGxpZWQgd2FycmFudHkgb2YgTUVS Q0hBTi0gLS0KLS0gVEFCSUxJVFkgb3IgRklUTkVTUyBGT1IgQSBQQVJUSUNVTEFSIFBVUlBP U0UuICAgICAgICAgICAgICAgICAgICAgICAgICAgIC0tCi0tICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAtLQotLSBBcyBhIHNwZWNpYWwgZXhjZXB0aW9uIHVuZGVyIFNlY3Rpb24gNyBvZiBHUEwg dmVyc2lvbiAzLCB5b3UgYXJlIGdyYW50ZWQgLS0KLS0gYWRkaXRpb25hbCBwZXJtaXNzaW9u cyBkZXNjcmliZWQgaW4gdGhlIEdDQyBSdW50aW1lIExpYnJhcnkgRXhjZXB0aW9uLCAgIC0t Ci0tIHZlcnNpb24gMy4xLCBhcyBwdWJsaXNoZWQgYnkgdGhlIEZyZWUgU29mdHdhcmUgRm91 bmRhdGlvbi4gICAgICAgICAgICAgICAtLQotLSAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLS0KLS0g WW91IHNob3VsZCBoYXZlIHJlY2VpdmVkIGEgY29weSBvZiB0aGUgR05VIEdlbmVyYWwgUHVi bGljIExpY2Vuc2UgYW5kICAgIC0tCi0tIGEgY29weSBvZiB0aGUgR0NDIFJ1bnRpbWUgTGli cmF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zZSAoIi4vc3JjIiwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg Ii4uLy4uL1N0YW5kYWFyZGVuL1N0YW5kYWFyZCBQYWNrYWdlcy9QaXBlLyoqIiwKICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgIi4uLy4uL1N0YW5kYWFyZGVuL1N0YW5kYWFyZCBQ YWNrYWdlcy9Jbml0LyoqIiwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIi4uLy4u L1N0YW5kYWFyZGVuL1N0YW5kYWFyZCBQYWNrYWdlcy9TdHJpbmdzLyoqIik7Ci0tICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgIi4uLy4uL1N0YW5kYWFyZGVuL1N0YW5kYWFyZCBQ YWNrYWdlcy9EZWJ1Z2dpbmcvKioiKTsKICAgICAgICAgZm9yIE1haW4gdXNlICgiU3Vkb2t1 X21haW4uYWRiIik7CgogICAgICB3aGVuICJyZWxvY2F0YWJsZSIgPT4KCiAgIGVuZCBjYXNl OwoKICAgcGFja2FnZSBJZGUgaXMKICAgICAgZm9yIERvY3VtZW50YXRpb25fRGlyIHVzZSAi Li9kb2MiOwogICBlbmQgSWRlOwoKICAgcGFja2FnZSBCdWlsZGVyIGlzCgogICAgICBjYXNl IExpYnJhcnlfVHlwZSBpcwoKICAgICAgICAgd2hlbiAic3RhdGljIiA9PgogICAgICAgICAg ICBmb3IgRGVmYXVsdF9Td2l0Y2hlcyAoImFkYSIpIHVzZSAoIi1zIiwgIi1tIiwgIi1qNCIs ICItZyIpOwoKICAgICAgICAgd2hlbiAicmVsb2NhdGFibGUiID0+CiAgICAgICAgICAgIGZv ciBEZWZhdWx0X1N3aXRjaGVzICgiYWRhIikgdXNlICgiLXMiKTsKICAgICAgZW5kIGNhc2U7 CiAgIGVuZCBCdWlsZGVyOwoKICAgcGFja2FnZSBDb21waWxlciBpcwoKICAgICAgY2FzZSBM aWJyYXJ5X1R5cGUgaXMKCiAgICAgICAgIHdoZW4gInN0YXRpYyIgPT4KICAgICAgICAgICAg Zm9yIERlZmF1bHRfU3dpdGNoZXMgKCJhZGEiKSB1c2UgKCItZ25hdFEiLCAiLWciLCAiLWdu YXRhIiwgIi1nbmF0ZiIpOwoKICAgICAgICAgd2hlbiAicmVsb2NhdGFibGUiID0+CiAgICAg ICAgICAgIGZvciBEZWZhdWx0X1N3aXRjaGVzICgiYWRhIikgdXNlICgiLU8yIik7CiAgICAg IGVuZCBjYXNlOwogICBlbmQgQ29tcGlsZXI7CgogICBwYWNrYWdlIExpbmtlciBpcwogICAg ICAtLSBmb3IgV2luZG93cyBwcm9kdWN0aW9uIG9ubHkgOzsgcmVtb3ZlIGZvciBMaW51eCAv IE1hYyAvIFdpbiBkZWJ1ZwoKICAgICAgY2FzZSBMaWJyYXJ5X1R5cGUgaXMKCiAgICAgICAg IHdoZW4gInN0YXRpYyIgPT4KICAgICAgICAgICAgZm9yIERlZmF1bHRfU3dpdGNoZXMgKCJh ZGEiKSB1c2UgKCItbXdpbmRvd3MiLCAiLWciKTsKCiAgICAgICAgIHdoZW4gInJlbG9jYXRh YmxlIiA9PgogICAgICAgICAgICBmb3IgRGVmYXVsdF9Td2l0Y2hlcyAoImFkYSIpIHVzZSAo Ii1td2luZG93cyIpOwogICAgICBlbmQgY2FzZTsKICAgZW5kIExpbmtlcjsKCmVuZCBTdWRv a3VfbWFpbjsK LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tCi0tICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAtLQotLSAg ICAgIENvcHlyaWdodCAoQykgMjAxNiBMLiBEcmllcyAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgLS0KLS0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgIC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AtLQotLSAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgLS0KLS0g WW91IHNob3VsZCBoYXZlIHJlY2VpdmVkIGEgY29weSBvZiB0aGUgR05VIEdlbmVyYWwgUHVi bGljIExpY2Vuc2UgYW5kICAgIC0tCi0tIGEgY29weSBvZiB0aGUgR0NDIFJ1bnRpbWUgTGli cmFyeSBFeGNlcHRpb24gYWxvbmcgd2l0aCB0aGlzIHByb2dyYW07ICAgICAtLQotLSBzZWUg dGhlIGZpbGVzIENPUFlJTkczIGFuZCBDT1BZSU5HLlJVTlRJTUUgcmVzcGVjdGl2ZWx5LiAg SWYgbm90LCBzZWUgICAgLS0KLS0gPGh0dHA6Ly93d3cuZ251Lm9yZy9saWNlbnNlcy8+LiAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC0tCi0tICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAtLQotLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0KLS0gVmVyc2lvbiAxLjAw IGRkLiAxOS0wNy0yMDE2IGNyZWF0ZWQgYnkgTC4gRHJpZXMgICAgICAgICAgICAgICAgICAg ICAgICAgIC0tCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQotLSBDcmVhdGVkIGZyb20gZW1w bGF0ZSBWMS4wMCBieSBMLiBEcmllcyBvbiAgMjAtIDctIDIwMTYgICAgICAgICAgICAgICAg ICAgLS0KLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0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HJ1ZSk7CiAgIGVu ZCBsb29wOwogICBOdW1iZXIgOj0gQm94X0ggKiBCb3hfVjsKICAgTGFuIDo9TGFuZ3VhZ2Un VmFsdWUoR2V0X1ZhbHVlKG5faW5pLCAiTGFuZ3VhZ2VzIiwgIkxhbiIsCiAgICAgICAgICAg ICAgICAgICAgICAgIExhbmd1YWdlJ0ltYWdlKEdCX1VTQSkpKTsKICAgQ3VyX0ZvbGRlciA6 PSBUb19VbmJvdW5kZWRfU3RyaW5nKEN1cnJlbnRfRGlyZWN0b3J5ICYgIlwqLioiKTsKICAg SW5wX0ZvbGRlciA6PSBUb19VbmJvdW5kZWRfU3RyaW5nKEdldF9WYWx1ZShuX2luaSwgIkRp cmVjdG9yeSIsICJJbnB1dCIsCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICBUb19TdHJpbmcoQ3VyX0ZvbGRlcikpKTsKICAgT3V0X0ZvbGRlciA6PSBUb19VbmJvdW5k ZWRfU3RyaW5nKEdldF9WYWx1ZShuX2luaSwgIkRpcmVjdG9yeSIsICJPdXRwdXQiLAogICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgVG9fU3RyaW5nKElucF9Gb2xkZXIp KSk7CiAgIERpYWdvbmFsX21vZGUgOj0gR2V0X1ZhbHVlKG5faW5pLCAiT3B0aW9ucyIsICJE aWFnb25hbHMiLCBGYWxzZSk7CiAgIEdyYXlfU3F1YXJlX21vZGUgOj0gR2V0X1ZhbHVlKG5f aW5pLCAiT3B0aW9ucyIsICJHcmF5X1NxdWFyZSIsIEZhbHNlKTsKICAgR3RrLk1haW4uSW5p dDsKICAgR3RrX05ldyAoTWFpbl9XaW5kb3cpOwotLSAgIENyZWF0ZV9TdGF0dXM7CiAgIE1h aW5fV2luZG93LlNob3dfQWxsOwogICBHdGsuTWFpbi5NYWluOwplbmQgU3Vkb2t1X21haW47
    Cg==

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From ldries46@21:1/5 to All on Tue Dec 3 12:43:34 2024
    I just run the Compile command and get:

    [2024-12-03 12:28:45] Could not determine the project for file: D:\ada\project\Sudoku\Sudoku_main.gpr
    [2024-12-03 12:28:45] Could not expand argument in command line: %fp [2024-12-03 12:28:45] Build command not launched.Op 30-11-2024 om 9:22
    schreef ldries46:
    Using the 25.w0 compiler system on Windows 11 in a program using
    gtkada I got the following error messages using the "Compile File"in the

    [2024-11-30 08:42:53] Could not expand argument in command line: %rbt [2024-11-30 08:42:53] Could not expand argument in command line: %rd [2024-11-30 08:42:53] Build command not launched.

    As said in the last line I cannot run  the program. Also missing the
    chance to debug. This message contains the group file I use. Possibly
    there is an error inside. I did control but the program is indeed not
    running and not even the first line did not run shows that code is not
    the problem. I included the used .gpr file and the base file of the
    program. All the source files are in the directory /base./src while
    the .gpr file is positioned in  /base.
    Using the Check Syntax, Check Semantic and Compile File Show No
    Errors. Run & debug show only some runtime failures message but never
    reaches the start of the code :

    Num     Type           Disp Enb Address            What
    1       breakpoint     keep y   0x00000000004015a8 in sudoku_main at
    D:\ada\project\Sudoku\src\sudoku_main.adb:44

    What did I do wrong?



    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From ldries46@21:1/5 to All on Wed Dec 4 10:18:17 2024
    In the .gpr file in clearly stated that main:
    "for Main use ("Sudoku_main.adb"); and "for Source_Dirs use ("./src",
    ...etc"
    which means that according to the .gpr  file the compilation is for the program that is presented in the .src directory. As I think the problem
    is somewhere in the compilation,  Linker or Builder parts used in
    the.gpr file

    Op 3-12-2024 om 17:53 schreef Max Reznik:
    It seems you are trying to compile a `.gpr` file.
    This is not what you need. You can compile only `.adb` (sometimes
    `.ads`). Instead of compiling `.gpr` file run "Build project"

    03.12.2024 13:43, ldries46:
    I just run the Compile command and get:

    [2024-12-03 12:28:45] Could not determine the project for file: D:
    \ada\project\Sudoku\Sudoku_main.gpr

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From ldries46@21:1/5 to All on Thu Dec 5 09:21:13 2024
    I think we do not understand each other. I an using the compiler 25.0 of
    he community. In this compiler that includes an editor you are asked
    which .gpr file you want to use. As a result all files that are
    mentioned in the .gpr file can be reached by the editor as belonging to
    the project. If you open another file it is not mentioned as a file
    beloning to the project. The compiler just compiles only the files
    belonging to the project. uses the .gpr file only as a guideline howe to
    create an .exe file. In the program I have a BUILD command which has sub commands (CHECK SYNTAX, CHECK SEMANTIC, COMPILE FILE, PROJECT, CLEAN,
    RUN, SETTINGS) of which PROJECT is split into BUILD & RUN, BUID & DEBUG.
    I have tried CHECK SYNTAX, CHECK CHECK SEMANTIC, which are all without
    error, COMPILE, PROJECT/.. create errors   So what do exactly do wrong.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From ldries46@21:1/5 to All on Sat Dec 7 13:56:43 2024
    This is a multi-part message in MIME format.
    Op 5-12-2024 om 9:21 schreef ldries46:
    I think we do not understand each other. I an using the compiler 25.0
    of he community. In this compiler that includes an editor you are
    asked which .gpr file you want to use. As a result all files that are mentioned in the .gpr file can be reached by the editor as belonging
    to the project. If you open another file it is not mentioned as a file beloning to the project. The compiler just compiles only the files
    belonging to the project. uses the .gpr file only as a guideline howe
    to create an .exe file. In the program I have a BUILD command which
    has sub commands (CHECK SYNTAX, CHECK SEMANTIC, COMPILE FILE, PROJECT,
    CLEAN, RUN, SETTINGS) of which PROJECT is split into BUILD & RUN, BUID
    & DEBUG. I have tried CHECK SYNTAX, CHECK CHECK SEMANTIC, which are
    all without error, COMPILE, PROJECT/.. create errors So what do
    exactly do wrong.
    In mean time I found:
    It looks like there is a complete compilation I have set a breakpoint at
    line 44 of the main procedure of the program and with a part of the
    listing of the BUILD & DEBUG  I see:

    (gdb) whatis n_ini

    type = integer

    (gdb) ptype n_ini

    type = <4-byte integer>

    (gdb) print n_ini

    $1 = 0

    (gdb) print n_ini

    $2 = 0

    (gdb) break sudoku_main.adb:44

    Breakpoint 1 at 0x4015a8: file
    D:\ada\project\Sudoku\src\sudoku_main.adb, line 44.

    (gdb) info breakpoints

    Num Type Disp Enb Address What

    1 breakpoint keep y 0x00000000004015a8 in sudoku_main at D:\ada\project\Sudoku\src\sudoku_main.adb:44

    (gdb) info breakpoints

    Num Type Disp Enb Address What

    1 breakpoint keep y 0x00000000004015a8 in sudoku_main at D:\ada\project\Sudoku\src\sudoku_main.adb:44

    (gdb) ptype &use

    No definition of "use" in current context.

    (gdb)

    The part of the program is:

    41   procedure Sudoku_main is
    42   begin
    43   n_ini := 2;
    44   n_ini := Use_File("Sudoku");
    45   Box_H := Get_Value(n_ini, "Grid", "H", 3);

    etc...

    The program stops before line 44.

    Restarting the program to the next line result in

    (gdb) where
    No stack.
    (gdb) x/32gx
    0x000000000000000000000000000000000000000000000000000000000000000
    0x0:    Cannot access memory at address 0x0
    (gdb) x/256b
    0x000000000000000000000000000000000000000000000000000000000000000
    0x0:    Cannot access memory at address 0x0
    (gdb) <^C>

    So it looks like the program is still not starting

    <!DOCTYPE html>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
    <div class="moz-cite-prefix">Op 5-12-2024 om 9:21 schreef ldries46:<br>
    </div>
    <blockquote type="cite"
    cite="mid:nnd$0c77a74a$7903d583@d25fd620e9918bf1">I think we do
    not understand each other. I an using the compiler 25.0 of he
    community. In this compiler that includes an editor you are asked
    which .gpr file you want to use. As a result all files that are
    mentioned in the .gpr file can be reached by the editor as
    belonging to the project. If you open another file it is not
    mentioned as a file beloning to the project. The compiler just
    compiles only the files belonging to the project. uses the .gpr
    file only as a guideline howe to create an .exe file. In the
    program I have a BUILD command which has sub commands (CHECK
    SYNTAX, CHECK SEMANTIC, COMPILE FILE, PROJECT, CLEAN, RUN,
    SETTINGS) of which PROJECT is split into BUILD &amp; RUN, BUID
    &amp; DEBUG. I have tried CHECK SYNTAX, CHECK CHECK SEMANTIC,
    which are all without error, COMPILE, PROJECT/.. create errors  
    So what do exactly do wrong.
    <br>
    </blockquote>
    In mean time I found:<br>
    It looks like there is a complete compilation I have set a
    breakpoint at line 44 of the main procedure of the program and with
    a part of the listing of the BUILD &amp; DEBUG  I see: <br>
    <p style="line-height: 100%; margin-bottom: 0cm">
    (gdb) whatis n_ini</p>
    <p style="line-height: 100%; margin-bottom: 0cm">type = integer</p>
    <p style="line-height: 100%; margin-bottom: 0cm">(gdb) ptype n_ini</p>
    <p style="line-height: 100%; margin-bottom: 0cm">type = &lt;4-byte
    integer&gt;</p>
    <p style="line-height: 100%; margin-bottom: 0cm">(gdb) print n_ini</p>
    <p style="line-height: 100%; margin-bottom: 0cm">$1 = 0</p>
    <p style="line-height: 100%; margin-bottom: 0cm">(gdb) print n_ini</p>
    <p style="line-height: 100%; margin-bottom: 0cm">$2 = 0</p>
    <p style="line-height: 100%; margin-bottom: 0cm">(gdb) break
    sudoku_main.adb:44</p>
    <p style="line-height: 100%; margin-bottom: 0cm">Breakpoint 1 at
    0x4015a8: file D:\ada\project\Sudoku\src\sudoku_main.adb, line 44.</p>
    <p style="line-height: 100%; margin-bottom: 0cm">(gdb) info
    breakpoints</p>
    <p style="line-height: 100%; margin-bottom: 0cm">Num Type Disp Enb
    Address What</p>
    <p style="line-height: 100%; margin-bottom: 0cm">1 breakpoint keep y
    0x00000000004015a8 in sudoku_main at
    D:\ada\project\Sudoku\src\sudoku_main.adb:44</p>
    <p style="line-height: 100%; margin-bottom: 0cm">(gdb) info
    breakpoints</p>
    <p style="line-height: 100%; margin-bottom: 0cm">Num Type Disp Enb
    Address What</p>
    <p style="line-height: 100%; margin-bottom: 0cm">1 breakpoint keep y
    0x00000000004015a8 in sudoku_main at
    D:\ada\project\Sudoku\src\sudoku_main.adb:44</p>
    <p style="line-height: 100%; margin-bottom: 0cm">(gdb) ptype
    &amp;use</p>
    <p style="line-height: 100%; margin-bottom: 0cm">No definition of
    "use" in current context.</p>
    <p style="line-height: 100%; margin-bottom: 0cm">(gdb) <br>
    </p>
    <p style="line-height: 100%; margin-bottom: 0cm">The part of the
    program is:</p>
    <p style="line-height: 100%; margin-bottom: 0cm">41   procedure
    Sudoku_main is<br>
    42   begin<br>
    43   n_ini := 2;<br>
    44   n_ini := Use_File("Sudoku");<br>
    45   Box_H := Get_Value(n_ini, "Grid", "H", 3);</p>
    <p style="line-height: 100%; margin-bottom: 0cm">etc...</p>
    <p style="line-height: 100%; margin-bottom: 0cm">The program stops
    before line 44.</p>
    <p style="line-height: 100%; margin-bottom: 0cm">Restarting the
    program to the next line result in</p>
    <p style="line-height: 100%; margin-bottom: 0cm">(gdb) where<br>
    No stack.<br>
    (gdb) x/32gx
    0x000000000000000000000000000000000000000000000000000000000000000<br>
    0x0:    Cannot access memory at address 0x0<br>
    (gdb) x/256b
    0x000000000000000000000000000000000000000000000000000000000000000<br>
    0x0:    Cannot access memory at address 0x0<br>
    (gdb) &lt;^C&gt;</p>
    <p style="line-height: 100%; margin-bottom: 0cm">So it looks like
    the program is still not starting<br>
    </p>
    </body>
    </html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)