lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Build error using kpathsea-4


From: Jan Nieuwenhuizen
Subject: Re: Build error using kpathsea-4
Date: Mon, 25 Apr 2005 16:59:04 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

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 <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]