|
|
| Author |
Message |
ndudman
Joined: 25 Dec 2008
Posts: 79
|
|
Posted: 03 January 2009, 11:24 AM Post subject: VMPlayer host Linux xubuntu 8.10 - guest WIN98SE |
|
|
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: | 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 |
|
| Back to top |
|
 |
ndudman
Joined: 25 Dec 2008
Posts: 79
|
|
Posted: 03 January 2009, 11:53 AM Post subject: |
|
|
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 |
|
| Back to top |
|
 |
dkinzer Site Admin
Joined: 03 Sep 2005
Posts: 2499
Location: Portland, OR
|
|
Posted: 03 January 2009, 16:28 PM Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
ndudman
Joined: 25 Dec 2008
Posts: 79
|
|
Posted: 05 January 2009, 22:02 PM Post subject: |
|
|
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 |
|
| Back to top |
|
 |
ndudman
Joined: 25 Dec 2008
Posts: 79
|
|
Posted: 09 January 2009, 22:34 PM Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|