alliance-support '2000
basename problem with Linux


Olexiy Ye Tykhomyrov (tiger@ff.dsu.dp.ua)
Thu, 2 Mar 2000 19:18:57 +0000 (GMT)

Hi friends, I am so sorry for the quite long reaction on the mail about compiling Alliance under Linux. This is not Alliance problem, but Linux (gcc) one! According ANSI C standard, function "basename" SHOULD NOT BE IN "string.h" file, but on Linix it IS! Here the corresponding lines from the "string.h" file: ---------------- start #ifdef __USE_MISC /* Return the file name within directory of FILENAME. */ extern char *basename __P ((__const char *__filename)); #endif ------------- finish The __BEST__ solution should be editing the file and remove (or comment) the line with "basename". Here an example: ---------------- start #ifdef __USE_MISC /* Return the file name within directory of FILENAME. */ /* extern char *basename __P ((__const char *__filename)); */ #endif ------------- finish Yours, O.Ye. Tykhomyrov ========================================================================== Dr Olexiy Ye Tykhomyrov \ please email tiger@ff.dsu.dp.ua | UKRAINE \ ==PGP key available on request== | ==========================================================================

 



Alliance Web Site © 1997, 2002 ASIM/LIP6/UPMC, page maintained by Czo [Olivier Sirol] , last updated on 22 March 2001.