# Compatibility Compiler Options for OxygeneCodeProvider

**URL:** https://talk.remobjects.com/t/compatibility-compiler-options-for-oxygenecodeprovider/7966
**Category:** Oxygene
**Created:** [January 28, 2016, 10:15am UTC](https://talk.remobjects.com/t/compatibility-compiler-options-for-oxygenecodeprovider/7966 "2016-01-28T10:15:43Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![FredyFerrari](https://talk.remobjects.com/user_avatar/talk.remobjects.com/fredyferrari/32/2038_2.png) [@FredyFerrari](https://talk.remobjects.com/u/FredyFerrari)
#### Post date: [January 28, 2016, 10:15am UTC](https://talk.remobjects.com/t/compatibility-compiler-options-for-oxygenecodeprovider/7966/1 "2016-01-28T10:15:44Z")

</div>

We need to compile the business layer of our code using the OxygeneCodeProvider and we need to specify the following Compatibility Options:

- Allow globals
- Allow legacy ‘width’
- Allow implicit var/out in method calls
- Allow Delphi compatibility syntax
- Use Delphi compatible division operators

I specify the following CompilerOptions: “-allowglobals:yes -allowlegacywith:yes -delphicompatibility:yes”

How can I specify the following options?

- Allow implicit var/out in method calls
- Use Delphi compatible division operators

~Ff

---

<div class="post-metadata">

### Author: ![FredyFerrari](https://talk.remobjects.com/user_avatar/talk.remobjects.com/fredyferrari/32/2038_2.png) [@FredyFerrari](https://talk.remobjects.com/u/FredyFerrari)
#### Post date: [January 28, 2016, 10:21am UTC](https://talk.remobjects.com/t/compatibility-compiler-options-for-oxygenecodeprovider/7966/2 "2016-01-28T10:21:37Z")

</div>

Sorry, I just found -allowimplicitout, so, only “Use Delphi compatible division operators” remains open.  
How can this option be passed to OxygeneCodeProvider?

---

<div class="post-metadata">

### Author: ![ck](https://talk.remobjects.com/user_avatar/talk.remobjects.com/ck/32/8740_2.png) [@ck](https://talk.remobjects.com/u/ck)
#### Post date: [February 3, 2016, 8:24am UTC](https://talk.remobjects.com/t/compatibility-compiler-options-for-oxygenecodeprovider/7966/3 "2016-02-03T08:24:47Z")

</div>

Curious timing. I’ve actually rewritten this the other day so now it supports _all_ options Elements.exe supports. That’s for fridays beta (or if things don’t go exactly the way I want, the one after that).

so in vnext you can do something like:

```auto
--allowlegacywith --allowglobals --delphicompatibility --delphidivide --allowimplicitout

```

I hope that helps.

---

<div class="post-metadata">

### Author: ![FredyFerrari](https://talk.remobjects.com/user_avatar/talk.remobjects.com/fredyferrari/32/2038_2.png) [@FredyFerrari](https://talk.remobjects.com/u/FredyFerrari)
#### Post date: [February 3, 2016, 8:43am UTC](https://talk.remobjects.com/t/compatibility-compiler-options-for-oxygenecodeprovider/7966/4 "2016-02-03T08:43:20Z")

</div>

Great! Thanx.

---

<div class="post-metadata">

### Author: ![FredyFerrari](https://talk.remobjects.com/user_avatar/talk.remobjects.com/fredyferrari/32/2038_2.png) [@FredyFerrari](https://talk.remobjects.com/u/FredyFerrari)
#### Post date: [February 9, 2016, 10:22am UTC](https://talk.remobjects.com/t/compatibility-compiler-options-for-oxygenecodeprovider/7966/5 "2016-02-09T10:22:25Z")

</div>

Hi Carlo

I installed RemObjects Elements - 8.3.90.1927.exe today, but could not find the --delphidivide switch.

elements.exe shows:

RemObjects Elements (Oxygene, C# and Swift) Compiler for .NET, Cocoa and Java - Version 8.3.90.1927 (BETA)  
Copyright 2003-2012 RemObjects Software, LLC. All rights reserved.

Syntax:  
Oxygene.exe \<project.oxygene\>  
[-rebuild]  
[-out:]  
[-config:]  
[-platform:]  
[-version:]  
[-fileversion:]  
[-frameworkfolder:]  
[-frameworkversion:]  
[-define:;[…]]

```
    Oxygene.exe <source.pas> [<source.pas> [...]]
                      [-rebuild]
                      [-out:<output path>]
                      [-version:<version number>]
                      [-fileversion:<version number>]
                      [-appicon:<icon file name>]
                      [-ref:<assembly file name>]
                      [-res:<resource file name>]
                      [-res:@<resource file name>]
                      [-type:<exe|winexe|library>]
                      [-cputype:<anycpu|x86|x64|ia64>]
                      [-frameworkfolder:<framework folder name>]
                      [-frameworkversion:<framework version>]
                      [-assemblyname:<name>]
                      [-internalname:<name>]
                      [-debug:<yes|no>]
                      [-define:<define>;[...]]
                      [-allowunsafe[:<yes|no>]]
                      [-allowimplicitout[:<yes|no>]]
                      [-allowglobals[:<yes|no>]]
                      [-allowlegacycreate[:<yes|no>]]
                      [-allowlegacywith[:<yes|no>]]
                      [-regasm[:<yes|no>]]
                      [-enableclasscontracts[:<yes|no>]]
                      [-codeflowanalysis[:<yes|no>]]
                      [-warningsaserrors[:<yes|no>]]
                      [-suppresswarnings:<warning codes>]
                      [-delphicompatibility[:<yes|no>]]
                      [-optimize[:<yes|no>]]
                      [-mode:<Echoes|Cooper|Nougat>]

```

But no -delphidivide switch.  
Did I get something wrong?

---

<div class="post-metadata">

### Author: ![ck](https://talk.remobjects.com/user_avatar/talk.remobjects.com/ck/32/8740_2.png) [@ck](https://talk.remobjects.com/u/ck)
#### Post date: [February 9, 2016, 11:11am UTC](https://talk.remobjects.com/t/compatibility-compiler-options-for-oxygenecodeprovider/7966/6 "2016-02-09T11:11:24Z")

</div>

no you didn’t. That will probably be the _next_ build.
