How to made a 32 bits program with 64 bits FB?
-
- Posts: 375
- Joined: Mar 15, 2015 12:41
How to made a 32 bits program with 64 bits FB?
Me again, sorry.
I did a programm that works fine in my 64 bits PC but do not work in my old 32 bits PC.
I think the problem is I used the 64 bits FB.
Is there anyway to compile my programm using the 64 bits FB in a way it runs in a 32 bits machine? I do not want to installa 32 bits FB.
Thanks.
I did a programm that works fine in my 64 bits PC but do not work in my old 32 bits PC.
I think the problem is I used the 64 bits FB.
Is there anyway to compile my programm using the 64 bits FB in a way it runs in a 32 bits machine? I do not want to installa 32 bits FB.
Thanks.
Re: How to made a 32 bits program with 64 bits FB?
Last edited by caseih on Jun 21, 2021 0:19, edited 2 times in total.
Re: How to made a 32 bits program with 64 bits FB?
hi Luis Babboni
download the combined 32bit and 64bit standalone version from the news section, with the combined version you can use FBx64 to produce 32-bit executable, but also have the 32-bit compiler there so this tip is worthless, nevertheless if you want to compile to 32 with the 64-bit compiler pass -arch 486 on the compile command, as caseih said you need the 32-bit libraries without them this won't work
download the combined 32bit and 64bit standalone version from the news section, with the combined version you can use FBx64 to produce 32-bit executable, but also have the 32-bit compiler there so this tip is worthless, nevertheless if you want to compile to 32 with the 64-bit compiler pass -arch 486 on the compile command, as caseih said you need the 32-bit libraries without them this won't work
-
- Posts: 375
- Joined: Mar 15, 2015 12:41
Re: How to made a 32 bits program with 64 bits FB?
Thanks guys! :-)
-
- Posts: 375
- Joined: Mar 15, 2015 12:41
Re: How to made a 32 bits program with 64 bits FB?
Sorry. I install the standalone version for 32 and 64 bits.... but do not know how to compile a 32 bit version now from FBEdit :-(srvaldez wrote:hi Luis Babboni
download the combined 32bit and 64bit standalone version from the news section, with the combined version you can use FBx64 to produce 32-bit executable, but also have the 32-bit compiler there so this tip is worthless, nevertheless if you want to compile to 32 with the 64-bit compiler pass -arch 486 on the compile command, as caseih said you need the 32-bit libraries without them this won't work
Re: How to made a 32 bits program with 64 bits FB?
Well, that's really simple:Luis Babboni wrote:Sorry. I install the standalone version for 32 and 64 bits.... but do not know how to compile a 32 bit version now from FBEdit :-(
- Click Menu option "Options"
- Select "Path Options"
- In the popup, you select the path to, either the 64-bit or the 32-bit version of fbc.exe
-
- Posts: 4310
- Joined: Jan 02, 2017 0:34
- Location: UK
- Contact:
Re: How to made a 32 bits program with 64 bits FB?
It is worth noting that the 32-bit fbc and the 64-bit fbc emit identical *.c files. I have done it and then used a byte for byte comparison. The 64-bit fbc will not work on a 32-bit machine as no other 64-bit binary will. Passing -arch 486 on the command line will not work because 64-bit fbc will not work on a 32-bit machine. So, the answer to the opening post is no.
Having emitted a *.c file what flag/s fbc passes to gcc is another story; like what mode the target binary should be.
Having emitted a *.c file what flag/s fbc passes to gcc is another story; like what mode the target binary should be.
-
- Posts: 375
- Joined: Mar 15, 2015 12:41
Re: How to made a 32 bits program with 64 bits FB?
OK!! I installed just the 64 bits version no matter I saw there are two versiones, 64 and 32 bits! :-DMrSwiss wrote:Well, that's really simple:Luis Babboni wrote:Sorry. I install the standalone version for 32 and 64 bits.... but do not know how to compile a 32 bit version now from FBEdit :-(Problem solved.
- Click Menu option "Options"
- Select "Path Options"
- In the popup, you select the path to, either the 64-bit or the 32-bit version of fbc.exe
Re: How to made a 32 bits program with 64 bits FB?
Then you've got the combined 32/64 version (with fbc32.exe and fbc64.exe), which is NOT what you want.Luis Babboni wrote:OK!! I installed just the 64 bits version no matter I saw there are two versiones, 64 and 32 bits! :-D
With FBEdit it's better to NOT change the compilers name (simpler to handle).
(2 x standalone versions, using different path's: e.g. ...\FreeBASIC\1080_32\fbc.exe and ...\FreeBASIC\1080_64\fbc.exe)
Btw: 1080 = "1.08.0" (fbc's version number simplified) followed by it's bitness.
-
- Posts: 375
- Joined: Mar 15, 2015 12:41
Re: How to made a 32 bits program with 64 bits FB?
Mmmm, no, I have the two versions in the same folder.
sorry, may be for my poor english, but i do not understand how to compile irt in 32 bits yet.
sorry, may be for my poor english, but i do not understand how to compile irt in 32 bits yet.
-
- Posts: 375
- Joined: Mar 15, 2015 12:41
-
- Posts: 375
- Joined: Mar 15, 2015 12:41
Re: How to made a 32 bits program with 64 bits FB?
I left just the 32.exe and this is what happens
In fact I downlaod just a 1.07 version with just 32 bits compiler and a new FBEdit and use the code i wrote
In fact I downlaod just a 1.07 version with just 32 bits compiler and a new FBEdit and use the code i wrote
Re: How to made a 32 bits program with 64 bits FB?
And exactly that is the main problem.Luis Babboni wrote:Mmmm, no, I have the two versions in the same folder.
(best is to delete it all)
Make 2 different folders, then unzip the 32-bit (only) version to one and,
the 64-bit (only) version into the other ...
(therafter you can switch compilers as described already)
Last edited by MrSwiss on Jun 22, 2021 17:23, edited 1 time in total.
-
- Posts: 375
- Joined: Mar 15, 2015 12:41
Re: How to made a 32 bits program with 64 bits FB?
I did that to put the 32 and 64 in differents folders and no work.
Now I return the 64 bits to the orginal folder and do not works anymore :-D
Now I return the 64 bits to the orginal folder and do not works anymore :-D
-
- Posts: 375
- Joined: Mar 15, 2015 12:41
Re: How to made a 32 bits program with 64 bits FB?
OK. Let me tryMrSwiss wrote:And exactly that is the main problem.Luis Babboni wrote:Mmmm, no, I have the two versions in the same folder.
Make 2 different folders, then unzip the 32-bit (only) version to one and,
the 64-bit (only) version into the other ...
(therafter you can switch compilers as described already)