Bcx EDitor (BED)

Started by MrBcx, December 14, 2020, 07:46:53 PM

Previous topic - Next topic

jbk

you can have the compiler with space in path, just enclose the path in quotes AND remove the quotes from the compiler call, example
config64
@SET MSVCFolder="D:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\bin\Hostx64\x64"

vc64.bat
:COMPILE_C
ECHO.
ECHO MSVC is compiling [ "%~dpn1" ] as a 64-bit CONSOLE application.
CALL %MSVCFolder%\cl.exe .........

do the same to compile cpp and link, do that to the rest of the msvc bat files

jcfuller

Quote from: MrBcx on October 27, 2025, 10:30:14 PM
Quote from: Robert on October 27, 2025, 09:46:10 PMNext, spaces in compiler PATH.


Good luck with that.  That's currently not on my TO-DO list but if the right
solution comes along, I'd have to consider updating the batch files again.



I guess I somehow missed that.
I have always installed VSC to the default Program Files Folder.

James

MrBcx

Quote from: Robert on October 27, 2025, 09:46:10 PMNext, spaces in compiler PATH.


Good luck with that.  That's currently not on my TO-DO list but if the right
solution comes along, I'd have to consider updating the batch files again.


Robert

Quote from: MrBcx on October 27, 2025, 12:36:50 PMHi Robert,

All you need is to add $CPP at the top of the file and it will generate and build a C++ file from BED.

$CPP
$FILETEST ON
$GENFREE
$NOINI
$NO_BORLAND
$NO_GCC_CLANG
$NO_LCCWIN
$NO_VKKEYS
$ACCELERATOR CustomKeys


It worked for me, it should work for you.

Hi MrBcx:

Placed $CPP at the top of the file, saved it, ran Build, translator output .cpp file.

Thanks, will keep fiddling.

Next, spaces in compiler PATH.

MrBcx

BED_371.zip has been refreshed.  Specifically, only the \Bed\Bat\ folder has been updated.

https://bcxbasiccoders.com/smf/index.php?topic=420.0

Some of the batch files had hard-coded paths to the BCX Translator which is
probably not the same on your computers.  Hopefully, this will stabilize the
batch files for a while.  My apologies for any inconvenience this may have caused.   

 

MrBcx

Robert,

I just noticed you said you were trying to compile BCX, not BED, which I hastily mis-read
in my previous visit to this thread.  Many apologies for the confusion I added to this.

I discovered that the driver batch files contain my hardcoded path to the translator:  C:\Bc\bc

I also discovered that Microsoft now wants it spelled out as an exe:  c:\Bc\bc.exe

So the correct line in the driver batch files SHOULD BE:

%BCX%\Bc.exe   %1>bcxout.txt
 

CALL %~dp0/vc32.bat %1 %2 %3 %4 %5 %6 %7 %8 %9   1>>bcxout.txt
CALL %~dp0/vc32.bat %1 %2 %3 %4 %5 %6 %7 %8 %9   2>>bcxout.txt


I don't how or when I reverted those lines in the batch files but I shall
update them all and refresh the 3.71.zip by later this evening.


Now with all of that said, this is my output from BED using the UCRT option:


BCX BASIC to C/C++ Translator (c) 1999-2025 by Kevin Diggins
Version 8.3.1 (10/25/2025) Compiled using LLVM-Clang (21.1.1) for 64-bit Windows
[Lines In: 40719 ] [Lines Out: 44023 ] [Statements: 36491 ] [Time: 1.41 Sec's]
BCX translated [Bc.Bas] to [Bc.Cpp] for a C++ Compiler
**********************************************************************
** Visual Studio 2022 Developer Command Prompt v17.0
** Copyright (c) 2022 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
**************************************************************************
MSVC is compiling [ "C:\Temp\Bc" ] as a 64-bit CONSOLE application.
Bc.cpp
Linking "C:\Temp\Bc"
**************************************************************************
SUCCESS: MSVC++ built [ "C:\Temp\Bc.exe" ]
**************************************************************************


MrBcx

Hi Robert,

All you need is to add $CPP at the top of the file and it will generate and build a C++ file from BED.

$CPP
$FILETEST ON
$GENFREE
$NOINI
$NO_BORLAND
$NO_GCC_CLANG
$NO_LCCWIN
$NO_VKKEYS
$ACCELERATOR CustomKeys


It worked for me, it should work for you.

Robert

Quote from: MrBcx on October 26, 2025, 08:50:10 PMA brief announcement and a BED Update Version 3.71 zip file have been added to the top post.

https://bcxbasiccoders.com/smf/index.php?topic=420.msg1802#msg1802

Hi MrBcx:

I'm feeling like an idiot. I'm trying to compile using MS Visual C++ (ucrt) and I can't get the BCX translator via BED to output a .cpp file. BCX via BED always translates to C. See attached images.

MrBcx

A brief announcement and a BED Update Version 3.71 zip file have been added to the top post.

https://bcxbasiccoders.com/smf/index.php?topic=420.msg1802#msg1802

jos

OK, now it works. I don't understand why? But now I'm happy and moving on.

Thanks

MrBcx

If you are logged on then this link should immediately download the file:

https://bcxbasiccoders.com/smf/index.php?action=dlattach;attach=1792

jos

Hi,
Unfortunately I have the same problem. :-[  I am logged in and cannot find the link to download BED ver 3.70.zip.

MrBcx

Luis,

After you spend some time with the new version of BED, I would appreciate a short review
of your impressions of it.  Personally, my favorite new function is the "Find In Files" dialog. 
That makes it super easy to find and jump to lines in one file or many files when we use the
Navigator "Load All $Include Files" option.


Luis Candelas


MrBcx

Quote from: Luis Candelas on August 31, 2025, 11:37:51 AMSorry, but I can't find it to download. "1.4MB BED Version 3.70 zip file have been added to the top post."
Can you tell me where I can find it, please?


Hi Luis - you must be logged on to the forum to see the link at the bottom of the first BED post:


This is BED ... abbreviation for BCX+Editor

Bed370_Update.zip, at the bottom of this post, contains only the updated dlls, exe,
source code, and syntax files.  Current users of BED won't need to worry about their
personal configurations being overwritten.  Betails of 3.70 are in Revisions.txt.


snipped for brevity ... blah, blah, blah ...

 
Unzip to your preferred location, install one or more of the supported compilers,
update the compiler path described in the included instructions, and begin enjoying BED.
If you enjoy developing with BCX, you will enjoy using this editor.

~ MrBcx ~


* Bed370_Update.zip
1.63 MB
downloaded 15 times