2014-01-27 20 views
0

我在Clipper中創建了一個測試項目。使用Harbor從Clipper轉換時出現錯誤

這裏是TEST.PRG

store space(1) to mT 
@ 10,10 say "hellow Time :" get mT pict "!" 
read 

在這裏,代碼是生成的HBP文件的代碼:

-3rd=hbide_version=1.0 
-3rd=hbide_type=Executable 
-3rd=hbide_title=test 
-3rd=hbide_location=d:\hcjs\ 
-3rd=hbide_workingfolder= 
-3rd=hbide_destinationfolder= 
-3rd=hbide_output=test 
-3rd=hbide_launchparams= 
-3rd=hbide_launchprogram= 
-3rd=hbide_backupfolder= 
-3rd=hbide_xhb=NO 
-3rd=hbide_xpp=NO 
-3rd=hbide_clp=YES 

-inc 
-mt 
-w3 
-es2 
-gtwvg 
-gui 
-lhbwin 
-lxhb 

test.prg 

我按照下列步驟:

1. Open Project 
2. I select test.hbp 
3. Right-click on Select an environment 
4. Select MinGW 
5. Again Right Click then Build And Launch 

轉換是不成功。我收到一些錯誤。錯誤如下:

1. Warning: Ambiguous Reference 'mT' 
2. Warning: Ambiguous Reference 'GETLIST' 
3. Warning: Ambiguous Reference 'GETLIST' 
4. Warning: Ambiguous Reference 'GETLIST' 
5. Warning: Ambiguous Reference 'GETLIST' 
6. Warning: Ambiguous Reference 'GETLIST' 

Sorry, cannot launch project because of errors 

回答

1

順便說一下,這是一個警告,而不是一個錯誤。該程序應該工作得很好。

去除警告,添加這些行到文件的頂部:

LOCAL GetList := {} 
LOCAL mT 
+1

爲了在使用它們的功能的頂部。 –

相關問題