Search found 1414 matches

by St_W
Nov 26, 2018 13:59
Forum: Community Discussion
Topic: Dim Byref syntax
Replies: 134
Views: 11700

Re: Dim Byref syntax

I don't think that you can do that without using pointers explicitly. I would even have expected the application to crash when you " return *cptr(tt ptr, 0) ", because you're returning an object. And this object is constructed from the dereferenced null reference, which should call...
by St_W
Nov 24, 2018 21:35
Forum: General
Topic: Using a DLL
Replies: 8
Views: 198

Re: Using a DLL

Thanks a lot for explaining this behaviour. I would drop the "obviously", though - the linker might as well use the file name of the DLL, or at least check if there is a conflict between file and library name, and issue a warning. Sorry, used the wrong word there, I meant "apparently...
by St_W
Nov 24, 2018 20:39
Forum: Community Discussion
Topic: New website
Replies: 45
Views: 4869

Re: New website

Thanks to whoever (finally) fixed the CSS to make tt tags work again!
by St_W
Nov 24, 2018 20:35
Forum: General
Topic: Using a DLL
Replies: 8
Views: 198

Re: Using a DLL

You are not providing an import library for your dll file, thus FreeBasic (or the GNU Linker "ld", to be more precise) creates a default one for you. And this obviously respects the library name as defined in the DLLs export directory (using dumpbin ConsoleInput.dll /exports ): Dump of fil...
by St_W
Nov 21, 2018 15:53
Forum: General
Topic: Coders
Replies: 52
Views: 835

Re: Coders

Initializers in FB are limited, for example the issue with your first example is that you can't initialize variable-length strings in UDTs with an initializer. Excluding members from initialization isn't possible - at least I don't know a way to do so either. IMHO your proposed syntax is neither cle...
by St_W
Nov 21, 2018 14:30
Forum: General
Topic: Coders
Replies: 52
Views: 835

Re: Coders

Munair wrote:BTW, it would be nice if FB would support syntax like [...]

Actually it does:

Code: Select all

type Typed64Bits
    value as string * 8
end type

dim s as Typed64Bits = ("testtest")

print s.value

see also https://freebasic.net/wiki/wikka.php?wakka=KeyPgDim ("initializers")
by St_W
Nov 21, 2018 8:18
Forum: Hardware Interfaces / Communication
Topic: Raspberry Pi and FreeBASIC
Replies: 16
Views: 2028

Re: Raspberry Pi and FreeBASIC

You can also install the latest Git build using these commands on RPi 2, 3 and higher: wget http://users.freebasic-portal.de/stw/builds/linux-armv7a-hf-debian/freebasic.deb wget http://users.freebasic-portal.de/stw/builds/freebasic-headers.deb sudo dpkg -i freebasic.deb sudo dpkg -i freebasic-header...
by St_W
Nov 21, 2018 1:53
Forum: Community Discussion
Topic: Where can I get a Recent-Git-Build of FreeBASIC?
Replies: 421
Views: 55493

Re: Where can I get a Recent-Git-Build of FreeBASIC?

I've added a few build jobs to create & upload Debian package (.deb) files for the Linux builds. Those should simplify a default installation of freebasic on a Debian-based system (like Ubuntu or Raspbian). Only the latest version is available as of now and the files are overwritten when a new v...
by St_W
Nov 19, 2018 14:33
Forum: Linux
Topic: Best Distro for FB
Replies: 38
Views: 2272

Re: Best Distro for FB

Debian is focused on stability and security and thus often the latest version of an application is not available in its package repositories. If you want that use another distro, like Ubuntu, which is based on Debian but also provides recent application versions in its repositories (at the cost of s...
by St_W
Nov 16, 2018 13:37
Forum: Community Discussion
Topic: Have anyone an complete updated Freebasic?
Replies: 29
Views: 879

Re: Have anyone an complete updated Freebasic?

I actually never used MINGW but it is also for Unix-like systems, apparently. I can install it directly from the software repository here on Manjaro Linux. It allows to cross compile applications on Linux for Windows. So you can create Windows applications on your Linux system. But you can't run th...
by St_W
Nov 16, 2018 8:40
Forum: Community Discussion
Topic: Have anyone an complete updated Freebasic?
Replies: 29
Views: 879

Re: Have anyone an complete updated Freebasic?

http://users.freebasic-portal.de/stw/builds/ Note that these are really just the fbc builds containing only what's necessary to build fbc itself. As dodicat already suggested, if you're looking for a complete package I'd recommend to go with WinFBE suite, which includes 32-bit and 64-bit fbc from a...
by St_W
Nov 15, 2018 15:00
Forum: Projects
Topic: FBIde 0.4.6 r3 Avilable now
Replies: 77
Views: 22282

Re: FBIde 0.4.6 r3 Avilable now

dodicat wrote:I have the C source code for fbide

You have? I thought that it was lost (at least a significant part of it, only very old versions survived) and that's why development on fbide stopped back then?
by St_W
Nov 15, 2018 14:51
Forum: General
Topic: possible bug
Replies: 15
Views: 267

Re: possible bug

setjmp is implemented is part of the CRT and is implementation specific. Different systems, architectures or CRT implementations can use different datatypes for the jmp_buf parameter of that function. You seemed to link with an incompatible CRT, causing issues at link- or runtime.
by St_W
Nov 15, 2018 14:33
Forum: General
Topic: possible bug
Replies: 15
Views: 267

Re: possible bug

remove that function declaration entirely and replace calls to _setjmp by "setjmp" (without underscore).

edit: or better #define _setjmp setjmp on win32, not to break the implementation for other systems/architectures
by St_W
Nov 15, 2018 11:07
Forum: Projects
Topic: FBIde 0.4.6 r3 Avilable now
Replies: 77
Views: 22282

Re: FBIde 0.4.6 r3 Avilable now

ur_naz wrote:fbide is dead for 6 yrs

I think it's even longer, something > 10 years. It's a miracle why anybody would still want to use it nowadays as there are so many, so much better replacements available.

Go to advanced search