Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error in Delphi XE: Undeclared identifier AsInt64 #17

Closed
vegar opened this issue Jan 29, 2014 · 1 comment
Closed

Compilation error in Delphi XE: Undeclared identifier AsInt64 #17

vegar opened this issue Jan 29, 2014 · 1 comment

Comments

@vegar
Copy link

vegar commented Jan 29, 2014

When trying to compile the DelphiXE_RestAPI package, I get the following errors:

[DCC Error] DBXJsonUnMarshal.pas(167): E2003 Undeclared identifier: 'AsInt64'
[DCC Error] DBXJsonUnMarshal.pas(177): E2003 Undeclared identifier: 'AsInt64'
[DCC Error] DBXJsonUnMarshal.pas(263): E2003 Undeclared identifier: 'AsInt64'
[DCC Fatal Error] F2063 Could not compile used unit 'DBXJsonUnMarshal.pas'

The AsInt64 method is defined in the TJsonNumberHelper class in DBXJsonHelpers.pas, but conditionally included just for delphi 2010.

Is this an error, or should the package compile without this helper?

thatalextaylor pushed a commit to thatalextaylor/delphi-rest-client-api that referenced this issue Jan 30, 2014
@thatalextaylor
Copy link

I think it's only wrapped in the IFDEF because of the DBXJson stuff (rather than class helpers). What I don't understand is what would happen pre-2010. Surely the calling code would need to be wrapped in similar IFDEFs.

thatalextaylor pushed a commit to thatalextaylor/delphi-rest-client-api that referenced this issue Feb 2, 2014
thatalextaylor pushed a commit to thatalextaylor/delphi-rest-client-api that referenced this issue Feb 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants