Author Topic: How to compile to 64bits?  (Read 2475 times)

0 Members and 2 Guests are viewing this topic.

chrisc

  • Guest
How to compile to 64bits?
« on: February 25, 2018, 05:53:44 AM »
Hello all

i just downloaded O2,  then i use the command prompt
 > gxo2 -c arithmetic.o2bas
to get arithmetic.exe

run it
> arithmetic


when i use the taskmanager , i found that arithmetic.exe is a 32bit process

How do i compile it to 64 bits?

thanxx and appreciate any help

jcfuller

  • Guest
Re: How to compile to 64bits?
« Reply #1 on: February 25, 2018, 07:02:07 AM »
chris,
  put
use rtl64
as the first line of the source.
James

chrisc

  • Guest
Re: How to compile to 64bits?
« Reply #2 on: February 25, 2018, 07:42:28 AM »
Thanxx James

but got an error see attachment


  also how to post image directly into this forum?  the    did not work


[attachment deleted by admin]

jcfuller

  • Guest
Re: How to compile to 64bits?
« Reply #3 on: February 25, 2018, 08:43:04 AM »
chris,
try uses instead of use.

I always use the latest OxygenBasic available.
https://github.com/Charles-Pegge/OxygenBasic/blob/master/oxygenBasicProgress.zip

James

Charles Pegge

  • Guest
Re: How to compile to 64bits?
« Reply #4 on: February 25, 2018, 09:37:58 AM »
The latest o2 will understand use uses using

Code: [Select]
uses rtl64
print "helo"

Console Compiler :)

Code: [Select]
uses rtl64
uses console
print "helo"
wait


chrisc

  • Guest
Re: How to compile to 64bits?
« Reply #5 on: February 25, 2018, 09:56:24 AM »
Thankxx  James and Charles

i must download from https://github.com/Charles-Pegge/OxygenBasic/blob/master/oxygenBasicProgress.zip
in future !

this is  my first 64bit exe !

Charles Pegge

  • Guest
Re: How to compile to 64bits?
« Reply #6 on: February 25, 2018, 11:05:55 AM »
OxygenBasicProgress.zip contains the full package, OxygenProgress.zip contains Oxygen.dll only, which is usually okay for core language updates; I will indicate which.

chrisc

  • Guest
Re: How to compile to 64bits?
« Reply #7 on: February 25, 2018, 12:58:58 PM »
Thanxx Charles
Talking about Oxygen.dll file  , do we need to deploy this file whenever we deploy the compile exe file?
is it a dependency file or references file like in c#?


Charles Pegge

  • Guest
Re: How to compile to 64bits?
« Reply #8 on: February 25, 2018, 03:57:31 PM »
The binaries produced by o2 are independent when RTL32 or RTL64 is used. You can also produce 32bit oxygen-dependent binaries by specifying something like #file "mylibrary.dll" instead of use RTL32.

Dependent binaries have the advantage of being a bit smaller, and being able to tap into the o2 compiling facilities.

chrisc

  • Guest
Re: How to compile to 64bits?
« Reply #9 on: March 12, 2018, 04:26:18 AM »

Mike Lobanovsky

  • Guest
Re: How to compile to 64bits?
« Reply #10 on: March 12, 2018, 04:45:03 AM »
Same error here.

jack

  • Guest
Re: How to compile to 64bits?
« Reply #11 on: March 12, 2018, 05:33:40 AM »

chrisc

  • Guest
Re: How to compile to 64bits?
« Reply #12 on: March 12, 2018, 06:38:02 AM »
Thanxx Jack

Charles Pegge

  • Guest
Re: How to compile to 64bits?
« Reply #13 on: March 12, 2018, 06:51:35 AM »

jcfuller

  • Guest
Re: How to compile to 64bits?
« Reply #14 on: March 12, 2018, 06:58:27 AM »
Charles,
  Windows Defender does not like the download!
James