RTC Forums
May 16, 2024, 06:15:43 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Firemonkey-IOS Application Xcode building error  (Read 3435 times)
Jose Carlos
RTC License
***
Posts: 14


« on: May 12, 2012, 07:36:55 PM »


  I am getting this error "Error: Duplicate identifier "Data"", when I build the Xcode project.

  I am using RTC component and the SQLite3db

my uses clause:

Code:
unit FormSincronizaIOS;
{$IFDEF FPC}
{$mode objfpc}{$H+}
{$modeswitch ObjectiveC1}
{$ENDIF}


interface

uses
  SysUtils, Types, UITypes, Classes, Variants,

  FMX_Types, FMX_Controls, FMX_Forms,
  FMX_Dialogs, FMX_Edit,
  rtcFMX_GUI, // IMPORTANT!!! handle Thread.Synchronize() using a FMX Timer.

  rtcInfo, rtcConn,
  rtcDataCli, rtcHttpCli,
  rtcCliModule, rtcFunction,

  rtcDB, DB,

 FMX_Layouts, FMX_Memo
  {$IFDEF FPC}
    ,iPhoneAll , SQLite3db, SQLite
   {$ELSE}
   ,SQLiteTable3
   {$ENDIF} ;



The error is on the procedure declaration:
    procedure RtcResult1Return(Sender: TRtcConnection; Data, Result: TRtcValue);


I am stucked on that, I don't know if this is something on FPC or Firemonkey installation. Maybe something on my uses clause.


The building error messages:

Assembling (pipe) /Users/josecarlosdacunhajunior/Library/Developer/Xcode/DerivedData/AbsolutIPad-fkdfgklijxqabzdpkemlpcjtdfik/Build/Products/Release-iphonesimulator/AbsolutIPad.app/rtcCliModule.s
Compiling /Users/josecarlosdacunhajunior/Desktop/iPad/rtcDB.pas
Assembling (pipe) /Users/josecarlosdacunhajunior/Library/Developer/Xcode/DerivedData/AbsolutIPad-fkdfgklijxqabzdpkemlpcjtdfik/Build/Products/Release-iphonesimulator/AbsolutIPad.app/rtcDB.s
FormSincronizaIOS.pas(49,56) Error: Duplicate identifier "Data"
FormSincronizaIOS.pas(68,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Showing first 200 notices only
Command /bin/sh failed with exit code 1
Logged
D.Tkalcec (RTC)
Administrator
*****
Posts: 1881


« Reply #1 on: May 12, 2012, 07:53:58 PM »

I think your problem might be these FPC-specific compiler directives:

{$IFDEF FPC}
{$mode objfpc}{$H+}
{$modeswitch ObjectiveC1}
{$ENDIF}

Normally, all Delphi code is compiled with {$mode delphi} and nothing more.

Best Regards,
Danijel Tkalcec
Logged
Jose Carlos
RTC License
***
Posts: 14


« Reply #2 on: May 22, 2012, 09:29:07 PM »


  Hi,
 
  yes, this worked fine, I got that DEFINE from a sample, so I remove it.

  Thanks.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.024 seconds with 18 queries.