Version 1.04.0

For other topics related to the FreeBASIC project or its community.
fxm
Posts: 9529
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Version 1.04.0

Postby fxm » Oct 02, 2015 12:37

Thank dkl, for this release.

A short example by using 'Boolean' type and two 'Dim Byref' references (two base-references to derived objects) acting in polymorphic way:

Code: Select all

Type Parent Extends Object
    Declare Abstract Property rtnB () As Boolean
End Type

Type Child1 Extends Parent
    Declare Virtual Property rtnB () As Boolean Override
    Dim As Boolean b = False
End Type
Virtual Property Child1.rtnB () As Boolean
    Return This.b
End Property

Type Child2 Extends Parent
    Declare Virtual Property rtnB () As Boolean Override
    Dim As Boolean b = True
End Type
Virtual Property Child2.rtnB () As Boolean
    Return This.b
End Property


Dim As Child1 c1
Dim As Child2 c2

Dim Byref As Parent rpc1 = c1, rpc2 = c2

Print rpc1.rtnB
Print rpc2.rtnB

Sleep

Code: Select all

false
true
Last edited by fxm on Oct 02, 2015 20:26, edited 1 time in total.
Tourist Trap
Posts: 2815
Joined: Jun 02, 2015 16:24

Re: Version 1.04.0

Postby Tourist Trap » Oct 02, 2015 12:48

Thanks for this! At last some built-in boolean in fb. I already can tell that it will increase code exchange between fb and vb.net, for I had been prevented some months ago of doing so due to lack of this type.

Thanks also to developpers for the massive bug eradication!
srvaldez
Posts: 2253
Joined: Sep 25, 2005 21:54

Re: Version 1.04.0

Postby srvaldez » Oct 02, 2015 13:50

thank you for the release :)
Tourist Trap
Posts: 2815
Joined: Jun 02, 2015 16:24

Re: Version 1.04.0

Postby Tourist Trap » Oct 03, 2015 8:21

Hello,

are you aware of one install problem :
So here what I've done. As usual I won't use the setup, I'd go for the unzip-and-launch-package, here
untitled FreeBASIC-1.04.0-win32-mingworg pointed out as to be suitable for old systems (I suppose XP is so). After unpacking it, I launch FEDIT, set the new path to the new 1.04 folder, and launch a prog. Could be this :

Code: Select all

print  __FB_VERSION__ :  sleep

From here FBEDIT returns a missing dll, and this error:

Code: Select all

"error 90: Executable not found: 'C:\(...)-1.04.0(...)org\bin\win32\as.exe'

Then, seeming to be a file of the gcc toolchain, I've also unpacked this one provided as i686-5.2.0-release-win32-sjlj-rt_v4-rev0.7z. Bin directory has 'as.exe' . So I'd copy mingw32\bin with all its content to FreeBasic\FreeBASIC-1.04.0-win32-mingworg\bin\win32 and launch again a compilation that fortunately will succeed.

In conclusion, one or many files of the recent "toolchain" seems missing or out of date in the new 7zip package suffixed "win32-mingworg". If then you throw all the toolchain bin directory to the fb 'win32/bin/' it will fix this seemingly.

However, it is clearly an excessive method, since probably most of the 50 files of the gcc bin are not related to this issue. Best would be to be told what files should in fact go from the toolchain to 'win32/bin'? And of course one can only wish the correction to be propagated to the online repository.
fxm
Posts: 9529
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Version 1.04.0

Postby fxm » Oct 03, 2015 9:26

I work with Windows XP and I unzip only 'FreeBASIC-1.04.0-win32.zip', and in addition 'gcc-5.2.0-for-FB-win32-gengcc.zip' to be able to also compile with -gen gcc.
Tourist Trap
Posts: 2815
Joined: Jun 02, 2015 16:24

Re: Version 1.04.0

Postby Tourist Trap » Oct 03, 2015 9:28

fxm wrote:I work with Windows XP and I unzip only 'FreeBASIC-1.04.0-win32.zip', and in addition 'gcc-5.2.0-for-FB-win32-gengcc.zip' to be able to also compile with -gen gcc.

Ok I'll try that also. Generally I would never use any addition to the zip package however. It seems new to this version?
Last edited by Tourist Trap on Oct 03, 2015 9:31, edited 1 time in total.
fxm
Posts: 9529
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Version 1.04.0

Postby fxm » Oct 03, 2015 9:31

This should also work with Windows 2000.
dkl
Site Admin
Posts: 3210
Joined: Jul 28, 2005 14:45
Location: Germany

Re: Version 1.04.0

Postby dkl » Oct 03, 2015 10:42

Tourist Trap wrote:Hello,

are you aware of one install problem :
From here FBEDIT returns a missing dll, and this error:

Code: Select all

"error 90: Executable not found: 'C:\(...)-1.04.0(...)org\bin\win32\as.exe'



That's odd. I don't get that problem - if I look at the FreeBASIC-1.04.0-win32-mingworg.zip or .7z packages, they contain bin\win32\as.exe, and after extracting the archive I can use it to compile just fine.
Tourist Trap
Posts: 2815
Joined: Jun 02, 2015 16:24

Re: Version 1.04.0

Postby Tourist Trap » Oct 03, 2015 16:50

dkl wrote:That's odd. I don't get that problem - if I look at the FreeBASIC-1.04.0-win32-mingworg.zip or .7z packages, they contain bin\win32\as.exe, and after extracting the archive I can use it to compile just fine.

I also have an as.exe executable after unzipping (I did this from 7zip I think), but some lib sounding close to libicom2 or something like that makes FBEDIT complain about the dll when I'm launching from that IDE (I suppose it's not IDE dependant anyway).
Then as said above, if I get the content of Mingw32/bin, things go well again. I can try reproduce all that and give you more details later. Anyway this may occure to other users having some system similar to mine at some crucial point (?)
dafhi
Posts: 1329
Joined: Jun 04, 2005 9:51

Re: Version 1.04.0

Postby dafhi » Oct 04, 2015 21:36

I always get the Executable not found: as.exe .. when I have a particular directx game running in background
Tourist Trap
Posts: 2815
Joined: Jun 02, 2015 16:24

Re: Version 1.04.0

Postby Tourist Trap » Oct 05, 2015 17:36

dafhi wrote:I always get the Executable not found: as.exe .. when I have a particular directx game running in background

There seems to be something with as.exe.

More precisely, I've made some check focusing on 'as.exe'.
The version provided from the fb zip file clearly won't allow compilation in my system (xp) whereas things go well with the mingw32 (...rt_v4-rev0) version.
They are different files indeed:

fb --------> as.exe, 1 643 022 octets, jeudi 1 octobre 2015, 14:09:13
mingw32 ---> as.exe, 1 730 048 octets, jeudi 10 septem 2015, 11:56:12

By the way 'libiconv-2.dll' (probably packed in as.exe) is pointed as being missing, does it explain the size difference?
dkl
Site Admin
Posts: 3210
Joined: Jul 28, 2005 14:45
Location: Germany

Re: Version 1.04.0

Postby dkl » Oct 05, 2015 19:10

Oh, you're right, the as.exe needs libiconv-2.dll but that's not included in the package. So the win32-mingworg package is broken.

I'm going to upload a fixed package, with a -2 behind the version number.
bluatigro
Posts: 647
Joined: Apr 25, 2012 10:35
Location: netherlands

Version 1.04.0 problem

Postby bluatigro » Oct 09, 2015 8:39

i have a problem :

i downloaded the 32bit exe vesion and instalded it

i cant find the fbide in my freebasic1040 map
MrSwiss
Posts: 3364
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: Version 1.04.0

Postby MrSwiss » Oct 10, 2015 18:22

@dev's,

thanks a lot for the NEW version, great job!
Also for removing the unnecessary warnings on CBool()!

There seems to be a little issue with: Dim As Boolean a = Any : Print a
see compiler warning (from C backend) below:

Code: Select all

C:\FreeBASIC\FB1040\64bit\fbc -s console "Boolean.bas"
Boolean.c: In function 'main':
Boolean.c:110:20: warning: 'A$0' is used uninitialized in this function [-Wuninitialized]
  FBSTRING* vr$18 = fb_BoolToStr( A$0 );
                    ^
fxm
Posts: 9529
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Version 1.04.0

Postby fxm » Oct 10, 2015 18:28

Apparently no problem for 32bit (gas and gcc)!

Return to “Community Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests