Menu

#7 Compilation failure.

v1.0 (example)
open
nobody
compilation (1)
5
2022-02-19
2018-03-26
Giorgos
No

Compilation fails (on Debian Jessie (oldstable at the time) x64 KDE).
Here's console's output:

>gcc -o bwbasic -lm -ansi -pedantic -Wall -Werror bw*.c
bwb_fnc.c: In function ‘IntrinsicFunction_execute’:
bwb_fnc.c:966:9: error: implicit declaration of function ‘putenv’ [-Werror=implicit-function-declaration]
         if (putenv (A) == -1)
         ^
cc1: all warnings being treated as errors
>

Actually, there is a repository version, but this package seems to be orphaned. Last update was back at 1997!!! Ancient, even for Debian's standards! :-)
Compiling from source, seems to be the only way to go (unless you're a historian). :-)

Related

Bugs: #7

Discussion

  • AF5NE

    AF5NE - 2018-03-29

    Giorgos,

    Good catch! I missed that putenv() and sleep() are not in ANSI. It will be fixed in the next release. As a work-around for now, if you would be so kind, please try compiling with this command line:

    gcc -o bwbasic -lm bw*.c

     
    • Daniel D. Rodrigues

      gcc -o bwbasic -lm bw*.c
      Didn't work for me.
      Using gcc 10.2.1 and bwbasic 3.20.

       
      • Paul Edwards

        Paul Edwards - 2022-02-08

        What error did you get? You might need to put
        the “-lm” at the end. Can you try that? I am aware
        that you got a more complicated procedure to work.

        BFN. Paul.

        From: Daniel D. Rodrigues
        Sent: Sunday, February 6, 2022 4:17 AM
        To: [bwbasic:bugs]
        Subject: [bwbasic:bugs] Re: #7 Compilation failure.

        gcc -o bwbasic -lm bw*.c
        Didn't work for me.
        Using gcc 10.2.1 and bwbasic 3.20.


        [bugs:#7] Compilation failure.

        Status: open
        Group: v1.0 (example)
        Labels: compilation
        Created: Mon Mar 26, 2018 01:44 PM UTC by Giorgos
        Last Updated: Sat Apr 20, 2019 09:10 PM UTC
        Owner: nobody

        Compilation fails (on Debian Jessie (oldstable at the time) x64 KDE).
        Here's console's output:

        gcc -o bwbasic -lm -ansi -pedantic -Wall -Werror bw*.c
        bwb_fnc.c: In function ‘IntrinsicFunction_execute’:
        bwb_fnc.c:966:9: error: implicit declaration of function ‘putenv’ [-Werror=implicit-function-declaration]
        if (putenv (A) == -1)
        ^
        cc1: all warnings being treated as errors

        Actually, there is a repository version, but this package seems to be orphaned. Last update was back at 1997!!! Ancient, even for Debian's standards! :-)
        Compiling from source, seems to be the only way to go (unless you're a historian). :-)


        Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/bwbasic/bugs/7/

        To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

        --
        This email has been checked for viruses by AVG.
        https://www.avg.com

         

        Related

        Bugs: #7

      • AF5NE

        AF5NE - 2022-02-19

        Daniel,

        My apologies for the late response -- I am not often online.
        If you would be so kind, please try this:

        gcc -D_SVID_SOURCE -o bwbasic -lm bw*.c

         
  • Giorgos

    Giorgos - 2018-03-29

    THANKS!!! :-)

    That did the trick!

     
    • Ted A. Campbell

      Ted A. Campbell - 2018-03-29

      I am so glad that bwbasic is still useful to someone, /ted

      Sent from my iPhone

      On Mar 29, 2018, at 18:17, Giorgos gk967@users.sourceforge.net wrote:

      THANKS!!! :-)

      That did the trick!

      [bugs:#7] Compilation failure.

      Status: open
      Group: v1.0 (example)
      Labels: compilation
      Created: Mon Mar 26, 2018 01:44 PM UTC by Giorgos
      Last Updated: Thu Mar 29, 2018 05:25 PM UTC
      Owner: nobody

      Compilation fails (on Debian Jessie (oldstable at the time) x64 KDE).
      Here's console's output:

      gcc -o bwbasic -lm -ansi -pedantic -Wall -Werror bw*.c
      bwb_fnc.c: In function ‘IntrinsicFunction_execute’:
      bwb_fnc.c:966:9: error: implicit declaration of function ‘putenv’ [-Werror=implicit-function-declaration]
      if (putenv (A) == -1)
      ^
      cc1: all warnings being treated as errors

      Actually, there is a repository version, but this package seems to be orphaned. Last update was back at 1997!!! Ancient, even for Debian's standards! :-)
      Compiling from source, seems to be the only way to go (unless you're a historian). :-)

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/bwbasic/bugs/7/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #7

  • JohnT

    JohnT - 2019-04-20

    Hi, Ted! There may be an uptick in interest in historic languages as well as historic hardware, and I for one enjoy the simplicity of typing in a little programming idea, trying it and debugging in a Basic interpreter and maybe compiling it. Basic on a Commodore was great fun (and quiet in the small morning hours when I got home from work), and I'm very glad to be able to use several flavors of Basic on my Linux system now. I also have built a few Algols and wouldn't mind getting my hands on a PL/1 version source. The work that you did years ago on BWBasic is much appreciated. But I read that "This program was originally begun in 1982 by my grandmother, Mrs. Verda Spell of Beaumont, TX." I can't help thinking that history was a bit tongue-in-cheek, but bless your grandmother anyway!

     
    • Ted A. Campbell

      Ted A. Campbell - 2019-04-20

      Total bullshit. Nerd-boy joke. I really should tell them to remove that! Thanks for using bwBASIC!

      /ted


      Ted Campbell at home
      tc at tedcampbell dot com

      On Apr 20, 2019, at 4:10 PM, JohnT flourpower@users.sourceforge.net wrote:

      Hi, Ted! There may be an uptick in interest in historic languages as well as historic hardware, and I for one enjoy the simplicity of typing in a little programming idea, trying it and debugging in a Basic interpreter and maybe compiling it. Basic on a Commodore was great fun (and quiet in the small morning hours when I got home from work), and I'm very glad to be able to use several flavors of Basic on my Linux system now. I also have built a few Algols and wouldn't mind getting my hands on a PL/1 version source. The work that you did years ago on BWBasic is much appreciated. But I read that "This program was originally begun in 1982 by my grandmother, Mrs. Verda Spell of Beaumont, TX." I can't help thinking that history was a bit tongue-in-cheek, but bless your grandmother anyway!

      [bugs:#7] https://sourceforge.net/p/bwbasic/bugs/7/ Compilation failure.

      Status: open
      Group: v1.0 (example)
      Labels: compilation
      Created: Mon Mar 26, 2018 01:44 PM UTC by Giorgos
      Last Updated: Thu Mar 29, 2018 11:17 PM UTC
      Owner: nobody

      Compilation fails (on Debian Jessie (oldstable at the time) x64 KDE).
      Here's console's output:

      gcc -o bwbasic -lm -ansi -pedantic -Wall -Werror bw*.c
      bwb_fnc.c: In function ‘IntrinsicFunction_execute’:
      bwb_fnc.c:966:9: error: implicit declaration of function ‘putenv’ [-Werror=implicit-function-declaration]
      if (putenv (A) == -1)
      ^
      cc1: all warnings being treated as errors

      Actually, there is a repository version, but this package seems to be orphaned. Last update was back at 1997!!! Ancient, even for Debian's standards! :-)
      Compiling from source, seems to be the only way to go (unless you're a historian). :-)

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/bwbasic/bugs/7/ https://sourceforge.net/p/bwbasic/bugs/7/
      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/ https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #7


Log in to post a comment.