# Rodl2code remoteRODL --platform:delphi generates sources that do not compile

**URL:** https://talk.remobjects.com/t/rodl2code-remoterodl-platform-delphi-generates-sources-that-do-not-compile/26418
**Category:** Remoting SDK
**Tags:** delphi
**Created:** [March 24, 2022, 3:17pm UTC](https://talk.remobjects.com/t/rodl2code-remoterodl-platform-delphi-generates-sources-that-do-not-compile/26418 "2022-03-24T15:17:58Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![fvancrae](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/f/ad7895/32.png) [@fvancrae](https://talk.remobjects.com/u/fvancrae)
#### Post date: [March 24, 2022, 3:17pm UTC](https://talk.remobjects.com/t/rodl2code-remoterodl-platform-delphi-generates-sources-that-do-not-compile/26418/1 "2022-03-24T15:17:58Z")

</div>

The generated code from the rodl2code tool does not generate delphi code that compiles.  
The generated code contains DataAbstract\_Intf and PharmacyCloudService\_Intf which are not in the uses list.

I have to comment out some lines each time I generate the files to have working code.

C:\Program Files (x86)\RemObjects Software\RemObjects SDK (Common)\Bin"\rodl2code PharmacyCloudService.remoteRODL --platform:delphi --type:intf --out:PharmacyCloudService\_Intf.pas  
Remoting SDK Service Interface Code Generator, based on CodeGen4 ([GitHub - remobjects/CodeGen4: A Swift library tom generate source code for many languages](https://github.com/remobjects/codegen4))  
Processing RODL file PharmacyCloudService.remoteRODL  
Generating intf  
Wrote file .\PharmacyCloudService\_Intf.pas

{$IFDEF REMOVEDBYFV}

function DefaultNamespaces: String;  
var  
lres: String;  
begin  
lres := DefaultNamespace;  
lres := (lres + ‘;’) + DataAbstract\_Intf.DefaultNamespace;  
lres := (lres + ‘;’) + DataAbstract\_Simple\_Intf.DefaultNamespace;  
result := lres;  
exit;  
end;  
{$ENDIF}

class function TLibraryAttributes.LibraryUID: String;  
begin  
result := ‘’; //REMOVEDBYFV PharmacyCloudService\_Intf.LibraryUID;  
exit;  
end;

---

<div class="post-metadata">

### Author: ![fvancrae](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/f/ad7895/32.png) [@fvancrae](https://talk.remobjects.com/u/fvancrae)
#### Post date: [March 24, 2022, 3:18pm UTC](https://talk.remobjects.com/t/rodl2code-remoterodl-platform-delphi-generates-sources-that-do-not-compile/26418/2 "2022-03-24T15:18:59Z")

</div>

Note: This is with a .NET code first RO server and a delphi RO client. Both are v10.0.0.1521

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [March 24, 2022, 3:26pm UTC](https://talk.remobjects.com/t/rodl2code-remoterodl-platform-delphi-generates-sources-that-do-not-compile/26418/3 "2022-03-24T15:26:30Z")

</div>

Hi,

Can you share your .RODL that is generated by your .NET service, pls?  
You can drop it to support@ for keeping privacy.

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [March 25, 2022, 7:31am UTC](https://talk.remobjects.com/t/rodl2code-remoterodl-platform-delphi-generates-sources-that-do-not-compile/26418/4 "2022-03-25T07:31:54Z")

</div>

Logged as [bugs://D19243](https://www.remobjects.com/portal/bugs/?id=D19243).

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [March 25, 2022, 8:35am UTC](https://talk.remobjects.com/t/rodl2code-remoterodl-platform-delphi-generates-sources-that-do-not-compile/26418/5 "2022-03-25T08:35:25Z")

</div>

[bugs://D19243](https://www.remobjects.com/portal/bugs/?id=D19243) was closed as fixed.
