MOD wrote:From today we have new builds from Git on
FreeBASIC Portal.
For now, it's a transitional solution (in ger. "Übergangslösung",). They're not daily builds and DOS is missing, but I try to compile and upload new versions right after changes are submitted to the fbc repo.
This build (Windows) works for classic programs but does not work for the new features!
- Testing this build (Windows) with the example of the keyword 'Threadcall' in documentation, I obtain this compiler error:
Code: Select all
'' Threading using "ThreadCall"
Sub thread( id As String, tlock As Any Ptr )
For i As Integer = 1 To 10
MutexLock tlock
Print "Loop"; id; "is on iteration"; i
MutexUnlock tlock
Next i
End Sub
Dim tlock As Any Ptr = MutexCreate()
Dim a As Any Ptr = ThreadCall thread("A", tlock)
Dim b As Any Ptr = ThreadCall thread("B", tlock)
ThreadWait a
ThreadWait b
MutexDestroy tlock
Print "All done (and without Dim Shared!)"
Command executed:
"d:\Documents and Settings\t0003830\Mes documents\fbc0.24_windows20120104\fbc.exe" "d:\Documents and Settings\t0003830\Mes documents\FBIde0.4.6\FBIDETEMP.bas" -exx
Compiler output:
d:\Documents and Settings\t0003830\Mes documents\fbc0.24_windows20120104\lib/libmingw32.a(main.o): In function `main':
C:\MinGW\msys\1.0\src\mingwrt/../mingw/main.c:73: undefined reference to `WinMain@16'
Results:
Compilation failed
System:
FBIde: 0.4.6
fbc: FreeBASIC Compiler - Version 0.24.0 (01-04-2012) for win32
OS: Windows XP (build 2600, Service Pack 3)
- Similar problem for OOP:
Command executed:
"d:\Documents and Settings\t0003830\Mes documents\fbc0.24_windows20120104\fbc.exe" "d:\Documents and Settings\t0003830\Mes documents\FBIde0.4.6\FBIDETEMP.bas" -exx
Compiler output:
d:\Documents and Settings\t0003830\Mes documents\fbc0.24_windows20120104\lib/libmingw32.a(main.o): In function `main':
C:\MinGW\msys\1.0\src\mingwrt/../mingw/main.c:73: undefined reference to `WinMain@16'
Results:
Compilation failed
System:
FBIde: 0.4.6
fbc: FreeBASIC Compiler - Version 0.24.0 (01-04-2012) for win32
OS: Windows XP (build 2600, Service Pack 3)