Page 1 of 1
VMPlayer host Linux xubuntu 8.10 - guest WIN98SE
Posted: 03 January 2009, 3:24 AM
by ndudman
Hello
I just installed Zbasic on win98se running under wmplayer... building a simple project shown below with the inline c commented out is ok
Code: Select all
sub abc()
Debug.print "hello"
end sub
sub main()
call abc()
#c
char c
#endc
end sub
.
.. but if the inline c is not commented then the following error I get.
- >"C:\PROGRAM FILES\ZBASIC\zbasic.exe" --target-device=ZX24n --directory="C:\work/" --project="test.pjt"
C:\work\zxTempDir\test>
Error: cannot open intermediate file "zxTempDir/test\test.eeb"
>Exit code: 1
Posted: 03 January 2009, 3:53 AM
by ndudman
Ill try it again without the missing ;...
Yes my mistake... sorry to ask the question so quickly...
Also I switched the --verbose on and the error when missing ; is more obvious...
Learning, sorry to take up space here
Neil
Posted: 03 January 2009, 8:28 AM
by dkinzer
ndudman wrote:Also I switched the --verbose on and the error when missing ; is more obvious...
The ZBasic compiler doesn't detect syntax errors in the inline C or assembly code at all. Although the error output of the backend compile process will contain messages that may be useful for determining what the error was, we chose not to include that in the overall compile process output thinking that it would be more confusing than helpful since it will refer to line numbers that have nothing to do with the user-generated source code.
Note that if
--keep-files is used but
--verbose is not used, a file named
build.log will be generated in the build directory. That file will contain the output of the backend build process - essentially what you see when you add
--verbose.
Posted: 05 January 2009, 14:02 PM
by ndudman
I wonder though if it wouldn't be useful if the --keep-files & --verbose is specified when you double click on a c error if the generated c file was opened. Sometimes I'm opening them mself, and then clicking on the file number goes to that line nicely...
To avoid confusion the file could be opened readonly, perhaps... perhaps its not so easy to do... and of course i'm sure you have more important things... just a thought.
Neil
Posted: 09 January 2009, 14:34 PM
by ndudman
Ive just noticed that in Linux with ZBasic_2-6-10.zip experimental, that if I double click on the verboce avr-gcc errors it opens the temp auto generated c files, I dont remember this before, but perhaps it did...
Thats great
neil