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

General discussion for topics related to the FreeBASIC project or its community.
Post Reply
MOD
Posts: 557
Joined: Jun 11, 2009 20:15

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

Post by MOD »

Because of the last changes to the compiler, our build system is broken again and as we have audit period here, don't expect it to be fixed in the next couple of days.
fxm
Moderator
Posts: 12110
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

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

Post by fxm »

MOD wrote:Because of the last changes to the compiler, our build system is broken again and as we have audit period here, don't expect it to be fixed in the next couple of days.
It concerns the git-Daily-Builds at http://www.freebasic-portal.de/download ... uilds.html
fxm
Moderator
Posts: 12110
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

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

Post by fxm »

MOD wrote:Because of the last changes to the compiler, our build system is broken again and as we have audit period here, don't expect it to be fixed in the next couple of days.
Now it's been almost two months that there is no more build at http://www.freebasic-portal.de/download ... uilds.html
fxm
Moderator
Posts: 12110
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

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

Post by fxm »

fxm wrote:
MOD wrote:Because of the last changes to the compiler, our build system is broken again and as we have audit period here, don't expect it to be fixed in the next couple of days.
Now it's been almost two months that there is no more build at http://www.freebasic-portal.de/download ... uilds.html
@'freebasic-portal.de' team:
I did not get an answer to my above questionning.
Sebastian
Posts: 131
Joined: Jun 18, 2005 14:01
Location: Europe / Germany
Contact:

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

Post by Sebastian »

Sorry for the delay concerning the renewed daily build system.

Right at the moment I'm very busy at university. Therefore, my open source community activities go on slowlier than normal.

A few words about the backgrounds: There have been significant changes to the build process. We were completely overtaken by these changes, while I had believed the new daily build system would fit for at least the next 12 months or something like that so I wouldn't have to reengineer it so soon.

I'm on it. Stay tuned. :-)

Sorry for the inconvenience.
fxm
Moderator
Posts: 12110
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

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

Post by fxm »

Big thank you for taking some of your time to answer me, and good luck for the work to be done!
fxm
Moderator
Posts: 12110
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

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

Post by fxm »

Sebastian wrote:I'm on it. Stay tuned. :-)
Sebastian and freebasic-portal.de,
I often look at your daily build page.
I am eager to recover your next build of fbc in order to try and test the new branch "virtual"!
MOD
Posts: 557
Joined: Jun 11, 2009 20:15

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

Post by MOD »

Well, sorry but time is a negative factor here. At least I have uploaded some new builds:
fbc 0.25 for Windows
fbc 0.25 for Linux

I put just the binaries in it, this should be enought to use the new version by replacing the files of a 0.24 installation.

VIRTUAL and ABSTRACT are new keywords. Here are short examples to show the difference in usage (first one without anything, second with VIRTUAL and last one with ABSTRACT):

Code: Select all

Type Animal Extends Object
	Declare Function speak() As String
End Type
Function Animal.speak() As String
	Return "Nope, I don't think so."
End Function

Type Dog Extends Animal
	Declare Function speak() As String
End Type
Function Dog.speak() As String
	Return "bark"
End Function
Type Cat Extends Animal
	Declare Function speak() As String
End Type
Function Cat.speak() As String
	Return "miow"
End Function

Dim As Animal Ptr bello = New Dog
Dim As Animal Ptr kitty = New Cat
Dim As Animal Ptr anyty = New Animal

Print bello->speak()
Print kitty->speak()
Print anyty->speak()

If *bello Is Dog Then
	Print "He's a dog"
Else
	Print "He's not a dog"
EndIf
If *bello Is Cat Then
	Print "He's a cat"
Else
	Print "He's not a cat"
EndIf

Sleep

Code: Select all

Type Animal Extends Object
	Declare Virtual Function speak() As String
End Type
Function Animal.speak() As String
	Return "Nope, I don't think so."
End Function

Type Dog Extends Animal
	Declare Function speak() As String
End Type
Function Dog.speak() As String
	Return "bark"
End Function
Type Cat Extends Animal
	Declare Function speak() As String
End Type
Function Cat.speak() As String
	Return "miow"
End Function

Dim As Animal Ptr bello = New Dog
Dim As Animal Ptr kitty = New Cat
Dim As Animal Ptr anyty = New Animal

Print bello->speak()
Print kitty->speak()
Print anyty->speak()

If *bello Is Dog Then
	Print "He's a dog"
Else
	Print "He's not a dog"
EndIf
If *bello Is Cat Then
	Print "He's a cat"
Else
	Print "He's not a cat"
EndIf

Sleep

Code: Select all

Type Animal Extends Object
	Declare Abstract Function speak() As String
End Type

Type Dog Extends Animal
	Declare Function speak() As String
End Type
Function Dog.speak() As String
	Return "bark"
End Function
Type Cat Extends Animal
	Declare Function speak() As String
End Type
Function Cat.speak() As String
	Return "miow"
End Function

Dim As Animal Ptr bello = New Dog
Dim As Animal Ptr kitty = New Cat
'Dim As Animal Ptr anyty = New Animal

Print bello->speak()
Print kitty->speak()
'Print anyty->speak()

If *bello Is Dog Then
	Print "He's a dog"
Else
	Print "He's not a dog"
EndIf
If *bello Is Cat Then
	Print "He's a cat"
Else
	Print "He's not a cat"
EndIf

Sleep
Edit: Commented out the declaration of 'anyty' in the third example as it's no more allowed.
Last edited by MOD on Dec 07, 2012 22:09, edited 1 time in total.
fxm
Moderator
Posts: 12110
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

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

Post by fxm »

- Thanks MOD, but when I compile even an empty program, I get the following error message:

Command executed:
"d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\fbc.exe" "d:\Documents and Settings\t0003830\Mes documents\FBIde0.4.6r4\FBIDETEMP.bas"

Compiler output:
d:\DOCUME~1\t0003830\MESDOC~1\FREEBA~1.0\bin\win32\ld.exe: cannot find -lgcc_eh

Results:
Compilation failed

System:
FBIde: 0.4.6
fbc: FreeBASIC Compiler - Version 0.25.0 (11-10-2012) for win32
OS: Windows XP (build 2600, Service Pack 3)
MOD
Posts: 557
Joined: Jun 11, 2009 20:15

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

Post by MOD »

Right, you need to copy the latest libs from gcc to FBs lib-folder. The official version is compiled with TDM-GCC, but I use the good old MinGW. You will find the libs under /lib/gcc/mingw32/4.7.0/.
fxm
Moderator
Posts: 12110
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

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

Post by fxm »

I do not have administrator rights on my PC Professional.
I downloaded this file: gcc-core-4.7.0-1-mingw32-bin.tar.lzma

Is it well because I get these errors with your first example (without virtual neither abstract):
Compiler output:
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(new_op.o):new_op.cc:(.text+0x30): undefined reference to `_Unwind_SjLj_Register'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(new_op.o):new_op.cc:(.text+0x77): undefined reference to `_Unwind_SjLj_Unregister'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(new_op.o):new_op.cc:(.text+0xcd): undefined reference to `_Unwind_SjLj_Resume'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_personality.o):eh_personality.cc:(.text+0x393): undefined reference to `_Unwind_SjLj_Register'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_personality.o):eh_personality.cc:(.text+0x3bc): undefined reference to `_Unwind_SjLj_Unregister'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_personality.o):eh_personality.cc:(.text+0x96e): undefined reference to `_Unwind_SjLj_Register'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_personality.o):eh_personality.cc:(.text+0xa64): undefined reference to `_Unwind_SjLj_Resume'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_alloc.o):eh_alloc.cc:(.text+0x4d): undefined reference to `_Unwind_SjLj_Register'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_alloc.o):eh_alloc.cc:(.text+0x94): undefined reference to `_Unwind_SjLj_Unregister'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_alloc.o):eh_alloc.cc:(.text+0x18d): undefined reference to `_Unwind_SjLj_Resume'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_alloc.o):eh_alloc.cc:(.text+0x1c8): undefined reference to `_Unwind_SjLj_Register'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_alloc.o):eh_alloc.cc:(.text+0x1f7): undefined reference to `_Unwind_SjLj_Unregister'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_alloc.o):eh_alloc.cc:(.text+0x2e0): undefined reference to `_Unwind_SjLj_Resume'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_alloc.o):eh_alloc.cc:(.text+0x31d): undefined reference to `_Unwind_SjLj_Register'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_alloc.o):eh_alloc.cc:(.text+0x352): undefined reference to `_Unwind_SjLj_Unregister'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_alloc.o):eh_alloc.cc:(.text+0x442): undefined reference to `_Unwind_SjLj_Resume'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_alloc.o):eh_alloc.cc:(.text+0x47c): undefined reference to `_Unwind_SjLj_Register'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_alloc.o):eh_alloc.cc:(.text+0x4a8): undefined reference to `_Unwind_SjLj_Unregister'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_alloc.o):eh_alloc.cc:(.text+0x5a4): undefined reference to `_Unwind_SjLj_Resume'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_throw.o):eh_throw.cc:(.text+0x8d): undefined reference to `_Unwind_SjLj_RaiseException'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_throw.o):eh_throw.cc:(.text+0xf0): undefined reference to `_Unwind_SjLj_Resume_or_Rethrow'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_terminate.o):eh_terminate.cc:(.text+0x30): undefined reference to `_Unwind_SjLj_Register'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_terminate.o):eh_terminate.cc:(.text+0x84): undefined reference to `_Unwind_SjLj_Register'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_terminate.o):eh_terminate.cc:(.text+0xc6): undefined reference to `_Unwind_SjLj_Resume'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_terminate.o):eh_terminate.cc:(.text+0x12c): undefined reference to `_Unwind_SjLj_Register'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_terminate.o):eh_terminate.cc:(.text+0x14d): undefined reference to `_Unwind_SjLj_Unregister'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_terminate.o):eh_terminate.cc:(.text+0x187): undefined reference to `_Unwind_SjLj_Resume'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_terminate.o):eh_terminate.cc:(.text+0x1c0): undefined reference to `_Unwind_SjLj_Register'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_terminate.o):eh_terminate.cc:(.text+0x1e1): undefined reference to `_Unwind_SjLj_Unregister'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_terminate.o):eh_terminate.cc:(.text+0x21b): undefined reference to `_Unwind_SjLj_Resume'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_globals.o):eh_globals.cc:(.text+0xc3): undefined reference to `__shmem_grab'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_globals.o):eh_globals.cc:(.text+0xe7): undefined reference to `__shmem_grab'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_globals.o):eh_globals.cc:(.text+0x120): undefined reference to `_Unwind_SjLj_Register'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_globals.o):eh_globals.cc:(.text+0x15a): undefined reference to `_Unwind_SjLj_Unregister'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_globals.o):eh_globals.cc:(.text+0x1cf): undefined reference to `_Unwind_SjLj_Resume'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_globals.o):eh_globals.cc:(.text+0x208): undefined reference to `_Unwind_SjLj_Register'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_globals.o):eh_globals.cc:(.text+0x24e): undefined reference to `_Unwind_SjLj_Unregister'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_globals.o):eh_globals.cc:(.text+0x331): undefined reference to `_Unwind_SjLj_Resume'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_unex_handler.o):eh_unex_handler.cc:(.text+0x27): undefined reference to `__shmem_grab'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(eh_term_handler.o):eh_term_handler.cc:(.text+0x27): undefined reference to `__shmem_grab'
d:\Documents and Settings\t0003830\Mes documents\FreeBASIC-0.25.0\lib\win32/libsupc++.a(vterminate.o):vterminate.cc:(.text+0x30): undefined reference to `_Unwind_SjLj_Register'
MOD
Posts: 557
Joined: Jun 11, 2009 20:15

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

Post by MOD »

Download the package again, I've added the lib folder.
D.J.Peters
Posts: 8586
Joined: May 28, 2005 3:28
Contact:

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

Post by D.J.Peters »

will be all kind of class operators virtual and abstact too ?

Joshy
fxm
Moderator
Posts: 12110
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

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

Post by fxm »

Many thanks, MOD!
Now I can play with the virtual/abstract methods/destructors!

Just a little remark:
Impossibility to use resource script (.rc), even with 'bin\win32\windres.exe' requested by compiler.
But just for testing the branch "virtual", this is not important at all!
Last edited by fxm on Nov 10, 2012 20:11, edited 1 time in total.
MOD
Posts: 557
Joined: Jun 11, 2009 20:15

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

Post by MOD »

Updated the builds. Same links as above.

(Btw. you can check the latest build date here.)
Post Reply