Re: [cc65] Linking [s]printf breaks cbm_open?

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2007-08-26 20:05:11
On Sun, Aug 26, 2007 at 04:44:51PM +0200, Jakob Haufe wrote:
> As soon as [s]printf is linked to the program, cbm_open always return
> oserror=2 (file open). This happens even if [s]printf gets never
> executed.

You cannot use standard file i/o and cbm file i/o together without problems.
Both need file handles, and there is no way to allocate these handles when
using standard file i/o invisible to the user.

You can however use sprintf - if it does not work (as you're claiming above),
please send me a short example program via private mail.

Please consider using either just the standard file i/o functions
(fopen/fread/fwrite/fclose) or use direct console functions for output to the
screen.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Sun Aug 26 20:05:27 2007

This archive was generated by hypermail 2.1.8 : 2007-08-26 20:05:30 CEST