Oxygen Basic
Programming => Problems & Solutions => Topic started by: matthew on January 26, 2014, 02:27:51 PM
-
Reading this (http://www.oxygenbasic.org/forum/index.php?topic=2.0) post I was interested in the following...
Currently O2 compiled executables depend on Oxygen.dll for the run-time library, but I am working on the 'independent' mode where the run-time library is included. This is of course essential when generating 64bit code with a 32 bit compiler.
Did the 'independent' mode ever get developed or do the executables still depend on the Oxygen.dll?
-
Welcome Matthew!
It's nice to see another graphics enthusiast here on the O2 forum.
Looking forward to your contributions to the O2 project.
John
-
Hi Matthew, Welcome to our forum.
Yes, we have had RTLs for some time now, that allow compiled programs to run without Oxygen. However, programs which use secondary/runtime compiling, such as an EVAL function, will still require Oxygen.
Simple example.
includepath "$/inc/"
%filename "t.exe"
include "RTL32.inc"
'include "RTL64.inc"
print "helo"
To run directly, all you have to do is comment out: 'include RTL..
Independent DLLs can also be created
includepath "$/inc/"
%filename "t.dll"
%DLL
include "RTL32.inc"
'include "RTL64.inc"
function greeting() as sys, export
print "helo"
end function
When an alias is unspecified, the exported function name is used as it appears, ie: it is case-sensitive.
-
Thanks for the nice welcome John. :-)
Thanks for the info Charles, I'll probably have some more questions soon. :-D