Bertalan Fodor writes:
> Your minimal example builds with gcc. But shouldn't it build with g++?
Same difference.
Jan.
/* c++-safe version. */
#include <stdio.h>
#include <getopt.h>
#ifdef __cplusplus
extern "C" {
#endif
#define popen KPATHSEA_HAS_POPEN_PROTOTYPE_PROBLEM
#define pclose KPATHSEA_HAS_PCLOSE_PROTOTYPE_PROBLEM
#define getopt KPATHSEA_HAS_GETOPT_PROTOTYPE_PROBLEM
#define getopt_long KPATHSEA_HAS_GETOPT_LONG_PROTOTYPE_PROBLEM
#define option KPATHSEA_HAS_OPTION_PROTOTYPE_PROBLEM
#include <kpathsea/kpathsea.h>
#ifdef __cplusplus
}
#endif
int
main (int argc, char const* argv[])
{
if (argc > 1 && argv[1])
return printf ("%s -> %s\n", argv[1], kpse_var_expand (argv[1]));
return 2;
}
--
Jan Nieuwenhuizen <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien | http://www.lilypond.org
_______________________________________________
lilypond-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-devel