From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2003-05-25 23:57:17
Hi! On Thu, May 22, 2003 at 03:09:00PM +0200, Groepaz wrote: > in other words, currently any user-supplied header file will override (found > before) any header file supplied by cc65. what i need is the opposite, cc65 > header files override (found before) any user defined headers. There are several methods to influence the search order. cc65 manages two search lists: One for system header files (delimited by <>) and one for user includes (delimited by ""). On startup, the search path list for user includes is initialized by the current directory, while the search list for the system includes is initialized by "include" and a precompiled value (/usr/lib/cc65/include for linux). So by using #include <conio.h> the compiler will always find the conio.h from the system include directory first, provided that it is in one of the directories mentioned above (should be the default on unix systems). In addition to that, the compiler will add the value of the environment variable CC65_INC (if it exists) to both search lists, as well as any path given on the command line with -I. While additional paths are placed into both lists, you can give them in any order. If you add the cc65 include directory first, it will find the conio.h there. So I cannot see why this doesn't work for you. Have you used the correct include file delimiters and tried changing the order of the -I command line options? Regards Uz -- Ullrich von Bassewitz uz_at_musoftware.de ---------------------------------------------------------------------- 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-05-25 23:58:17 CEST