Re: [cc65] Problem with swiftlink

From: Tom Watt <tom1awhost.biz>
Date: 2007-10-21 20:09:42
i thought that was included in rs232c.h or whatever... there is a ser  
folder with c64-swlink.ser i tried using -I and -L to this path but  
it didnt work

On Oct 21, 2007, at 12:03 PM, Dan Winslow wrote:

> Well, you need to give it something to link…it has no idea where  
> the functions for the rs232 lib are at. You need to either include  
> the relevant source files ( ie., rs232.c ) in your compilation, or  
> tell the linker where it can find the lib or the .o’s for the  
> routines.
>
>
>
> From: owner-cc65@musoftware.de [mailto:owner-cc65@musoftware.de] On  
> Behalf Of Tom Watt
> Sent: Sunday, October 21, 2007 12:58 PM
> To: cc65@musoftware.de
> Subject: [cc65] Problem with swiftlink
>
>
>
> Hello,
>
>
>
> I just downloaded the latest windows cc65, and c64 support... I  
> made the following test program/make.bat file and get the errors  
> below and not sure why..
>
>
>
> sltest.c:
>
> #include <c64.h>
> #include <cbm.h>
> #include <rs232.h>
>
>
>
> void main(void) {
>   rs232_init (0);
>   rs232_params(RS_BAUD_19200, RS_PAR_NONE);
>   rs232_put ('H');
>   rs232_put ('e');
>   rs232_put ('l');
>   rs232_put ('l');
>   rs232_put ('o');
>   rs232_put (' ');
>   rs232_put ('W');
>   rs232_put ('o');
>   rs232_put ('r');
>   rs232_put ('l');
>   rs232_put ('d');
>   rs232_put ('!');
>   rs232_put ('\n');
>   rs232_done ();
> }
>
>
>
> make.bat:
>
> cl65 -g -Oi sltest.c
>
>
>
> error/output when make.bat ran:
>
> C:\DOCUME~1\Tom\Desktop\c64\sltest>cl65 -L "C:\Progra~1\cc65\ser"  
> sltest.c
> Unresolved external `_rs232_done' referenced in:
>   sltest.s(14)
> Unresolved external `_rs232_init' referenced in:
>   sltest.s(12)
> Unresolved external `_rs232_params' referenced in:
>   sltest.s(13)
> Unresolved external `_rs232_put' referenced in:
>   sltest.s(15)
> ld65.exe: Error: 4 unresolved external(s) found - cannot create  
> output file
>
>
>
>
>
> Thanks,
>
>
>
> Tom
>
>


----------------------------------------------------------------------
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 Oct 21 20:08:39 2007

This archive was generated by hypermail 2.1.8 : 2007-10-21 20:08:42 CEST