JackTrapper / dwscript

Automatically exported from code.google.com/p/dwscript
0 stars 0 forks source link

How I use DWS with Free Pascal? #428

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

What the steps to use DWScript with Free Pascal/Lazarus? I searched a LPK 
(Lazarus package) to install DWS in Lazarus, but seems that it does not exists.

Thank you!

Original issue reported on code.google.com by silvioprog on 14 Aug 2013 at 9:19

GoogleCodeExporter commented 9 years ago
So, I'm planning to use a pascal scripter in a new ideia that will be 
implemented in Brook framework 
(https://github.com/silvioprog/brookframework/issues/51).

If DWS run fine in Free Pascal, I'll create a broker for DWS too. (y)

Original comment by silvioprog on 15 Aug 2013 at 4:32

GoogleCodeExporter commented 9 years ago
You can try CodeTyphon LPK files
C:\codetyphon\lazarus\components\pl_DWScript
and samples
C:\codetyphon\CodeOcean\DWScript
Erick can check and integrate this files in Source.

Original comment by tomislav...@gmail.com on 15 Aug 2013 at 8:09

GoogleCodeExporter commented 9 years ago
Hm... So, where do I download the pl_DWSScrip package?

Original comment by silvioprog on 16 Aug 2013 at 2:46

GoogleCodeExporter commented 9 years ago
Is there a repository where the lpk can be found? (without installing 
CodeTyphon)

As for using DWS in FreePascal, you can just add the units to your uses and 
create the components directly, DWS isn't very "visual" anyway, so there isn't 
much added benefits to having the components in a module or form at design-time.

I'll admit to never having used LPK files, or gone through the trouble of 
setting up an environment to rebuild the Lazarus IDE, I usually just get a 
pre-compiled one from the snapshots.

Original comment by zar...@gmail.com on 16 Aug 2013 at 7:19

GoogleCodeExporter commented 9 years ago
Thenk you friend,

I'll test DWS in Linux too. If it works fine in Linux Mint 64, I can create a 
LPK file and send a patch.

I saw a DWS copy on Github too:

https://github.com/alexvins/dwscript

Original comment by silvioprog on 18 Aug 2013 at 5:18

GoogleCodeExporter commented 9 years ago
When I try to compile the "hello" (in attached):

Compiling hello.lpr
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(191,36) Hint: Local 
variable "fileTime" does not seem to be initialized
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(201,23) Hint: Local 
variable "systemTime" does not seem to be initialized
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(353,4) Note: Local 
variable "info" is assigned but never used
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(482,24) Error: 
Identifier not found "TEncoding"
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(482,24) Error: Error 
in type definition
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(485,16) Error: 
Identifier not found "TEncoding"
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(486,28) Error: Illegal 
parameter list
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(487,26) Error: 
Identifier not found "TEncoding"
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(488,21) Error: Illegal 
qualifier
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(523,49) Hint: Local 
variable "nRead" does not seem to be initialized
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(544,63) Hint: Local 
variable "nWrite" does not seem to be initialized
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(625,4) Warning: 
"formal parameter" not yet supported inside inline procedure/function
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(625,4) Warning: 
Inlining disabled
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(635,4) Warning: 
"formal parameter" not yet supported inside inline procedure/function
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(635,4) Warning: 
Inlining disabled
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(640,4) Warning: 
"formal parameter" not yet supported inside inline procedure/function
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(640,4) Warning: 
Inlining disabled
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(762) Fatal: There were 
6 errors compiling module, stopping

Original comment by silvioprog on 18 Aug 2013 at 5:31

Attachments:

GoogleCodeExporter commented 9 years ago
Silvio https://github.com/alexvins/dwscript is 2 years old source
Try this
1. Dowload CodeTyphon and extract
2. Extract C:\CodeTyphonIns\installbin\allzips\src\typhon_src.7z
C:\CodeTyphonIns\installbin\allzips\src\typhon_src.7z\typhon\components\pl_DWScr
ipt\
This is DWScript source for installation (FPC 2.7.1).
3. Extract Samples 
C:\Install\Lazarus\CodeTyphonIns\installbin\allzips\src\CodeOcean.7z\CodeOcean\D
WScript\samples\

Test your installation

4. Try to merge trunk version of DWScript (DWS is updated every day and maybe 
some fpc compatibility is lost.

Have fun!

Original comment by tomislav...@gmail.com on 19 Aug 2013 at 10:47

GoogleCodeExporter commented 9 years ago
You'll need latest FPC (2.7 branch), the code requires generics and Unicode.
The alexvins repo was an attempt at supporting 2.6, but there were too many 
missing tidbits in FPC.

There are still holes in the FPC 2.7 RTL for Unicode, so some string functions 
may fail or return incorrect results, and overall performance will be lower 
than in Delphi (which benefits from asm in key places).

Original comment by zar...@gmail.com on 19 Aug 2013 at 1:25

GoogleCodeExporter commented 9 years ago
I tried the pl_DWScript in "Lazarus 1.1 r42425 FPC 2.7.1 
i386-win32-win32/win64", but, same error. :(

Original comment by silvioprog on 19 Aug 2013 at 5:55

GoogleCodeExporter commented 9 years ago
@zar (Google Group does not show your name for me),

I downloaded a new snapshot: Lazarus 1.1 r42425 FPC 2.7.1 
i386-win32-win32/win64, but, other error:

C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(191,36) Hint: Local 
variable "fileTime" does not seem to be initialized
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(201,23) Hint: Local 
variable "systemTime" does not seem to be initialized
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(353,4) Note: Local 
variable "info" is assigned but never used
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(437,39) Warning: 
Implicit string type conversion with potential data loss from "UnicodeString" 
to "AnsiString"
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(440,38) Warning: 
Implicit string type conversion from "AnsiString" to "UnicodeString"
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(440,43) Warning: 
Implicit string type conversion with potential data loss from "UnicodeString" 
to "AnsiString"
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(523,49) Hint: Local 
variable "nRead" does not seem to be initialized
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(544,63) Hint: Local 
variable "nWrite" does not seem to be initialized
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(625,4) Hint: "formal 
parameter" not yet supported inside inline procedure/function
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(625,4) Hint: Inlining 
disabled
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(635,4) Hint: "formal 
parameter" not yet supported inside inline procedure/function
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(635,4) Hint: Inlining 
disabled
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(640,4) Hint: "formal 
parameter" not yet supported inside inline procedure/function
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(640,4) Hint: Inlining 
disabled
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(729,43) Warning: 
Implicit string type conversion with potential data loss from "UnicodeString" 
to "AnsiString"
C:\repository\svn\dwscript\trunk\Source\dwsXPlatform.pas(57,10) Note: Private 
field "TFixedCriticalSection.FDummy" is never used
C:\repository\svn\dwscript\trunk\Source\dwsUtils.pas(188,58) Error: Compile 
time expression: Wanted STRING but got INTEGER at "COMPILERVERSION > 21"
C:\repository\svn\dwscript\trunk\Source\dwsUtils.pas(643,1) Fatal: There were 1 
errors compiling module, stopping

Original comment by silvioprog on 19 Aug 2013 at 6:01

GoogleCodeExporter commented 9 years ago
Oops,

* (Google CODE does not show your name for me) ...

Original comment by silvioprog on 19 Aug 2013 at 6:02

GoogleCodeExporter commented 9 years ago
My Lazarus copy is: 
ftp://freepascal.dfmk.hu/pub/lazarus/snapshots/Lazarus-1.1-42425-fpc-2.7.1-20130
819-win32.exe

Downloaded from: ftp://freepascal.dfmk.hu/pub/lazarus/snapshots/

Original comment by silvioprog on 19 Aug 2013 at 6:08

GoogleCodeExporter commented 9 years ago
Now I tried DWS in CodeTypon IDE, and the error is:

http://pastebin.com/2S9hcCu1

Original comment by silvioprog on 19 Aug 2013 at 7:11

GoogleCodeExporter commented 9 years ago
Committed a bunch FPC compatibility fixes.

One major remaining issue is the lack of a UnicodeString-based TStrings in FPC, 
along with a few other FPC RTL core features that don't have UnicodeString 
variants, this causes the bulk of the warnings I'm seeing here.

Original comment by zar...@gmail.com on 23 Aug 2013 at 6:33

GoogleCodeExporter commented 9 years ago
Thank you!

Can you try to run the "hello.zip" 
(https://dwscript.googlecode.com/issues/attachment?aid=4280006000&name=hello.zip
&token=VcdJ9SNDGuqNdSb0Xeh8Y2q7IOY%3A1377363479730) in attached? I'm trying to 
compile it but does not works:

C:\repository\dws\Source\dwsXPlatform.pas(198,36) Hint: Local variable 
"fileTime" does not seem to be initialized
C:\repository\dws\Source\dwsXPlatform.pas(208,23) Hint: Local variable 
"systemTime" does not seem to be initialized
C:\repository\dws\Source\dwsXPlatform.pas(360,4) Note: Local variable "info" is 
assigned but never used
C:\repository\dws\Source\dwsXPlatform.pas(444,39) Warning: Implicit string type 
conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dws\Source\dwsXPlatform.pas(447,38) Warning: Implicit string type 
conversion from "AnsiString" to "UnicodeString"
C:\repository\dws\Source\dwsXPlatform.pas(447,43) Warning: Implicit string type 
conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dws\Source\dwsXPlatform.pas(538,49) Hint: Local variable "nRead" 
does not seem to be initialized
C:\repository\dws\Source\dwsXPlatform.pas(559,63) Hint: Local variable "nWrite" 
does not seem to be initialized
C:\repository\dws\Source\dwsXPlatform.pas(640,4) Hint: "formal parameter" not 
yet supported inside inline procedure/function
C:\repository\dws\Source\dwsXPlatform.pas(640,4) Hint: Inlining disabled
C:\repository\dws\Source\dwsXPlatform.pas(650,4) Hint: "formal parameter" not 
yet supported inside inline procedure/function
C:\repository\dws\Source\dwsXPlatform.pas(650,4) Hint: Inlining disabled
C:\repository\dws\Source\dwsXPlatform.pas(655,4) Hint: "formal parameter" not 
yet supported inside inline procedure/function
C:\repository\dws\Source\dwsXPlatform.pas(655,4) Hint: Inlining disabled
C:\repository\dws\Source\dwsXPlatform.pas(744,43) Warning: Implicit string type 
conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dws\Source\dwsXPlatform.pas(57,10) Note: Private field 
"TFixedCriticalSection.FDummy" is never used
C:\repository\dws\Source\dwsUtils.pas(640,63) Hint: Parameter "X" not used
C:\repository\dws\Source\dwsUtils.pas(654,4) Hint: "formal parameter" not yet 
supported inside inline procedure/function
C:\repository\dws\Source\dwsUtils.pas(654,4) Hint: Inlining disabled
C:\repository\dws\Source\dwsUtils.pas(680,11) Hint: Conversion between ordinals 
and pointers is not portable
C:\repository\dws\Source\dwsUtils.pas(693,20) Hint: Converting the operands to 
"Int64" before doing the multiply could prevent overflow errors.
C:\repository\dws\Source\dwsUtils.pas(847,32) Hint: Conversion between ordinals 
and pointers is not portable
C:\repository\dws\Source\dwsUtils.pas(847,53) Hint: Conversion between ordinals 
and pointers is not portable
C:\repository\dws\Source\dwsUtils.pas(854,38) Hint: Function result variable 
does not seem to be initialized
C:\repository\dws\Source\dwsUtils.pas(863,51) Warning: Implicit string type 
conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dws\Source\dwsUtils.pas(863,43) Warning: Implicit string type 
conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dws\Source\dwsUtils.pas(863,38) Warning: Implicit string type 
conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dws\Source\dwsUtils.pas(863,12) Warning: Implicit string type 
conversion from "AnsiString" to "UnicodeString"
C:\repository\dws\Source\dwsUtils.pas(905,30) Warning: Implicit string type 
conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dws\Source\dwsUtils.pas(905,25) Warning: Implicit string type 
conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dws\Source\dwsUtils.pas(923,28) Warning: Implicit string type 
conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dws\Source\dwsUtils.pas(923,23) Warning: Implicit string type 
conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dws\Source\dwsUtils.pas(953,15) Warning: Implicit string type 
conversion from "AnsiString" to "UnicodeString"
C:\repository\dws\Source\dwsUtils.pas(963,22) Warning: Implicit string type 
conversion from "AnsiString" to "UnicodeString"
C:\repository\dws\Source\dwsUtils.pas(982,13) Warning: Implicit string type 
conversion from "AnsiString" to "UnicodeString"
C:\repository\dws\Source\dwsUtils.pas(1025,41) Hint: Function result variable 
does not seem to be initialized
C:\repository\dws\Source\dwsUtils.pas(1250,37) Hint: Function result variable 
does not seem to be initialized
C:\repository\dws\Source\dwsUtils.pas(1317,9) Hint: Conversion between ordinals 
and pointers is not portable
C:\repository\dws\Source\dwsUtils.pas(1318,9) Hint: Conversion between ordinals 
and pointers is not portable
C:\repository\dws\Source\dwsUtils.pas(1321,23) Hint: Conversion between 
ordinals and pointers is not portable
C:\repository\dws\Source\dwsUtils.pas(1321,14) Warning: Conversion between 
ordinals and pointers is not portable
C:\repository\dws\Source\dwsUtils.pas(1322,23) Hint: Conversion between 
ordinals and pointers is not portable
C:\repository\dws\Source\dwsUtils.pas(1322,14) Warning: Conversion between 
ordinals and pointers is not portable
C:\repository\dws\Source\dwsUtils.pas(1349,21) Hint: Conversion between 
ordinals and pointers is not portable
C:\repository\dws\Source\dwsUtils.pas(1349,12) Warning: Conversion between 
ordinals and pointers is not portable
C:\repository\dws\Source\dwsUtils.pas(1523,37) Warning: Implicit string type 
conversion from "AnsiString" to "UnicodeString"
C:\repository\dws\Source\dwsUtils.pas(1523,33) Warning: Implicit string type 
conversion from "AnsiString" to "UnicodeString"
C:\repository\dws\Source\dwsUtils.pas(2070,23) Hint: Function result variable 
does not seem to be initialized
C:\repository\dws\Source\dwsUtils.pas(2078,34) Hint: Function result variable 
does not seem to be initialized
C:\repository\dws\Source\dwsUtils.pas(2087,26) Hint: Function result variable 
does not seem to be initialized
C:\repository\dws\Source\dwsUtils.pas(2110,30) Hint: Function result variable 
does not seem to be initialized
C:\repository\dws\Source\dwsUtils.pas(2328,32) Warning: Function result does 
not seem to be set
C:\repository\dws\Source\dwsUtils.pas(523,28) Hint: Parameter "Buffer" not used
C:\repository\dws\Source\dwsUtils.pas(523,36) Hint: Parameter "Count" not used
C:\repository\dws\Source\dwsUtils.pas(2436,4) Note: Local variable 
"stringCracker" not used
C:\repository\dws\Source\dwsUtils.pas(2454,23) Hint: Local variable "s" does 
not seem to be initialized
C:\repository\dws\Source\dwsUtils.pas(2519,12) Warning: Implicit string type 
conversion from "RawByteString" to "UnicodeString"
C:\repository\dws\Source\dwsUtils.pas(3128,52) Warning: Implicit string type 
conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dws\Source\dwsUtils.pas(3533,20) Hint: Function result variable 
does not seem to be initialized
C:\repository\dws\Source\dwsUtils.pas(2645,4) Note: Local variable "hashCode" 
not used
C:\repository\dws\Source\dwsUtils.pas(2070,23) Hint: Function result variable 
does not seem to be initialized
C:\repository\dws\Source\dwsUtils.pas(2078,34) Hint: Function result variable 
does not seem to be initialized
C:\repository\dws\Source\dwsUtils.pas(2087,26) Hint: Function result variable 
does not seem to be initialized
C:\repository\dws\Source\dwsUtils.pas(2110,30) Hint: Function result variable 
does not seem to be initialized
C:\repository\dws\Source\dwsUtils.pas(1157,22) Hint: Local type 
"TStringListList" is not used
C:\repository\dws\Source\dwsFileSystem.pas(69,36) Hint: Parameter "fileName" 
not used
C:\repository\dws\Source\dwsFileSystem.pas(70,40) Hint: Parameter "fileName" 
not used
C:\repository\dws\Source\dwsFileSystem.pas(70,65) Hint: Parameter "mode" not 
used
C:\repository\dws\Source\dwsFileSystem.pas(230,60) Warning: Implicit string 
type conversion from "AnsiString" to "UnicodeString"
C:\repository\dws\Source\dwsFileSystem.pas(308,61) Warning: Implicit string 
type conversion from "AnsiString" to "UnicodeString"
C:\repository\dws\Source\dwsFileSystem.pas(308,30) Warning: Implicit string 
type conversion from "AnsiString" to "UnicodeString"
C:\repository\dws\Source\dwsErrors.pas(477,27) Warning: Implicit string type 
conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dws\Source\dwsErrors.pas(655,12) Warning: Implicit string type 
conversion from "AnsiString" to "UnicodeString"
C:\repository\dws\Source\dwsErrors.pas(845,50) Warning: Implicit string type 
conversion from "AnsiString" to "UnicodeString"
C:\repository\dws\Source\dwsErrors.pas(862,35) Warning: Implicit string type 
conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dws\Source\dwsErrors.pas(905,17) Warning: Implicit string type 
conversion from "RawByteString" to "UnicodeString"
C:\repository\dws\Source\dwsErrors.pas(909,17) Warning: Implicit string type 
conversion from "RawByteString" to "UnicodeString"
C:\repository\dws\Source\dwsErrors.pas(992,20) Warning: Implicit string type 
conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dws\Source\dwsErrors.pas(994,47) Warning: Implicit string type 
conversion from "AnsiString" to "UnicodeString"
C:\repository\dws\Source\dwsErrors.pas(985,35) Warning: Function result does 
not seem to be set
C:\repository\dws\Source\dwsTokenizer.pas(336,61) Warning: Some fields coming 
before "DecimalSeparator" weren't initialized
C:\repository\dws\Source\dwsTokenizer.pas(377,16) Hint: Function result 
variable does not seem to be initialized
C:\repository\dws\Source\dwsTokenizer.pas(581,38) Warning: Implicit string type 
conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dws\Source\dwsTokenizer.pas(597,29) Hint: Converting the operands 
to "Int64" before doing the add could prevent overflow errors.
C:\repository\dws\Source\dwsTokenizer.pas(611,52) Hint: Local variable "buf" 
does not seem to be initialized
C:\repository\dws\Source\dwsTokenizer.pas(772,18) Warning: Implicit string type 
conversion from "AnsiString" to "UnicodeString"
C:\repository\dws\Source\dwsTokenizer.pas(241,35) Hint: Parameter "tokenBuf" 
not used
C:\repository\dws\Source\dwsDataContext.pas(51,42) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(51,42) Hint: Identifier already 
defined in dwsDataContext.pas at line 48
C:\repository\dws\Source\dwsDataContext.pas(51,42) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(51,42) Hint: Identifier already 
defined in dwsDataContext.pas at line 48
C:\repository\dws\Source\dwsDataContext.pas(56,27) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(56,27) Hint: Identifier already 
defined in dwsDataContext.pas at line 48
C:\repository\dws\Source\dwsDataContext.pas(60,43) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(60,43) Hint: Identifier already 
defined in dwsDataContext.pas at line 48
C:\repository\dws\Source\dwsDataContext.pas(60,43) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(60,43) Hint: Identifier already 
defined in dwsDataContext.pas at line 48
C:\repository\dws\Source\dwsDataContext.pas(61,43) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(61,43) Hint: Identifier already 
defined in dwsDataContext.pas at line 48
C:\repository\dws\Source\dwsDataContext.pas(61,43) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(61,43) Hint: Identifier already 
defined in dwsDataContext.pas at line 48
C:\repository\dws\Source\dwsDataContext.pas(62,41) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(62,41) Hint: Identifier already 
defined in dwsDataContext.pas at line 48
C:\repository\dws\Source\dwsDataContext.pas(62,41) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(62,41) Hint: Identifier already 
defined in dwsDataContext.pas at line 48
C:\repository\dws\Source\dwsDataContext.pas(63,42) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(63,42) Hint: Identifier already 
defined in dwsDataContext.pas at line 48
C:\repository\dws\Source\dwsDataContext.pas(63,42) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(63,42) Hint: Identifier already 
defined in dwsDataContext.pas at line 48
C:\repository\dws\Source\dwsDataContext.pas(64,45) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(64,45) Hint: Identifier already 
defined in dwsDataContext.pas at line 48
C:\repository\dws\Source\dwsDataContext.pas(64,45) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(64,45) Hint: Identifier already 
defined in dwsDataContext.pas at line 48
C:\repository\dws\Source\dwsDataContext.pas(66,31) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(66,31) Hint: Identifier already 
defined in dwsDataContext.pas at line 48
C:\repository\dws\Source\dwsDataContext.pas(67,30) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(67,30) Hint: Identifier already 
defined in dwsDataContext.pas at line 48
C:\repository\dws\Source\dwsDataContext.pas(68,33) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(68,33) Hint: Identifier already 
defined in dwsDataContext.pas at line 48
C:\repository\dws\Source\dwsDataContext.pas(73,25) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(73,25) Hint: Identifier already 
defined in dwsDataContext.pas at line 48
C:\repository\dws\Source\dwsDataContext.pas(142,33) Error: Duplicate identifier 
"Offset"
C:\repository\dws\Source\dwsDataContext.pas(142,33) Hint: Identifier already 
defined in dwsDataContext.pas at line 140
C:\repository\dws\Source\dwsDataContext.pas(144,34) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(144,34) Hint: Identifier already 
defined in dwsDataContext.pas at line 138
C:\repository\dws\Source\dwsDataContext.pas(145,33) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(145,33) Hint: Identifier already 
defined in dwsDataContext.pas at line 138
C:\repository\dws\Source\dwsDataContext.pas(146,36) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(146,36) Hint: Identifier already 
defined in dwsDataContext.pas at line 138
C:\repository\dws\Source\dwsDataContext.pas(148,46) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(148,46) Hint: Identifier already 
defined in dwsDataContext.pas at line 138
C:\repository\dws\Source\dwsDataContext.pas(148,46) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(148,46) Hint: Identifier already 
defined in dwsDataContext.pas at line 138
C:\repository\dws\Source\dwsDataContext.pas(149,46) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(149,46) Hint: Identifier already 
defined in dwsDataContext.pas at line 138
C:\repository\dws\Source\dwsDataContext.pas(149,46) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(149,46) Hint: Identifier already 
defined in dwsDataContext.pas at line 138
C:\repository\dws\Source\dwsDataContext.pas(150,44) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(150,44) Hint: Identifier already 
defined in dwsDataContext.pas at line 138
C:\repository\dws\Source\dwsDataContext.pas(150,44) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(150,44) Hint: Identifier already 
defined in dwsDataContext.pas at line 138
C:\repository\dws\Source\dwsDataContext.pas(151,45) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(151,45) Hint: Identifier already 
defined in dwsDataContext.pas at line 138
C:\repository\dws\Source\dwsDataContext.pas(151,45) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(151,45) Hint: Identifier already 
defined in dwsDataContext.pas at line 138
C:\repository\dws\Source\dwsDataContext.pas(152,48) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(152,48) Hint: Identifier already 
defined in dwsDataContext.pas at line 138
C:\repository\dws\Source\dwsDataContext.pas(152,48) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(152,48) Hint: Identifier already 
defined in dwsDataContext.pas at line 138
C:\repository\dws\Source\dwsDataContext.pas(157,29) Error: Duplicate identifier 
"Addr"
C:\repository\dws\Source\dwsDataContext.pas(157,29) Hint: Identifier already 
defined in dwsDataContext.pas at line 138
C:\repository\dws\Source\dwsDataContext.pas(173,1) Fatal: There were 32 errors 
compiling module, stopping

Original comment by silvioprog on 24 Aug 2013 at 5:12

GoogleCodeExporter commented 9 years ago
I think that you need to add the directive in all units, e.g.:

Free Pascal mode:

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

or in Delphi mode:

{$IFDEF FPC}
  {$mode delphi}
{$ENDIF}

Original comment by silvioprog on 24 Aug 2013 at 5:18

GoogleCodeExporter commented 9 years ago
Ah, you already have it. So:

unit dwsDataContext;

{$I dws.inc}

...

unit dwsJSON;

{$I dws.inc}

...

unit dwsCompilerUtils;

{$I dws.inc}

Original comment by silvioprog on 24 Aug 2013 at 5:21

GoogleCodeExporter commented 9 years ago
Well, I updated all (DWS and FPC), but when I try to compile my example above:

C:\repository\dwscript\Source\dwsXPlatform.pas(198,36) Hint: Local variable 
"fileTime" does not seem to be initialized
C:\repository\dwscript\Source\dwsXPlatform.pas(208,23) Hint: Local variable 
"systemTime" does not seem to be initialized
C:\repository\dwscript\Source\dwsXPlatform.pas(360,4) Note: Local variable 
"info" is assigned but never used
C:\repository\dwscript\Source\dwsXPlatform.pas(444,39) Warning: Implicit string 
type conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dwscript\Source\dwsXPlatform.pas(447,38) Warning: Implicit string 
type conversion from "AnsiString" to "UnicodeString"
C:\repository\dwscript\Source\dwsXPlatform.pas(447,43) Warning: Implicit string 
type conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dwscript\Source\dwsXPlatform.pas(538,49) Hint: Local variable 
"nRead" does not seem to be initialized
C:\repository\dwscript\Source\dwsXPlatform.pas(559,63) Hint: Local variable 
"nWrite" does not seem to be initialized
C:\repository\dwscript\Source\dwsXPlatform.pas(640,4) Hint: "formal parameter" 
not yet supported inside inline procedure/function
C:\repository\dwscript\Source\dwsXPlatform.pas(640,4) Hint: Inlining disabled
C:\repository\dwscript\Source\dwsXPlatform.pas(650,4) Hint: "formal parameter" 
not yet supported inside inline procedure/function
C:\repository\dwscript\Source\dwsXPlatform.pas(650,4) Hint: Inlining disabled
C:\repository\dwscript\Source\dwsXPlatform.pas(655,4) Hint: "formal parameter" 
not yet supported inside inline procedure/function
C:\repository\dwscript\Source\dwsXPlatform.pas(655,4) Hint: Inlining disabled
C:\repository\dwscript\Source\dwsXPlatform.pas(744,43) Warning: Implicit string 
type conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dwscript\Source\dwsXPlatform.pas(57,10) Note: Private field 
"TFixedCriticalSection.FDummy" is never used
C:\repository\dwscript\Source\dwsUtils.pas(645,63) Hint: Parameter "X" not used
C:\repository\dwscript\Source\dwsUtils.pas(659,4) Hint: "formal parameter" not 
yet supported inside inline procedure/function
C:\repository\dwscript\Source\dwsUtils.pas(659,4) Hint: Inlining disabled
C:\repository\dwscript\Source\dwsUtils.pas(685,11) Hint: Conversion between 
ordinals and pointers is not portable
C:\repository\dwscript\Source\dwsUtils.pas(698,20) Hint: Converting the 
operands to "Int64" before doing the multiply could prevent overflow errors.
C:\repository\dwscript\Source\dwsUtils.pas(819,33) Hint: Local variable "buf" 
does not seem to be initialized
C:\repository\dwscript\Source\dwsUtils.pas(863,32) Hint: Conversion between 
ordinals and pointers is not portable
C:\repository\dwscript\Source\dwsUtils.pas(863,53) Hint: Conversion between 
ordinals and pointers is not portable
C:\repository\dwscript\Source\dwsUtils.pas(870,38) Hint: Function result 
variable does not seem to be initialized
C:\repository\dwscript\Source\dwsUtils.pas(879,51) Warning: Implicit string 
type conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dwscript\Source\dwsUtils.pas(879,43) Warning: Implicit string 
type conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dwscript\Source\dwsUtils.pas(879,38) Warning: Implicit string 
type conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dwscript\Source\dwsUtils.pas(879,12) Warning: Implicit string 
type conversion from "AnsiString" to "UnicodeString"
C:\repository\dwscript\Source\dwsUtils.pas(921,30) Warning: Implicit string 
type conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dwscript\Source\dwsUtils.pas(921,25) Warning: Implicit string 
type conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dwscript\Source\dwsUtils.pas(939,28) Warning: Implicit string 
type conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dwscript\Source\dwsUtils.pas(939,23) Warning: Implicit string 
type conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dwscript\Source\dwsUtils.pas(979,22) Warning: Implicit string 
type conversion from "AnsiString" to "UnicodeString"
C:\repository\dwscript\Source\dwsUtils.pas(985,15) Warning: Implicit string 
type conversion from "AnsiString" to "UnicodeString"
C:\repository\dwscript\Source\dwsUtils.pas(1046,41) Hint: Function result 
variable does not seem to be initialized
C:\repository\dwscript\Source\dwsUtils.pas(1271,37) Hint: Function result 
variable does not seem to be initialized
C:\repository\dwscript\Source\dwsUtils.pas(1338,9) Hint: Conversion between 
ordinals and pointers is not portable
C:\repository\dwscript\Source\dwsUtils.pas(1339,9) Hint: Conversion between 
ordinals and pointers is not portable
C:\repository\dwscript\Source\dwsUtils.pas(1342,23) Hint: Conversion between 
ordinals and pointers is not portable
C:\repository\dwscript\Source\dwsUtils.pas(1342,14) Warning: Conversion between 
ordinals and pointers is not portable
C:\repository\dwscript\Source\dwsUtils.pas(1343,23) Hint: Conversion between 
ordinals and pointers is not portable
C:\repository\dwscript\Source\dwsUtils.pas(1343,14) Warning: Conversion between 
ordinals and pointers is not portable
C:\repository\dwscript\Source\dwsUtils.pas(1370,21) Hint: Conversion between 
ordinals and pointers is not portable
C:\repository\dwscript\Source\dwsUtils.pas(1370,12) Warning: Conversion between 
ordinals and pointers is not portable
C:\repository\dwscript\Source\dwsUtils.pas(1544,37) Warning: Implicit string 
type conversion from "AnsiString" to "UnicodeString"
C:\repository\dwscript\Source\dwsUtils.pas(1544,33) Warning: Implicit string 
type conversion from "AnsiString" to "UnicodeString"
C:\repository\dwscript\Source\dwsUtils.pas(2091,23) Hint: Function result 
variable does not seem to be initialized
C:\repository\dwscript\Source\dwsUtils.pas(2099,34) Hint: Function result 
variable does not seem to be initialized
C:\repository\dwscript\Source\dwsUtils.pas(2108,26) Hint: Function result 
variable does not seem to be initialized
C:\repository\dwscript\Source\dwsUtils.pas(2131,30) Hint: Function result 
variable does not seem to be initialized
C:\repository\dwscript\Source\dwsUtils.pas(2349,32) Warning: Function result 
does not seem to be set
C:\repository\dwscript\Source\dwsUtils.pas(524,28) Hint: Parameter "Buffer" not 
used
C:\repository\dwscript\Source\dwsUtils.pas(524,36) Hint: Parameter "Count" not 
used
C:\repository\dwscript\Source\dwsUtils.pas(2462,4) Note: Local variable 
"stringCracker" not used
C:\repository\dwscript\Source\dwsUtils.pas(2481,31) Hint: Local variable "buf" 
does not seem to be initialized
C:\repository\dwscript\Source\dwsUtils.pas(2546,12) Warning: Implicit string 
type conversion from "RawByteString" to "UnicodeString"
C:\repository\dwscript\Source\dwsUtils.pas(3155,52) Warning: Implicit string 
type conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dwscript\Source\dwsUtils.pas(3560,20) Hint: Function result 
variable does not seem to be initialized
C:\repository\dwscript\Source\dwsUtils.pas(2672,4) Note: Local variable 
"hashCode" not used
C:\repository\dwscript\Source\dwsUtils.pas(2091,23) Hint: Function result 
variable does not seem to be initialized
C:\repository\dwscript\Source\dwsUtils.pas(2099,34) Hint: Function result 
variable does not seem to be initialized
C:\repository\dwscript\Source\dwsUtils.pas(2108,26) Hint: Function result 
variable does not seem to be initialized
C:\repository\dwscript\Source\dwsUtils.pas(2131,30) Hint: Function result 
variable does not seem to be initialized
C:\repository\dwscript\Source\dwsUtils.pas(1178,22) Hint: Local type 
"TStringListList" is not used
C:\repository\dwscript\Source\dwsFileSystem.pas(69,36) Hint: Parameter 
"fileName" not used
C:\repository\dwscript\Source\dwsFileSystem.pas(70,40) Hint: Parameter 
"fileName" not used
C:\repository\dwscript\Source\dwsFileSystem.pas(70,65) Hint: Parameter "mode" 
not used
C:\repository\dwscript\Source\dwsFileSystem.pas(230,60) Warning: Implicit 
string type conversion from "AnsiString" to "UnicodeString"
C:\repository\dwscript\Source\dwsFileSystem.pas(308,61) Warning: Implicit 
string type conversion from "AnsiString" to "UnicodeString"
C:\repository\dwscript\Source\dwsFileSystem.pas(308,30) Warning: Implicit 
string type conversion from "AnsiString" to "UnicodeString"
C:\repository\dwscript\Source\dwsErrors.pas(477,27) Warning: Implicit string 
type conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dwscript\Source\dwsErrors.pas(655,12) Warning: Implicit string 
type conversion from "AnsiString" to "UnicodeString"
C:\repository\dwscript\Source\dwsErrors.pas(845,50) Warning: Implicit string 
type conversion from "AnsiString" to "UnicodeString"
C:\repository\dwscript\Source\dwsErrors.pas(862,35) Warning: Implicit string 
type conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dwscript\Source\dwsErrors.pas(905,17) Warning: Implicit string 
type conversion from "RawByteString" to "UnicodeString"
C:\repository\dwscript\Source\dwsErrors.pas(909,17) Warning: Implicit string 
type conversion from "RawByteString" to "UnicodeString"
C:\repository\dwscript\Source\dwsErrors.pas(992,20) Warning: Implicit string 
type conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dwscript\Source\dwsErrors.pas(994,47) Warning: Implicit string 
type conversion from "AnsiString" to "UnicodeString"
C:\repository\dwscript\Source\dwsErrors.pas(985,35) Warning: Function result 
does not seem to be set
C:\repository\dwscript\Source\dwsTokenizer.pas(337,61) Warning: Some fields 
coming before "DecimalSeparator" weren't initialized
C:\repository\dwscript\Source\dwsTokenizer.pas(378,16) Hint: Function result 
variable does not seem to be initialized
C:\repository\dwscript\Source\dwsTokenizer.pas(582,38) Warning: Implicit string 
type conversion with potential data loss from "UnicodeString" to "AnsiString"
C:\repository\dwscript\Source\dwsTokenizer.pas(598,29) Hint: Converting the 
operands to "Int64" before doing the add could prevent overflow errors.
C:\repository\dwscript\Source\dwsTokenizer.pas(612,52) Hint: Local variable 
"buf" does not seem to be initialized
C:\repository\dwscript\Source\dwsTokenizer.pas(773,18) Warning: Implicit string 
type conversion from "AnsiString" to "UnicodeString"
C:\repository\dwscript\Source\dwsTokenizer.pas(242,35) Hint: Parameter 
"tokenBuf" not used
C:\repository\dwscript\Source\dwsDataContext.pas(51,42) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(51,42) Hint: Identifier 
already defined in dwsDataContext.pas at line 48
C:\repository\dwscript\Source\dwsDataContext.pas(51,42) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(51,42) Hint: Identifier 
already defined in dwsDataContext.pas at line 48
C:\repository\dwscript\Source\dwsDataContext.pas(56,27) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(56,27) Hint: Identifier 
already defined in dwsDataContext.pas at line 48
C:\repository\dwscript\Source\dwsDataContext.pas(60,43) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(60,43) Hint: Identifier 
already defined in dwsDataContext.pas at line 48
C:\repository\dwscript\Source\dwsDataContext.pas(60,43) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(60,43) Hint: Identifier 
already defined in dwsDataContext.pas at line 48
C:\repository\dwscript\Source\dwsDataContext.pas(61,43) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(61,43) Hint: Identifier 
already defined in dwsDataContext.pas at line 48
C:\repository\dwscript\Source\dwsDataContext.pas(61,43) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(61,43) Hint: Identifier 
already defined in dwsDataContext.pas at line 48
C:\repository\dwscript\Source\dwsDataContext.pas(62,41) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(62,41) Hint: Identifier 
already defined in dwsDataContext.pas at line 48
C:\repository\dwscript\Source\dwsDataContext.pas(62,41) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(62,41) Hint: Identifier 
already defined in dwsDataContext.pas at line 48
C:\repository\dwscript\Source\dwsDataContext.pas(63,42) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(63,42) Hint: Identifier 
already defined in dwsDataContext.pas at line 48
C:\repository\dwscript\Source\dwsDataContext.pas(63,42) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(63,42) Hint: Identifier 
already defined in dwsDataContext.pas at line 48
C:\repository\dwscript\Source\dwsDataContext.pas(64,45) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(64,45) Hint: Identifier 
already defined in dwsDataContext.pas at line 48
C:\repository\dwscript\Source\dwsDataContext.pas(64,45) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(64,45) Hint: Identifier 
already defined in dwsDataContext.pas at line 48
C:\repository\dwscript\Source\dwsDataContext.pas(66,31) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(66,31) Hint: Identifier 
already defined in dwsDataContext.pas at line 48
C:\repository\dwscript\Source\dwsDataContext.pas(67,30) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(67,30) Hint: Identifier 
already defined in dwsDataContext.pas at line 48
C:\repository\dwscript\Source\dwsDataContext.pas(68,33) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(68,33) Hint: Identifier 
already defined in dwsDataContext.pas at line 48
C:\repository\dwscript\Source\dwsDataContext.pas(73,25) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(73,25) Hint: Identifier 
already defined in dwsDataContext.pas at line 48
C:\repository\dwscript\Source\dwsDataContext.pas(142,33) Error: Duplicate 
identifier "Offset"
C:\repository\dwscript\Source\dwsDataContext.pas(142,33) Hint: Identifier 
already defined in dwsDataContext.pas at line 140
C:\repository\dwscript\Source\dwsDataContext.pas(144,34) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(144,34) Hint: Identifier 
already defined in dwsDataContext.pas at line 138
C:\repository\dwscript\Source\dwsDataContext.pas(145,33) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(145,33) Hint: Identifier 
already defined in dwsDataContext.pas at line 138
C:\repository\dwscript\Source\dwsDataContext.pas(146,36) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(146,36) Hint: Identifier 
already defined in dwsDataContext.pas at line 138
C:\repository\dwscript\Source\dwsDataContext.pas(148,46) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(148,46) Hint: Identifier 
already defined in dwsDataContext.pas at line 138
C:\repository\dwscript\Source\dwsDataContext.pas(148,46) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(148,46) Hint: Identifier 
already defined in dwsDataContext.pas at line 138
C:\repository\dwscript\Source\dwsDataContext.pas(149,46) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(149,46) Hint: Identifier 
already defined in dwsDataContext.pas at line 138
C:\repository\dwscript\Source\dwsDataContext.pas(149,46) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(149,46) Hint: Identifier 
already defined in dwsDataContext.pas at line 138
C:\repository\dwscript\Source\dwsDataContext.pas(150,44) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(150,44) Hint: Identifier 
already defined in dwsDataContext.pas at line 138
C:\repository\dwscript\Source\dwsDataContext.pas(150,44) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(150,44) Hint: Identifier 
already defined in dwsDataContext.pas at line 138
C:\repository\dwscript\Source\dwsDataContext.pas(151,45) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(151,45) Hint: Identifier 
already defined in dwsDataContext.pas at line 138
C:\repository\dwscript\Source\dwsDataContext.pas(151,45) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(151,45) Hint: Identifier 
already defined in dwsDataContext.pas at line 138
C:\repository\dwscript\Source\dwsDataContext.pas(152,48) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(152,48) Hint: Identifier 
already defined in dwsDataContext.pas at line 138
C:\repository\dwscript\Source\dwsDataContext.pas(152,48) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(152,48) Hint: Identifier 
already defined in dwsDataContext.pas at line 138
C:\repository\dwscript\Source\dwsDataContext.pas(157,29) Error: Duplicate 
identifier "Addr"
C:\repository\dwscript\Source\dwsDataContext.pas(157,29) Hint: Identifier 
already defined in dwsDataContext.pas at line 138
C:\repository\dwscript\Source\dwsDataContext.pas(173,1) Fatal: There were 32 
errors compiling module, stopping

Original comment by silvioprog on 31 Aug 2013 at 3:01

GoogleCodeExporter commented 9 years ago
Posted some fixes for FPC compilation, though at the moment the FPC 2.7.1 
compiler support for generics is broken (I'm getting an internal error: 
Undefined symbol: VMT_$DWSUTILS_$$_$GENDEF315 in the latest nightlies)

Most of the other issues remaining are Unicode/Ansi implicit conversion, which 
boil down to missing UnicodeString overloads in the FPC RTL, and the FPC RTL 
TStrings still being Ansi-based rather than Unicode.

Original comment by zar...@gmail.com on 3 Sep 2013 at 3:26

GoogleCodeExporter commented 9 years ago
Friends, unfortunately I couldn't compile it. :/

Is there prediction when the DWS will be compatible with Free Pascal?

Original comment by silvioprog on 11 Sep 2013 at 6:02

GoogleCodeExporter commented 9 years ago
It's mostly in the hands of FPC compiler guys (for the $GENDEF error in recent 
2.7 branch) and the FPC/Lazarus guys (for UnicodeString support in the RTL)... 

Though there hasn't been much progress on the Unicode front lately AFAICT, and 
the subject still seems to be taboo in the FPC mailing lists. The {$MODESWITCH 
UNICODESTRINGS} hack only affects local units, the RTL files are unaffected, so 
is is no alterantive to having the RTL by UnicodeString compatible.

If you want to help with that, I suppose the best option would be to work on an 
Unicode-capable RTL for FPC (from the basics like IntToStr or Pos up to classes 
like TStrings). Some might be tougher nuts to crack (like TClass.ClassName or 
the RTTI)

Original comment by zar...@gmail.com on 12 Sep 2013 at 8:01

GoogleCodeExporter commented 9 years ago
Hm... at the moment I'm out of time to study the code, understand it and solve 
this problem, so I'll wait for something new.

Anyway, thank you very much friend! (y)

Original comment by silvioprog on 4 Oct 2013 at 10:40

GoogleCodeExporter commented 9 years ago
Hi i fork it on GitHub
https://github.com/tvar/dwscript-fpc
support fpc

Original comment by Zotov...@gmail.com on 13 Jan 2014 at 10:49

GoogleCodeExporter commented 9 years ago
@Zotov How did you get around the Unicode issues in FPC? Do the unit tests pass?

Original comment by zar...@gmail.com on 13 Jan 2014 at 10:52

GoogleCodeExporter commented 9 years ago
no currently it just compilable
and simple some works
currently make project for unit tests
to many errors

Original comment by Zotov...@gmail.com on 13 Jan 2014 at 2:04

GoogleCodeExporter commented 9 years ago
I downloaded your fork and tried to compile the demo uploaded in this issue, 
but the error continues. ;(

Please, can you show a small sample working?

Thank you!

Original comment by silvioprog on 13 Jan 2014 at 3:52

GoogleCodeExporter commented 9 years ago
first of all try build Lazarus\dwsLibRuntime.lpk
if you have no errors 
try
Test\LanguageTests.lpr

if you have errors tell me fpc an lazarus version
I use 
Free Pascal Compiler version 2.6.2
Lazarus 1.0.12

And your OS/Platform
I check on Win32/64 and Linux x64

Original comment by Zotov...@gmail.com on 13 Jan 2014 at 7:07

GoogleCodeExporter commented 9 years ago
Now the error is:

"The program can not start because it is missing BeaEngine32.DLL on your 
computer. Try to reinstall it to resolve this issue."

My environment:

Lazarus 1.0.14 r43446 FPC 2.6.2 i386-win32-win32/win64.

Original comment by silvioprog on 23 Jan 2014 at 12:31

GoogleCodeExporter commented 9 years ago
It's in Tools\BeaEngine, and used only as part of the JIT compiler unit tests.

Original comment by zar...@gmail.com on 23 Jan 2014 at 12:52

GoogleCodeExporter commented 9 years ago
Worked, but, with erros, please see: http://pastebin.com/vuZxPMD7.

Original comment by silvioprog on 23 Jan 2014 at 1:27

GoogleCodeExporter commented 9 years ago
Your test execution timings are way too fast, I suspect it didn't actually run 
the tests (or couldn't find the tests files)

Original comment by zar...@gmail.com on 23 Jan 2014 at 1:47

GoogleCodeExporter commented 9 years ago
to fix TdwsJSONTests.ParseJSON error you need test data 
copy /Test/Data/ to path with executable file

Windows i test on same version, but have no errors with Float
(Win64 native, Win32 WINE) 
can you help me to reproduce it?
i think problem in floating point accuracy
you can debug it in function 
TRelNotEqualFloatExpr.EvalAsBoolean
from unit dwsRelExprs

run only one test, what fails

Original comment by Zotov...@gmail.com on 23 Jan 2014 at 11:11

GoogleCodeExporter commented 9 years ago
Friend, sorry for my long delay. I'll debug this function tomorrow in my laptop 
and post the result here ...

Original comment by silvioprog on 26 Feb 2014 at 3:21