From: Spiro Trikaliotis (trik-news_at_gmx.de)
Date: 2003-01-10 08:41:31
Hello, Brian Bagnall wrote: > Here's the steps I went through to build an executable: > 1. cc65 on ia.c to produce ia.s > 2. ca65 on ia.s to produce ia.o > 3. saved ia.h in same directory as the rest > 4. compiles main.h with cl65. ^^^ It is ".c", isn't it? > When I attempt step 4 it says: > > Unresolved external `_getnumber' referenced in: > C:\Projects\Play\hist.s(11) > Error: 1 unresolved external(s) found - cannot create output file > > All files are located in the same directory (source and object files). Any > ideas? Have you given ia.o at step 4? The linker needs to know that it must include another object file (ia.o), else, the external cannot be resolved. Why don't you use "cl main.c ia.c"? This should work, too. And: Don't forget to include ia.h in ia.c. Although it is not needed, it is got practice and might help you with some warnings when the prototypes do not match. HTH, Spiro. ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo_at_musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.
This archive was generated by hypermail 2.1.3 : 2003-01-10 08:42:04 CET