Compiler say ERROR, but where?
Compiler say ERROR, but where?
PASCAL AVR PRO Beta, unregistered Demo Version, Source is large and should produce DEMO LIMIT.
Instead, I get the following output.
No indication of any error, but cannot program either.
Instead, I get the following output.
No indication of any error, but cannot program either.
No other sensible files other than
TEST1.LOG
and the TEST1.LST, which looks strange:
TEST1.ASM looks real good and is nice and long, contains all the translated source - i.e. it seems quite complete
TEST1.LOG
Code: Select all
Line MessageNo File Name
0 1 mPAVR.exe -DBG -pATMEGA644P -MSF -O11111115 -fo8 -N"C:\Users\Michael Stiemke\Documents\mE\TEST1\test1.mppav" -SP"C:\Program Files\Mikroelektronika\mikroPascal PRO for AVR\Defs\" -SP"C:\Program Files\Mikroelektronika\mikroPascal PRO for AVR\Uses\LTE64KW\" -SP"C:\Users\Michael Stiemke\Documents\mE\TEST1\" "__Lib_Math.mcl" "__Lib_MathDouble.mcl" "__Lib_System.mcl" "__Lib_Delays.mcl" "__Lib_String.mcl" "__Lib_Conversions.mcl" "__Lib_SPI_b567_x2.mcl" "__Lib_Mmc.mcl" "test1.mpas"
diagnostics: 0 132 Compilation Started C:\USERS\MICHAEL STIEMKE\DOCUMENTS\ME\TEST1\test1.mpas
hint: 157 1018 Warning: Suspicious pointer conversion test1.mpas
hint: 364 1011 Hint: Variable "zsec" has been eliminated by optimizer test1.mpas
hint: 369 1011 Hint: Variable "rclun" has been eliminated by optimizer test1.mpas
hint: 370 1011 Hint: Variable "yclusec" has been eliminated by optimizer test1.mpas
hint: 390 1011 Hint: Variable "j" has been eliminated by optimizer test1.mpas
hint: 393 1011 Hint: Variable "zsec" has been eliminated by optimizer test1.mpas
hint: 398 1011 Hint: Variable "rclun" has been eliminated by optimizer test1.mpas
diagnostics: 0 133 Compiled Successfully C:\USERS\MICHAEL STIEMKE\DOCUMENTS\ME\TEST1\test1.mpas
diagnostics: 0 137 All files Compiled in 750 ms
0 0
error: 0 102 Finished (with errors): 14 Dez 2008, 11:42:38 test1.mppav
Code: Select all
unit |;
implementation
end.
Please zip the project folder and sent to florin@microelemente.ro
Best regards, Florin Andrei Medrea.
http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/
mail : florin@microelemente.ro
http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/
mail : florin@microelemente.ro
Done !
I don't know why , the compiler don't accept instructions like this :
I made changes in the code with this :
Also , MMC library need this declarations :
Now compile OK !
I don't know why , the compiler don't accept instructions like this :
Code: Select all
usay(' '+#13+#10);
Code: Select all
buf_txt := ' '+#13+#10;
usay(buf_txt);
Code: Select all
var MMC_chip_select : sbit at PORTB.B4;
var MMC_chip_select_direction : sbit at DDRB.B4;
Best regards, Florin Andrei Medrea.
http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/
mail : florin@microelemente.ro
http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/
mail : florin@microelemente.ro
Well Done! :D
But mikroElektronika: You should fix the behaviour of the compiler. The stuff the compiler doesn't accept should lead to an error message. Also, a missing declaration should be an error.
Thanks for fixing it for me - but the main point is for the BETA Version to be corrected of such misleading behaviour.
But mikroElektronika: You should fix the behaviour of the compiler. The stuff the compiler doesn't accept should lead to an error message. Also, a missing declaration should be an error.
Thanks for fixing it for me - but the main point is for the BETA Version to be corrected of such misleading behaviour.
It is ... without declarations i got this error messages :FanDjango wrote: Also, a missing declaration should be an error.
0 359 Unresolved extern 'MMC_chip_select' __lib_mmc.mpas
0 359 Unresolved extern 'MMC_chip_select_direction' __lib_mmc.mpas
Best regards, Florin Andrei Medrea.
http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/
mail : florin@microelemente.ro
http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/
mail : florin@microelemente.ro
Ok.
It is EITHER one of THESE two statemenst:
All the others can stay the way they were.
So when one of the two statements above are used instead of your circumvention, you get the strange compiler behaviour.
So I created a mini program with such a construct, but in a small mini program, "usay(' '+#27+'[12l')" does not make the compiler go wrong.
It must also have something to do with the program being larger or whatever.
It is EITHER one of THESE two statemenst:
Code: Select all
usay(' '+#27+'[12l')
usay(' '+#27+'[20l')
So when one of the two statements above are used instead of your circumvention, you get the strange compiler behaviour.
So I created a mini program with such a construct, but in a small mini program, "usay(' '+#27+'[12l')" does not make the compiler go wrong.
It must also have something to do with the program being larger or whatever.
-
- mikroElektronika team
- Posts: 265
- Joined: 25 Nov 2008 09:09
Hi,
Please post this question on our Support Desk:
http://www.mikroe.com/en/support/
And provide us with piece of code which demonstrate problem.
Also explain your problem as much you can.
Regards
Please post this question on our Support Desk:
http://www.mikroe.com/en/support/
And provide us with piece of code which demonstrate problem.
Also explain your problem as much you can.
Regards
-
- mikroElektronika team
- Posts: 265
- Joined: 25 Nov 2008 09:09
-
- mikroElektronika team
- Posts: 265
- Joined: 25 Nov 2008 09:09
another reason for "finished with errors" without
program test;
var s:string[2];
a:byte;
begin
s:='x';
case s of
'x': a:=1;
end;
end.
result:
compilation startet
finished (with errors) but it found neither warnings nor errors.
The compiler must check the variable-type of the case statement
var s:string[2];
a:byte;
begin
s:='x';
case s of
'x': a:=1;
end;
end.
result:
compilation startet
finished (with errors) but it found neither warnings nor errors.
The compiler must check the variable-type of the case statement