CAN'T INSTALL FreeBASIC On Windows 11

Windows specific questions.
Post Reply
Extractor
Posts: 2
Joined: Feb 24, 2022 16:56

CAN'T INSTALL FreeBASIC On Windows 11

Post by Extractor »

This is regarding problems regarding installing FreeBASIC .08 or .09 on a new computer (HP) with a new install of Windows 11.
The zip files are extracted OK.
Pick the .exe file, but a rectangle black box appears momentarily and disappears with no install.
Other programs have installed from a .exe with no problem.
The registries are scanned OK and the Windows 11 install was checked out to be OK.
No integrity problems.
Using AMD Ryzen 5000 series processor.

No problems with FreeBasic on another Windows 10 computer.
Imortis
Moderator
Posts: 1923
Joined: Jun 02, 2005 15:10
Location: USA
Contact:

Re: CAN'T INSTALL FreeBASIC On Windows 11

Post by Imortis »

That is what should happen when FBC.exe is run. it is a commandline compiler. There is no builtin editor or display.
deltarho[1859]
Posts: 4292
Joined: Jan 02, 2017 0:34
Location: UK
Contact:

Re: CAN'T INSTALL FreeBASIC On Windows 11

Post by deltarho[1859] »

@imortis

What kind of response is that?
Extractor wrote:No problems with FreeBasic on another Windows 10 computer.
The issue is with Windows 11 and the giveaway is in the title of this thread.

My current status with this forum is a sabbatical for a month.

I am updating that to: Indefinite leave of absence.
fxm
Moderator
Posts: 12081
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: CAN'T INSTALL FreeBASIC On Windows 11

Post by fxm »

Maybe he is using the FreeBASIC installer (the .exe file) ?

deltarho[1859] wrote: Mar 06, 2022 12:54 @imortis

What kind of response is that?
Extractor wrote:No problems with FreeBasic on another Windows 10 computer.
The issue is with Windows 11 and the giveaway is in the title of this thread.

My current status with this forum is a sabbatical for a month.

I am updating that to: Indefinite leave of absence.
Why this attitude?
Imortis like me do what we can with a not very precise description of the behavior.
dodicat
Posts: 7976
Joined: Jan 10, 2006 20:30
Location: Scotland

Re: CAN'T INSTALL FreeBASIC On Windows 11

Post by dodicat »

I would, personally, just use the .zip which extracts everything into your chosen folder (On the desktop I suggest).
I never use the .exe installer, I believe since windows 98 or thereabouts.
I don't have win 11 here, but the time has come to have a peek at Ebay.
Wot's up deltarho[]??, I am still here solely 'cos this language is so addictive,( And it is a lazy Sunday afternoon and the big wide world is a bit frightening these days).
Extractor, with a name like that it should be a breeze, unless Win 11 has some horrors.
Win 10 had, but most folk have got over that by now.
deltarho[1859]
Posts: 4292
Joined: Jan 02, 2017 0:34
Location: UK
Contact:

Re: CAN'T INSTALL FreeBASIC On Windows 11

Post by deltarho[1859] »

@dodicat

I have just attempted to send you a pm. I was told that it was sent, but it has not appeared in the 'Sent messages' folder and is stuck in my 'Outbox' folder. I sent a pm to myself and that worked fine. Have you got private messages disabled?
coderJeff
Site Admin
Posts: 4313
Joined: Nov 04, 2005 14:23
Location: Ontario, Canada
Contact:

Re: CAN'T INSTALL FreeBASIC On Windows 11

Post by coderJeff »

My understanding of PM's is that the message stays in the outbox until the recipient opens their inbox (or reads it, still not quite sure).
https://www.phpbb.com/support/docs/en/3 ... m_folders/
deltarho[1859]
Posts: 4292
Joined: Jan 02, 2017 0:34
Location: UK
Contact:

Re: CAN'T INSTALL FreeBASIC On Windows 11

Post by deltarho[1859] »

@coderJeff

Thanks for that. Looks like in 'Outbox' until read. That is quite clever. Assuming dodicat receives notifications then perhaps he is out walking his dogs. :)
caseih
Posts: 2157
Joined: Feb 26, 2007 5:32

Re: CAN'T INSTALL FreeBASIC On Windows 11

Post by caseih »

deltarho[1859] wrote: Mar 06, 2022 12:54 @imortis

What kind of response is that?
An accurate response. What you would have him say? Windows 11 isn't the problem. The OP apparently did not understanding that FBC is a command-line app--when you double-click it it will do the same thing in any version of Windows. Is it Imortis' responsibility to teach the poster how to download and install a third party IDE or text editor? It's completely fair and reasonable to expect @Extractor to put in some effort to learn what a command line is. All the popular languages ship primarily with command-line compilers these days. Ruby, Rust, Python, Go, and even Javascript.

To the OP, please read the online wiki documentation. It's very good. If there's a deficiency in the documentation, please discuss that here and even contribute. Start here:
https://www.freebasic.net/wiki/CompilerRunning
https://www.freebasic.net/wiki/CompilerCmdLine
deltarho[1859]
Posts: 4292
Joined: Jan 02, 2017 0:34
Location: UK
Contact:

Re: CAN'T INSTALL FreeBASIC On Windows 11

Post by deltarho[1859] »

I broke my sabbatical to question imortis and at the same time mention my forum status update. I didn't see imortis' post – someone put me wise to it.

I needed to speak with dodicat because it looked like my pm had not actually been sent. I also needed to thank coderJeff for explaining how pms worked.

I won't be responding to anything else.
aurelVZAB
Posts: 666
Joined: Jul 02, 2008 14:55
Contact:

Re: CAN'T INSTALL FreeBASIC On Windows 11

Post by aurelVZAB »

Hmm .. i recently see few questions ...like a pattern
they all looks to me like a provocation or very close to that
Extractor
Posts: 2
Joined: Feb 24, 2022 16:56

Re: CAN'T INSTALL FreeBASIC On Windows 11

Post by Extractor »

Imortis wrote: Mar 06, 2022 2:58 That is what should happen when FBC.exe is run. it is a commandline compiler. There is no builtin editor or display.
This was the problem. Forgot the compiler when moving files to new Windows 11 computer and
left the fbide.exe file in the downloads folder on old Windows 10 laptop and forgot it was needed for FreeBASIC install.
got the file again at: https://sourceforge.net/projects/fbide/
after installing fbide.exe got this error: Compiler error
X Compiler path is either not set or is corrupt. Set correct path now? Yes / No
I answered yes and found the fbc.exe and fbc32.exe and fbc64.exe in Windows 11 downloads folder.
I set the compiler path and now it works fine, but should I use the fbc64.exe instead of fbc.exe ?
Thanks for the help.
St_W
Posts: 1619
Joined: Feb 11, 2009 14:24
Location: Austria
Contact:

Re: CAN'T INSTALL FreeBASIC On Windows 11

Post by St_W »

Extractor wrote: Mar 10, 2022 22:05I set the compiler path and now it works fine, but should I use the fbc64.exe instead of fbc.exe ?
That mostly depends on what you want. If you want to build 32-bit applications then use fbc32.exe, if you want to build 64-bit applications use fbc64.exe. The third one, fbc.exe must be from some different FreeBasic compiler install and is probably an older 32-bit version. you can check by executing fbc -version in the folder where the fbc.exe is located on the command line. A recent version e.g. could show something like this:

Code: Select all

FreeBASIC Compiler - Version 1.10.0 (2022-03-02), built for win64 (64bit)
Copyright (C) 2004-2021 The FreeBASIC development team.
standalone
dodicat
Posts: 7976
Joined: Jan 10, 2006 20:30
Location: Scotland

Re: CAN'T INSTALL FreeBASIC On Windows 11

Post by dodicat »

I keep two copies of fbide with shortcuts to both on the desktop.
One for 64 bit, one for 32 bit.
Done that since 64 bit came out.
Better to run any code through both compilers to test for bugs, also test -gen gas64 on the 64 bit compiler.
It is easily done now in fbide, just put your options in the code:

#cmdline "-gen gas64"

...
your code
...
example

Code: Select all

#cmdline "-gen gas64 -v"

Screen 20
#define map(a,b,x,c,d) ((d)-(c))*((x)-(a))/((b)-(a))+(c)
Dim As Single d,y
Do
    d-=.05
    Screenlock
    Cls
    
    For n As Long=0 To 1024
        Var ypos=map(-1,1,Sin(n/75+d),600,700)
        Pset(n,ypos)
        If n=500 Then y=ypos
    Next n
    Draw String(450,120),"compression"
    Draw String(450,140),"chamber"
   
    Line(500-50,100)-(500+50,500),,b
    Line(500-50,250)-(500-10,250)
    Line(500+10,250)-(500+50,250)
    Var cy=map(600,700,y,285,250)
    If y>610 Then cy=294
    Circle(500,cy-50),12,,,,,f
    Line(500-50,500)-(500+50,500),0
    Line(500,y)-(500,y-300)
    Line(500-50,y-300)-(500+50,y-300)
    Line(500+50,250)-(500+50,500),0
    Line(500+50,250)-(500+50,270)
    Line(500+50,290)-(500+50,500)
    cy=map(600,700,y,545,535)
    If y<690 Then cy=545
    Circle(cy,280),12,,,,,f
    Circle(500,y),50,15,,,,f
     draw string(480,y-15),"Float",0
    Screenunlock
    Sleep 1
    Loop Until Inkey=Chr(27) 
Post Reply