Oxygen Basic

Programming => Problems & Solutions => Topic started by: chrisc on February 25, 2018, 05:53:44 AM

Title: How to compile to 64bits?
Post by: chrisc 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
Title: Re: How to compile to 64bits?
Post by: jcfuller on February 25, 2018, 07:02:07 AM
chris,
  put
use rtl64
as the first line of the source.
James
Title: Re: How to compile to 64bits?
Post by: chrisc 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 (http://)   did not work


[attachment deleted by admin]
Title: Re: How to compile to 64bits?
Post by: jcfuller 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
Title: Re: How to compile to 64bits?
Post by: Charles Pegge 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

Title: Re: How to compile to 64bits?
Post by: chrisc 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 (https://github.com/Charles-Pegge/OxygenBasic/blob/master/oxygenBasicProgress.zip)
in future !

this is  my first 64bit exe !
Title: Re: How to compile to 64bits?
Post by: Charles Pegge 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.
Title: Re: How to compile to 64bits?
Post by: chrisc 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#?

Title: Re: How to compile to 64bits?
Post by: Charles Pegge 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.
Title: Re: How to compile to 64bits?
Post by: chrisc on March 12, 2018, 04:26:18 AM
hello Charles

the latest progress link
 https://github.com/Charles-Pegge/OxygenBasic/blob/master/oxygenBasicProgress.zip
is no longer operational ?  i got 404 error ?


https://github.com/Charles-Pegge/OxygenBasic/blob/master/oxygenBasicProgress.zip
 (https://github.com/Charles-Pegge/OxygenBasic/blob/master/oxygenBasicProgress.zip)
Title: Re: How to compile to 64bits?
Post by: Mike Lobanovsky on March 12, 2018, 04:45:03 AM
Same error here.
Title: Re: How to compile to 64bits?
Post by: jack on March 12, 2018, 05:33:40 AM
oxygen needs to be capitalized, https://github.com/Charles-Pegge/OxygenBasic/blob/master/OxygenBasicProgress.zip
Title: Re: How to compile to 64bits?
Post by: chrisc on March 12, 2018, 06:38:02 AM
Thanxx Jack
Title: Re: How to compile to 64bits?
Post by: Charles Pegge on March 12, 2018, 06:51:35 AM
I've just uploaded, with Corewin.inc, and Msvcrt.inc

https://github.com/Charles-Pegge/OxygenBasic/blob/master/OxygenBasicProgress.zip

Title: Re: How to compile to 64bits?
Post by: jcfuller on March 12, 2018, 06:58:27 AM
Charles,
  Windows Defender does not like the download!
James
Title: Re: How to compile to 64bits?
Post by: Mike Lobanovsky on March 12, 2018, 07:22:43 AM
Damn, that's becoming ridiculous! False alarms on an entirely open-source project!  >:(

Try zipping it as tar.gz for a change and see what happens... Arachnids Linuxoids are advancing from everywhere! ;D
Title: Re: How to compile to 64bits?
Post by: chrisc on March 12, 2018, 08:25:30 AM
No problem with Mcafee scanner?
Title: Re: How to compile to 64bits?
Post by: jcfuller on March 12, 2018, 08:31:04 AM
I don't remember Defender flagging any downloads on this machine to the point I don't know how to override so I can use it. Or that could be my failing memory :)

James
Title: Re: How to compile to 64bits?
Post by: jcfuller on March 12, 2018, 08:40:56 AM
Here is the reason.
James
Title: Re: How to compile to 64bits?
Post by: JRS on March 12, 2018, 09:37:27 AM
The Evangelists introduced hell and Windows introduced anti-virus vendors.
Title: Re: How to compile to 64bits?
Post by: Charles Pegge on March 12, 2018, 09:40:41 AM
Thanks James,

I have removed the offending file, and swept out all other small exe demos.

https://github.com/Charles-Pegge/OxygenBasic/blob/master/OxygenBasicProgress.zip
Title: Re: How to compile to 64bits?
Post by: Mike Lobanovsky on March 12, 2018, 04:37:08 PM
Do you remember the infamous Rich signature the VC compiler leaves in any PE executable it generates? Tell you what guys, there are many more of them, albeit less obvious, spread all around the file. AV SW uses them as a means to identify the compiler and eliminate the unwanted competitors. That's how VB6 came to the point of being flagged as malware regardless of manifests, version info, or PE header compliance...  :-\