Hi guys,
I finally got around to making a very minimalistic homebrew computer using a W65C02 and am beyond happy with the progress so far!
I am presently trying to get my head around how to compile a simple C program with WDCTools, but am running in to issues.
The code I am attempting to compile is as simple as it gets.
Code:
int main()
{
return 0;
}
I can compile it happily by running
wdc02cc test.c which generates an object file of test.obj.
Quote:
G:\wdc\Tools\bin>wdc02cc test.c
WDC 65C02 C Version 3.49.1 Feb 6 2006 16:25:18
Copyright 1992-2006 by The Western Design Center, Inc.
But if I try to link it by doing
wdcln -C8000 -D200, test.obj I get an error.
Quote:
G:\wdc\Tools\bin>wdcln -C8000 -D200, test.obj
WDC 65C816 Linker Version 3.49.1 Apr 24 2006 15:40:38
Copyright (C) 1992-2006 The Western Design Center, Inc.
Undefined symbol: ~csav
I have had a brief read through the manual (
https://www.westerndesigncenter.com/wdc ... mpiler.pdf) but am at a loss as to what I am doing wrong.
Any advice would be greatly appreciated.