[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [help-GIFT] Installing GIFT on MacOS-X or Darwin
From: |
Wolfgang Müller |
Subject: |
Re: [help-GIFT] Installing GIFT on MacOS-X or Darwin |
Date: |
Fri, 15 Mar 2002 20:14:56 +0100 |
Hi Andre,
> I my efforts to port GIFT to MacOS-X I managed two problems:
> I used the expat port from Fink instead of the code in the package.
> I used dlcompat from Fink for "dynamically loaded modules" (cpp
> complaining the missing dlfcn.h).
Great stuff.
> But now I get a more GIFT specific problem (I guess):
>
> /bin/sh ../../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I.
> -I../.. -DHAS_BOOL -DLINK_DYNAMICALLY -I../.. -g -O2
> -DEF_PROTECT_BELOW=1 -DEF_PROTECT_FREE -DEF_PROTECT_ALIGNMENT=8
> -DEF_FILL=42 -c CAFPlugin.cc
> rm -f .libs/CAFPlugin.lo
> c++ -DHAVE_CONFIG_H -I. -I. -I../.. -DHAS_BOOL -DLINK_DYNAMICALLY
> -I../.. -g -O2 -DEF_PROTECT_BELOW=1 -DEF_PROTECT_FREE
> -DEF_PROTECT_ALIGNMENT=8 -DEF_FILL=42 -c CAFPlugin.cc -fno-common
> -DPIC
> CAFPlugin.cc: In method
> `CAFPlugin::CAFPlugin(basic_string<char,string_char_traits<char>,__default_
>alloc_template< false,0> >,
> basic_string<char,string_char_traits<char>,__default_alloc_template<false,
> 0> >)':
> CAFPlugin.cc:37: assignment to `char *' from `const char *'
> discards qualifiers
> CAFPlugin.cc:43: assignment to `char *' from `const char *'
> discards qualifiers
> make[1]: *** [CAFPlugin.lo] Error 1
>
> How can I fix it?
Thanks a lot! Change in line 23
char* lError;
to
const char* lError;
Somehow this is not a problem with g++.
BTW: What compiler do you use?
Cheers,
Wolfgang