[CSOUND-DEV:4238] Re: fltk and OS X
| Date | 2004-03-05 09:02 |
| From | jpff@codemist.co.uk |
| Subject | [CSOUND-DEV:4238] Re: fltk and OS X |
I know I fixed the gcvt error before -- can anyone remember the fix? The other error has me totally confused. Why would a Fl_Output::value(int) have int Fl_Input_::value(...) as a candidate? c++ -g -fno-exceptions -fno-rtti -c -o widgets.o widgets.cpp widgets.cpp: In function `void displ(float, float)': widgets.cpp:1758: implicit declaration of function `int gcvt(...)' widgets.cpp:1758: no matching function for call to `Fl_Output::value (int)' /usr/local/include/FL/Fl_Input_.H:95: candidates are: int Fl_Input_::value(const char *) /usr/local/include/FL/Fl_Input_.H:96: int Fl_Input_::value(const char *, int) /usr/local/include/FL/Fl_Input_.H:99: const char * Fl_Input_::value() const widgets.cpp: In function `void FLprintk(FLPRINTK *)': widgets.cpp:3385: no matching function for call to `Fl_Output::value (int)' /usr/local/include/FL/Fl_Input_.H:95: candidates are: int Fl_Input_::value(const char *) /usr/local/include/FL/Fl_Input_.H:96: int Fl_Input_::value(const char *, int) /usr/local/include/FL/Fl_Input_.H:99: const char * Fl_Input_::value() const widgets.cpp: In function `void FLprintk2(FLPRINTK2 *)': widgets.cpp:3401: no matching function for call to `Fl_Output::value (int)' /usr/local/include/FL/Fl_Input_.H:95: candidates are: int Fl_Input_::value(const char *) /usr/local/include/FL/Fl_Input_.H:96: int Fl_Input_::value(const char *, int) /usr/local/include/FL/Fl_Input_.H:99: const char * Fl_Input_::value() const make: *** [widgets.o] Error 1 ==John ffitch |
| Date | 2004-03-05 09:17 |
| From | stevenyi |
| Subject | [CSOUND-DEV:4240] Re: fltk and OS X |
Hi John,
I tried compiling fltk and OSX this week and ran into this problem as
well. This one I had to look back at the archive which suggested to use
sprintf instead. I was able to get past that by adding this:
char *gcvt (double val, int ndigt, char * buf) {
sprintf(buf, "%.5g", val);
return buf;
}
but I consider it a hack in an attempt to get csound/fltk to compile
versus fixing up the code to remove gcvt.
Hope that helps!
steven
On Fri, 2004-03-05 at 01:02, jpff@codemist.co.uk wrote:
> I know I fixed the gcvt error before -- can anyone remember the fix?
>
> The other error has me totally confused. Why would a
> Fl_Output::value(int) have int Fl_Input_::value(...) as a candidate?
>
>
> c++ -g -fno-exceptions -fno-rtti -c -o widgets.o widgets.cpp
> widgets.cpp: In function `void displ(float, float)':
> widgets.cpp:1758: implicit declaration of function `int gcvt(...)'
> widgets.cpp:1758: no matching function for call to `Fl_Output::value (int)'
> /usr/local/include/FL/Fl_Input_.H:95: candidates are: int Fl_Input_::value(const char *)
> /usr/local/include/FL/Fl_Input_.H:96: int Fl_Input_::value(const char *, int)
> /usr/local/include/FL/Fl_Input_.H:99: const char * Fl_Input_::value() const
> widgets.cpp: In function `void FLprintk(FLPRINTK *)':
> widgets.cpp:3385: no matching function for call to `Fl_Output::value (int)'
> /usr/local/include/FL/Fl_Input_.H:95: candidates are: int Fl_Input_::value(const char *)
> /usr/local/include/FL/Fl_Input_.H:96: int Fl_Input_::value(const char *, int)
> /usr/local/include/FL/Fl_Input_.H:99: const char * Fl_Input_::value() const
> widgets.cpp: In function `void FLprintk2(FLPRINTK2 *)':
> widgets.cpp:3401: no matching function for call to `Fl_Output::value (int)'
> /usr/local/include/FL/Fl_Input_.H:95: candidates are: int Fl_Input_::value(const char *)
> /usr/local/include/FL/Fl_Input_.H:96: int Fl_Input_::value(const char *, int)
> /usr/local/include/FL/Fl_Input_.H:99: const char * Fl_Input_::value() const
> make: *** [widgets.o] Error 1
>
> ==John ffitch
>
> |
| Date | 2004-03-05 13:24 |
| From | jpff@cs.bath.ac.uk |
| Subject | [CSOUND-DEV:4243] Re: fltk and OS X |
Thanks -- I managed to work it out again and have a similar solution. Result was getting FLTK opcodes on Mac. ==John ffitch |