Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:4671] Moving forward

Date2004-05-11 16:54
Fromjpff@cs.bath.ac.uk
Subject[CSOUND-DEV:4671] Moving forward
And now we have..... (used to work!)

gcc -o cscore util1/cscore/cscore_main.o -L. -L. -L. -L/usr/lib -L/usr/local/lib -L/usr/local/lib -L/usr/X11R6/lib -lcsound -lsndfile -lfltk -ldl -lm -lXext -lX11 -lportaudio -lasound -lfltk -lstdc++ -lpthread -lm -ldl
./libcsound.a(main.o): In function `csoundCompile':
/bigdisk/jpff/Sourceforge/csound5/Top/main.c:423: the use of `tmpnam' is dangerous, better use `mkstemp'
./libcsound.a(FL_graph.o): In function `POLL_EVENTS':
/bigdisk/jpff/Sourceforge/csound5/InOut/FL_graph.cpp:284: undefined reference to `Fl::lock(void)'
/bigdisk/jpff/Sourceforge/csound5/InOut/FL_graph.cpp:286: undefined reference to `Fl::unlock(void)'
./libcsound.a(FL_graph.o): In function `myFLwait':
/bigdisk/jpff/Sourceforge/csound5/InOut/FL_graph.cpp:309: undefined reference to `Fl::lock(void)'
/bigdisk/jpff/Sourceforge/csound5/InOut/FL_graph.cpp:311: undefined reference to `Fl::unlock(void)'
./libcsound.a(FL_graph.o): In function `ReadXYin_':
/bigdisk/jpff/Sourceforge/csound5/InOut/FL_graph.cpp:349: undefined reference to `Fl::lock(void)'
/bigdisk/jpff/Sourceforge/csound5/InOut/FL_graph.cpp:351: undefined reference to `Fl::unlock(void)'
./libcsound.a(widgets.o): In function `fltkRun(void *)':
/bigdisk/jpff/Sourceforge/csound5/InOut/widgets.cpp:1727: undefined reference to `Fl::lock(void)'
/bigdisk/jpff/Sourceforge/csound5/InOut/widgets.cpp:1729: undefined reference to `Fl::unlock(void)'
./libcsound.a(widgets.o): In function `fltkKeybRun(void *)':
/bigdisk/jpff/Sourceforge/csound5/InOut/widgets.cpp:1752: undefined reference to `Fl::lock(void)'
/bigdisk/jpff/Sourceforge/csound5/InOut/widgets.cpp:1759: undefined reference to `Fl::unlock(void)'
collect2: ld returned 1 exit status


==John ffitch

Date2004-05-11 20:10
Fromglyn
Subject[CSOUND-DEV:4678] Re: Moving forward
jpff@cs.bath.ac.uk wrote:

>And now we have..... (used to work!)
>
>gcc -o cscore util1/cscore/cscore_main.o -L. -L. -L. -L/usr/lib -L/usr/local/lib -L/usr/local/lib -L/usr/X11R6/lib -lcsound -lsndfile -lfltk -ldl -lm -lXext -lX11 -lportaudio -lasound -lfltk -lstdc++ -lpthread -lm -ldl
>./libcsound.a(main.o): In function `csoundCompile':
>/bigdisk/jpff/Sourceforge/csound5/Top/main.c:423: the use of `tmpnam' is dangerous, better use `mkstemp'
>./libcsound.a(FL_graph.o): In function `POLL_EVENTS':
>/bigdisk/jpff/Sourceforge/csound5/InOut/FL_graph.cpp:284: undefined reference to `Fl::lock(void)'
>/bigdisk/jpff/Sourceforge/csound5/InOut/FL_graph.cpp:286: undefined reference to `Fl::unlock(void)'
>./libcsound.a(FL_graph.o): In function `myFLwait':
>/bigdisk/jpff/Sourceforge/csound5/InOut/FL_graph.cpp:309: undefined reference to `Fl::lock(void)'
>/bigdisk/jpff/Sourceforge/csound5/InOut/FL_graph.cpp:311: undefined reference to `Fl::unlock(void)'
>./libcsound.a(FL_graph.o): In function `ReadXYin_':
>/bigdisk/jpff/Sourceforge/csound5/InOut/FL_graph.cpp:349: undefined reference to `Fl::lock(void)'
>/bigdisk/jpff/Sourceforge/csound5/InOut/FL_graph.cpp:351: undefined reference to `Fl::unlock(void)'
>./libcsound.a(widgets.o): In function `fltkRun(void *)':
>/bigdisk/jpff/Sourceforge/csound5/InOut/widgets.cpp:1727: undefined reference to `Fl::lock(void)'
>/bigdisk/jpff/Sourceforge/csound5/InOut/widgets.cpp:1729: undefined reference to `Fl::unlock(void)'
>./libcsound.a(widgets.o): In function `fltkKeybRun(void *)':
>/bigdisk/jpff/Sourceforge/csound5/InOut/widgets.cpp:1752: undefined reference to `Fl::lock(void)'
>/bigdisk/jpff/Sourceforge/csound5/InOut/widgets.cpp:1759: undefined reference to `Fl::unlock(void)'
>collect2: ld returned 1 exit status
>  
>
i think i encountered this with 'Fl::unlock()'.  did you compile fltk 
with --enable-threads?

glyn