Search found 348 matches
- Apr 26, 2025 1:12
- Forum: General
- Topic: which version of gdb.exe for FreeBASIC Version 1.20.0 windows 32-bit (standalone) ?
- Replies: 25
- Views: 1315
Re: which version of gdb.exe for FreeBASIC Version 1.20.0 windows 32-bit (standalone) ?
With Gdb 15.0.90 weekly from https://sourceware.org/pub/gdb/snapshots/branch/ and the environment I use to build FB with, I built it like this: In the top level directory (the one with the bfd and gnulib folders) configure --host=x86_64-w64-mingw32 --disable-sim --disable-shared --enable-static --di...
- Apr 07, 2025 19:24
- Forum: Documentation
- Topic: /wiki/CompilerOptfpmode
- Replies: 5
- Views: 1211
Re: /wiki/CompilerOptfpmode
That doesn't make sense because this entire line just isn't true (any more)
No problems.
Try it.Using -fpmode PRECISE is dependent on the -fpu SSE command line option. Using -fpmode PRECISE without using -fpu SSE will generate an error.
Code: Select all
fbc32 -fpmode PRECISE -fpu x87 whatever.bas
- Mar 25, 2025 21:21
- Forum: Windows
- Topic: DPI_AWARENESS_CONTEXT
- Replies: 14
- Views: 1366
Re: DPI_AWARENESS_CONTEXT
It's in my modern Win32 headers and libs from the metadata Microsoft publish (https://www.freebasic.net/forum/viewtopic.php?t=32786). They're architected differently to the SDK headers, so this stuff is in ui.hidpi.bi rather than winuser.bi or whatever it's normally in. The metadata is laid out in 3...
- Mar 25, 2025 3:09
- Forum: Windows
- Topic: Windows API returning zero
- Replies: 3
- Views: 574
Re: Windows API returning zero
dwSize A COORD structure that specifies the new size of the console screen buffer, in character rows and columns. The specified width and height cannot be less than the width and height of the console screen buffer's window . The specified dimensions also cannot be less than the minimum size allowe...
- Mar 21, 2025 23:22
- Forum: Windows
- Topic: Very basic process CPU load determiner
- Replies: 112
- Views: 23636
Re: Very basic process CPU load determiner
Dragging things off-topic as is my raison d'etre here. Dim As HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, False, iPID) I changed this to PROCESS_VM_READ Or PROCESS_QUERY_LIMITED_INFORMATION in order to get this to work with elevated processes too, as the access control for those says that non-...
- Mar 17, 2025 22:40
- Forum: Projects
- Topic: DWSTRING revisited (New version)
- Replies: 6
- Views: 1428
Re: DWSTRING revisited (New version)
PRIVATE FUNCTION DWSTRING.Add (BYREF ansiStr AS STRING, BYVAL nCodePage AS UINT = 0) AS BOOLEAN DWSTRING_DP("DWSTRING Add - STRING") IF .LEN(ansiStr) = 0 THEN RETURN FALSE ' // Create the wide string from the incoming ansi string DIM dwLen AS UINT, pbuffer AS ANY PTR IF nCodePage = CP_UTF...
- Feb 16, 2025 1:40
- Forum: Linux
- Topic: Compiler built from source and not installed cannot find BI files
- Replies: 4
- Views: 1396
Re: Compiler built from source and not installed cannot find BI files
I have built it on Linux but that was ages ago so I've forgotten but on Windows, if you want your built compiler to behave like the premade ones in terms of includes, you have to build the compiler with ENABLE_STANDALONE=1 on the make line or in config.mk make ENABLE_STANDALONE=1 FBC=/usr/local/bin/...
- Feb 11, 2025 3:00
- Forum: Community Discussion
- Topic: Audio library for FreeBasic - Features
- Replies: 187
- Views: 78304
Re: Audio library for FreeBasic - Features
Why does it happen? Someone misread or misunderstood the man page for pthread_attr_setstacksize. That's been on the wiki page since the dawn of time so who knows what the man page said then, but now it says: A thread's stack size is fixed at the time of thread creation. Only the main thread can dyn...
- Jan 22, 2025 2:36
- Forum: Beginners
- Topic: -m compilation flag doesn't appear to respect modules that belong to subfolders
- Replies: 6
- Views: 1137
Re: -m compilation flag doesn't appear to respect modules that belong to subfolders
'main' module doesn't mean 'best, most important, first' module, it literally means the module where the compiler puts the startup code (ie the function called main). All global code runs before the startup code starts and any in the 'main' module gets put into the startup code. Which if anything, g...
- Jan 20, 2025 5:58
- Forum: Community Discussion
- Topic: I may be emigrating.
- Replies: 35
- Views: 7746
Re: I may be emigrating.
It's kind of sad in a way. If you read the posts from about the time, all the noise was about 'we need to cement Bob's legacy', 'we need to do him proud' etc, and in the end his legacy got spaffed up the wall before his coffin could even get dirty. Watch for new products to be announced. Bob created...
- Jan 10, 2025 2:51
- Forum: Community Discussion
- Topic: I may be emigrating.
- Replies: 35
- Views: 7746
Re: I may be emigrating.
sorry, but what can we met in BCX only, but not in freebasic? If one is being particularly churlish: dim s as sting for i = 1 to 10 s += "Hello there" next pause It's pretty much a tool that's one level up from 'dumb' translator. Any typos like that are left to the C compiler to sort out,...
- Jan 01, 2025 7:17
- Forum: Community Discussion
- Topic: Basic programmer will die?
- Replies: 54
- Views: 14844
Re: Basic programmer will die?
Need more features in FreeBASIC?: Then get off your fat arse and ask for them. idk man. There hasn't been any updates, even to Jeff's 'private work' repo for 7 months now. Don't get me wrong, I don't in any way begrude the guy any sort of break from volunteering in a role it sounds like he didn't p...
- Dec 18, 2024 20:08
- Forum: Community Discussion
- Topic: Adapting to change
- Replies: 53
- Views: 13857
Re: Adapting to change
I drove my Toyota in France once. It was MR2.
I know it's old but you don't get many sorta-multilingual puns
I know it's old but you don't get many sorta-multilingual puns
- Dec 16, 2024 2:14
- Forum: Windows
- Topic: SOLVED: Issue with Windows 2000 Professional
- Replies: 30
- Views: 8496
Re: SOLVED: Issue with Windows 2000 Professional
Good job. I like those problems where it gets into your brain and you have to do it or you can't stop until you have I once reverse engineered The Three Stooges: Brides is Brides arcade game because I saw someone play it on twitch and he said 'Oh yeah, it has this weird bug where instead of giving y...
- Dec 14, 2024 1:20
- Forum: Beginners
- Topic: Static scope or data initialization
- Replies: 18
- Views: 4880
Re: Static scope or data initialization
Would it be similarly mysterious if it was instead Function ArraySize() As Long Return 1023 End Function Static As Long array(ArraySize()) (I don't know if this works, it's just for illustration) Same deal, just that Type<> is a built-in language thing rather than a function you write yourself.