Greetings:
I've been trying to solve this one for a while but I can't see the
light. I'm compiling Istvan Varga's beta 4.24.2 Csound for Linux, but
I'm stuck here:
g++ -pipe -Wall -O2 -ffast-math -fomit-frame-pointer -finline-functions
-funroll-loops -fno-strict-aliasing -fPIC -DPIC -I. -I. -I./include
-I./opcodes -DWINDOWS -DSFIRCAM -DSYS5 -DLINUX -DHAVE_TERMIOS_H
-DIV_VERSION -DPIPES -DMACROS -DHAVE_FLTK -D_REENTRANT -DMYFLT=float
-march=i686 -falign-functions=16 -falign-loops=16 -falign-jumps=16
-frename-registers -mno-ieee-fp -mno-sse -fno-exceptions -fno-rtti
-fno-unroll-loops -I/usr/local/include/FL -c widgets.cpp -o widgets.o
widgets.cpp: In method `int Fl_Knob::handle (int)':
widgets.cpp:230: `atan2' undeclared (first use this function)
widgets.cpp:230: (Each undeclared identifier is reported only once for
each function it appears in.)
widgets.cpp: In method `void Fl_Knob::draw_scale (int, int, int)':
widgets.cpp:289: `cos' undeclared (first use this function)
widgets.cpp:290: `sin' undeclared (first use this function)
widgets.cpp:310: `log10' undeclared (first use this function)
widgets.cpp:278: warning: `float ca' might be used uninitialized in
this function
widgets.cpp:278: warning: `float sa' might be used uninitialized in
this function
widgets.cpp: In method `void SNAPSHOT::get (vector<ADDR_SET_VALUE,
allocator<ADDR_SET_VALUE> > &)':
widgets.cpp:1171: `::pow' undeclared (first use here)
widgets.cpp:1172: `log' undeclared (first use this function)
widgets.cpp: In function `void fl_callbackJoystick (Fl_Widget *, void
*)':
widgets.cpp:1759: warning: `float val' might be used uninitialized in
this function
make: *** [widgets.o] Error 1
[dlphilp@localhost Csound-4.24.1]$
I understand that the missing functions are math functions, but math.h
is included at the start of widgets.cpp. Unfortunately widgets.cpp is
about 104 KB so I didn't want to send it along with this message. If
anyone wants to look at it I'll gladly send it off-list. But it seems
I've run into this kind of problem before, that it's some sort of C vs.
C++ thing... but I also know less than zero about C++... (and only a wee
bit more about C)...
TIA to anyone who can assist !
Best regards,
== Dave Phillips
The Book Of Linux Music & Sound at
http://www.nostarch.com/lms.htm
The Linux Soundapps Site at
http://linux-sound.org