Code: Select all
?Val("1")
Sleep
Because of this, the IDE cannot start:
viewtopic.php?p=306853#p306853
Code: Select all
?Val("1")
Sleep
I cannot reproduce an overflow error. I tried UTF16LE format of source and latest development fbc 64-bit.Xusinboy Bekchanov wrote: ↑Mar 30, 2025 8:08 After compiling this example with the latest versions of the compiler 64-bit, this code will fail with an overflow error:This happens when the file is a Unicode version.Code: Select all
?Val("1") Sleep
Because of this, the IDE cannot start:
viewtopic.php?p=306853#p306853
The last one is the one from 03/16/2025?coderJeff wrote: ↑Mar 31, 2025 8:29I cannot reproduce an overflow error. I tried UTF16LE format of source and latest development fbc 64-bit.Xusinboy Bekchanov wrote: ↑Mar 30, 2025 8:08 After compiling this example with the latest versions of the compiler 64-bit, this code will fail with an overflow error:This happens when the file is a Unicode version.Code: Select all
?Val("1") Sleep
Because of this, the IDE cannot start:
viewtopic.php?p=306853#p306853
Hello, I found a solution to this problem. When copying the compiler from this link https://users.freebasic-portal.de/stw/builds/win64/ and copying the lib files without overwriting the existing lib files then this code works without problems. Thanks.Xusinboy Bekchanov wrote: ↑Apr 01, 2025 15:46The last one is the one from 03/16/2025?coderJeff wrote: ↑Mar 31, 2025 8:29I cannot reproduce an overflow error. I tried UTF16LE format of source and latest development fbc 64-bit.Xusinboy Bekchanov wrote: ↑Mar 30, 2025 8:08 After compiling this example with the latest versions of the compiler 64-bit, this code will fail with an overflow error:This happens when the file is a Unicode version.Code: Select all
?Val("1") Sleep
Because of this, the IDE cannot start:
viewtopic.php?p=306853#p306853
I have all the sources in UTF8 (BOM).
Code: Select all
Type UDT0
Dim As String * 10 s
End Type
Type UDT1
Dim As Integer i
Dim As String * 10 s
End Type
Type UDT2
Dim As String * 10 s
Dim As Integer i
End Type
Dim As UDT0 u0 = Type("FreeBASIC") '' ok
Dim As UDT1 u1 = Type(1, "FreeBASIC") '' compile error
Dim As UDT2 u2 = Type("FreeBASIC", 2) '' compile error
Code: Select all
Type UDT0
Dim As String * 10 s
End Type
Type UDT1
Dim As Integer i
Dim As String * 10 s
Declare Constructor(Byval _i As Integer, Byref _s As String)
End Type
Constructor UDT1(Byval _i As Integer, Byref _s As String)
i = _i
s = _s
End Constructor
Type UDT2
Dim As String * 10 s
Dim As Integer i
Declare Constructor(Byref _s As String, Byval _i As Integer)
End Type
Constructor UDT2(Byref _s As String, Byval _i As Integer)
s = _s
i = _i
End Constructor
Dim As UDT0 u0 = Type("FreeBASIC") '' ok
Dim As UDT1 u1 = Type(1, "FreeBASIC") '' ok
Dim As UDT2 u2 = Type("FreeBASIC", 2) '' ok
fxm, thanks for the report. I think the surface level bug is that the compiler error message doesn't describe the actual problem, so is confusing for the user what steps are needed to correct.
I really appreciate the packaged builds you put out. Super helpful, thank-you.
Code: Select all
ubuntu-14.04-x86 linux-x86
ubuntu-14.04-x86_64 linux-x86_64
ubuntu-16.04-x86 linux-x86
ubuntu-16.04-x86_64 linux-x86_64
ubuntu-18.04-x86 linux-x86
ubuntu-18.04-x86_64 linux-x86_64
ubuntu-20.04-x86_64 linux-x86_64
ubuntu-22.04-x86_64 linux-x86_64
ubuntu-24.04-x86_64 linux-x86_64
windows documentation
windows win32
windows win64
windows win32-mingworg
windows win32-gcc-5.2.0
windows win64-gcc-5.2.0
windows win32-gcc-7.1.0
windows win64-gcc-7.1.0
windows win32-gcc-8.1.0
windows win64-gcc-8.1.0
windows win32-gcc-11.2.0
windows win64-gcc-11.2.0
windows win32-gcc-13.2.0
windows win64-gcc-13.2.0
windows win32-winlibs-gcc-11.3.0
windows win64-winlibs-gcc-11.3.0
windows win32-winlibs-gcc-9.3.0
windows win64-winlibs-gcc-9.3.0
winxp dos
winxp win32-mingworg
raspbian9-arm linux-arm
rpios10-arm linux-arm
rpios11-arm linux-arm
rpios11-aarch64 linux-aarch64
rpios12-armhf linux-arm
rpios12-aarch64 linux-aarch64
debian11-arm linux-arm
debian12-armhf linux-arm
ubuntu-22.04-aarch64 linux-aarch64
ubuntu-24.04-aarch64 linux-aarch64
freebsd-13.0-x86 freebsd-x86
freebsd-13.0-x86_64 freebsd-x86_64
freebsd-13.4-x86 freebsd-x86
freebsd-13.4-x86_64 freebsd-x86_64