Compilation failure.
Brought to you by:
kerravon86,
tcamp
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). :-)
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
gcc -o bwbasic -lm bw*.c
Didn't work for me.
Using gcc 10.2.1 and bwbasic 3.20.
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:
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
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
THANKS!!! :-)
That did the trick!
I am so glad that bwbasic is still useful to someone, /ted
Sent from my iPhone
Related
Bugs: #7
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!
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
Related
Bugs: #7