VMPlayer host Linux xubuntu 8.10 - guest WIN98SE

Discussion of issues related specifically to writing code for native mode devices. This includes ZBasic code as well as assembly language code and C code, both inline and standalone.
Post Reply
ndudman
Posts: 79
Joined: 25 December 2008, 14:00 PM

VMPlayer host Linux xubuntu 8.10 - guest WIN98SE

Post 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
ndudman
Posts: 79
Joined: 25 December 2008, 14:00 PM

Post 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
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Post 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.
- Don Kinzer
ndudman
Posts: 79
Joined: 25 December 2008, 14:00 PM

Post 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
ndudman
Posts: 79
Joined: 25 December 2008, 14:00 PM

Post 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
Post Reply