nano-devel
[Top][All Lists]
Advanced

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

[Nano-devel] Problems compiling CVS


From: Carl Drinkwater
Subject: [Nano-devel] Problems compiling CVS
Date: Thu, 16 May 2002 00:04:40 +0100

Hi there,

I am having problems compiling Nano on Darwin. I downloaded the CVS tree this afternoon, and checked and upgraded where necessary the auto* packages, gettext, texinfo etc

I used ...

./configure --enable-nanorc --enable-undo --disable-wrapping --enable-extra

... before make'ing.

It does fine, no warning, no errors or anything, then it all falls down ...

gcc -DSYSCONFDIR=\"/usr/local/etc\" -I. -I. -I. -Iintl -DLOCALEDIR=\"/usr/local/share/locale\" -I/usr/local/include -I/sw/include -g -O2 -c `test -f global.c || echo './'`global.c
global.c:401: illegal function call, found `0'
global.c:407: only 1 arg to macro 'IFHELP' (2 expected)
global.c:407: illegal function call, found `0'
global.c:409: illegal expression, found `else'
global.c:412: only 1 arg to macro 'IFHELP' (2 expected)
global.c:416: only 1 arg to macro 'IFHELP' (2 expected)
global.c:417: illegal function call, found `0'

Looking at the code, there is something i don't really get ...

/* The following macro is to be used in calling sc_init_one. The point is
 * that sc_init_one takes 9 arguments, unless DISABLE_HELP is defined,
 * when the fourth one should not be there. */
#ifdef DISABLE_HELP
#  define IFHELP(help, nextvar) nextvar
#else
#  define IFHELP(help, nextvar) help, nextvar
#endif

    sc_init_one(&main_list, NANO_HELP_KEY, _("Get Help"),
      IFHELP(nano_help_msg,) 0, NANO_HELP_FKEY, 0, VIEW,
      do_help);

(The IFHELP(nano_help_msg,) 0 bit specifically, it'll expand to 'nano_help_msg 0'?)

... but obviously it works for you guys, so I was wondering if you could give any pointers. If you don't really have any ideas, I'll sit down and work it out - I'm new to Nano (This is the first CVS I downloaded, and it might be something you know about ...)

Any help will be greatly appreciated!

Regards,
Carl.



-----
TopTheTable.com - Football Management For The Masses
Sign up for free at www.topthetable.com and compete against
managers from all over the world!




reply via email to

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