z88dk forums

z80 Development Kit

You are not logged in.

#1 2012-06-27 23:39:30

Chupo_cro
New member
From: Croatia
Registered: 2012-06-27
Posts: 3

What's ndos lib & 'Unrecognised argument: \\' error

What exactly is the purpose of ldos library? As I can see, Spectrum examples work fine even without -lndos parameter :-/

And why an 'Unrecognised argument: \\' error has been generated during every zcc call? Verbose output says:

sccz80    -\\ -zorg=49152  Temp\sr8_.i
Unrecognised argument: \\


I see everyone who pasted the text from the cmd has the same problem.


Chupo_cro

Offline

 

#2 2012-06-28 18:36:14

stefano
Administrator
Registered: 2007-07-16
Posts: 694

Re: What's ndos lib & 'Unrecognised argument: \\' error

It should be an old parameter not supported anymore.
The updated .lnx files and the resulting /lib/config/*.cfg files do not have it anymore, I think.

The "ndos" library is a simple foo replacement for the file drivers.  If you need to use stdio but do not want to write on Microdrive or Spectrum +3 disks, it could be useful.
Never mind, if your program does not need a function, it won't be linked in.

Offline

 

#3 2012-06-28 22:14:31

Chupo_cro
New member
From: Croatia
Registered: 2012-06-27
Posts: 3

Re: What's ndos lib & 'Unrecognised argument: \\' error

stefano wrote:

It should be an old parameter not supported anymore.
The updated .lnx files and the resulting /lib/config/*.cfg files do not have it anymore, I think.

It would be nice if someone'd have fixed the call.

stefano wrote:

The "ndos" library is a simple foo replacement for the file drivers.  If you need to use stdio but do not want to write on Microdrive or Spectrum +3 disks, it could be useful.
Never mind, if your program does not need a function, it won't be linked in.

I was looking for some examples of using the ndos library but could'n find :-/

Thank you very much for answering me!


Chupo_cro

Offline

 

#4 2012-06-29 14:25:52

stefano
Administrator
Registered: 2007-07-16
Posts: 694

Re: What's ndos lib & 'Unrecognised argument: \\' error

> It would be nice if someone'd have fixed the call.
Which version of z88dk have you downloaded ?  For which OS ?


For Windows, the version provided with the "installer" is quite outdated, you could try picking the nightly build, which includes fixed libraries and cfg Files:

http://nightly.z88dk.org/z88dk-win32-latest.zip

But watch out, you should expand it in the root of your C drive and adjust the following system variables:
Z80_OZFILES=c:\z88dk\lib\
ZCCCFG=c:\z88dk\lib\config\

PATH= .. ;. .; ..;  \c:\z88dk\bin


The ndos library does not provide real functionalities, it is just a stub needed in some case to terminate those "connectors" we had to prepare to make printf, gets and so on to be possibly used also for file operations.

Offline

 

#5 2012-06-29 23:21:17

Chupo_cro
New member
From: Croatia
Registered: 2012-06-27
Posts: 3

Re: What's ndos lib & 'Unrecognised argument: \\' error

Thank you very much for the info.

Regards,


Chupo_cro

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson