Forum Index
HomeZBasic Home   Forum RulesForum Rules   Forum FAQForum FAQ   MemberlistMemberlist   UsergroupsUsergroups   RSS FeedRSS Feed
Site SearchSite Search   LinksLinks   DownloadDownload   Digests and SubscriptionsDigests and Subscriptions
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   RegisterRegister
VMPlayer host Linux xubuntu 8.10 - guest WIN98SE

 
Post new topic   Reply to topic    Forum Index -> ZBasic Native Mode
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 Reply with quote

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: Reply with quote

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: Reply with quote

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: Reply with quote

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: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> ZBasic Native Mode Time synchro. with the server - Timezone/DST with your computer
Page 1 of 1

 


All content Copyright © 2005-2012 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group