help-gift
[Top][All Lists]
Advanced

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

Re: [help-GIFT] problems compiling gift-0.1.9+3epsilon on freebsd 4.8


From: Wolfgang Müller
Subject: Re: [help-GIFT] problems compiling gift-0.1.9+3epsilon on freebsd 4.8
Date: Fri, 18 Jul 2003 15:08:44 +0200
User-agent: KMail/1.5

On Friday 18 July 2003 14:41, Henning Müller wrote:
> When compiling under MacOS X I get the same error with the gnugetopt.h
> that Alex has. I did the same thing in creating a lib directory and
> copying the file there but is there a cleaner way to get rid of that
> problem?
>
> Cheers, Henning
The line that hurts in Server.cc is:
    int c = getopt_long( argc, argv, "p:d:rgh", long_options, NULL );
Try to tranlate this into 

#ifdef HAVE_GETOPT_LONG
int c = getopt_long( argc, argv, "p:d:rgh", long_options, NULL );
#else
int c = getopt( argc, argv, "p:d:rgh");
#endif

or something like that. This hack is untested, but this might be worth a try. 
Please report success and failure to the list. 

In fact, the real trouble is expected when trying to link libraries 
dynamically. But also here the list will be thankful for your experiences.

Cheers,
Wolfgang




reply via email to

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