Hello Thanks Michael.
--- Michael Goffioul <[EMAIL PROTECTED]> wrote: > Here's a patch that makes it work under MSVC. I think it also > should work under MinGW. > CPPFLAGS="$CPPFLAGS -DSTATIC_LINKED" OF_CHECK_LIB(m,random,[],[CPPFLAGS="$CPPFLAGS -DANN_NO_RANDOM"]) seemed to work only in cpp files in ann/src However make[2]: Entering directory `/local/octave-forge-bundle-20080429/main/ann-1.0.s2/src/ann/test' g++ -c -I../include -g -O2 ann_test.cpp g++ -c -I../include -g -O2 rand.cpp Surely the files in /ann/test etc. did not reflect in the final installed ann package. However ann package would like to make those. Do I have remove those directries? But this might require an additional modification. Regards Tatsuro **************************************************************** $ make make -C ann all make[1]: Entering directory `/local/octave-forge-bundle-20080429/main/ann-1.0.s2/src/ann' make -C src targets make[2]: Entering directory `/local/octave-forge-bundle-20080429/main/ann-1.0.s2/src/ann/src' g++ -c -I../include -I/mingw/include -I/usr/local/octave-3.0.1/include -I/GnuWin32/include -DSTATIC_LINKED -DANN_NO_RANDOM -g -O2 -o ANN.o ANN.cpp g++ -c -I../include -I/mingw/include -I/usr/local/octave-3.0.1/include -I/GnuWin32/include -DSTATIC_LINKED -DANN_NO_RANDOM -g -O2 -o brute.o brute.cpp g++ -c -I../include -I/mingw/include -I/usr/local/octave-3.0.1/include -I/GnuWin32/include -DSTATIC_LINKED -DANN_NO_RANDOM -g -O2 -o kd_tree.o kd_tree.cpp g++ -c -I../include -I/mingw/include -I/usr/local/octave-3.0.1/include -I/GnuWin32/include -DSTATIC_LINKED -DANN_NO_RANDOM -g -O2 -o kd_util.o kd_util.cpp g++ -c -I../include -I/mingw/include -I/usr/local/octave-3.0.1/include -I/GnuWin32/include -DSTATIC_LINKED -DANN_NO_RANDOM -g -O2 -o kd_split.o kd_split.cpp g++ -c -I../include -I/mingw/include -I/usr/local/octave-3.0.1/include -I/GnuWin32/include -DSTATIC_LINKED -DANN_NO_RANDOM -g -O2 -o kd_dump.o kd_dump.cpp g++ -c -I../include -I/mingw/include -I/usr/local/octave-3.0.1/include -I/GnuWin32/include -DSTATIC_LINKED -DANN_NO_RANDOM -g -O2 -o kd_search.o kd_search.cpp g++ -c -I../include -I/mingw/include -I/usr/local/octave-3.0.1/include -I/GnuWin32/include -DSTATIC_LINKED -DANN_NO_RANDOM -g -O2 -o kd_pr_search.o kd_pr_search.cpp g++ -c -I../include -I/mingw/include -I/usr/local/octave-3.0.1/include -I/GnuWin32/include -DSTATIC_LINKED -DANN_NO_RANDOM -g -O2 -o kd_fix_rad_search.o kd_fix_rad_search.cpp g++ -c -I../include -I/mingw/include -I/usr/local/octave-3.0.1/include -I/GnuWin32/include -DSTATIC_LINKED -DANN_NO_RANDOM -g -O2 -o bd_tree.o bd_tree.cpp g++ -c -I../include -I/mingw/include -I/usr/local/octave-3.0.1/include -I/GnuWin32/include -DSTATIC_LINKED -DANN_NO_RANDOM -g -O2 -o bd_search.o bd_search.cpp g++ -c -I../include -I/mingw/include -I/usr/local/octave-3.0.1/include -I/GnuWin32/include -DSTATIC_LINKED -DANN_NO_RANDOM -g -O2 -o bd_pr_search.o bd_pr_search.cpp g++ -c -I../include -I/mingw/include -I/usr/local/octave-3.0.1/include -I/GnuWin32/include -DSTATIC_LINKED -DANN_NO_RANDOM -g -O2 -o bd_fix_rad_search.o bd_fix_rad_search.cpp g++ -c -I../include -I/mingw/include -I/usr/local/octave-3.0.1/include -I/GnuWin32/include -DSTATIC_LINKED -DANN_NO_RANDOM -g -O2 -o perf.o perf.cpp ar rc libANN.a ANN.o brute.o kd_tree.o kd_util.o kd_split.o kd_dump.o kd_search.o kd_pr_search.o kd_fix_rad_search.o bd_tree.o bd_search.o bd_pr_search.o bd_fix_rad_search.o perf.o ranlib libANN.a mv libANN.a ../lib make[2]: Leaving directory `/local/octave-forge-bundle-20080429/main/ann-1.0.s2/src/ann/src' make -C test targets make[2]: Entering directory `/local/octave-forge-bundle-20080429/main/ann-1.0.s2/src/ann/test' g++ -c -I../include -g -O2 ann_test.cpp g++ -c -I../include -g -O2 rand.cpp rand.cpp: In function `double annRan0()': rand.cpp:82: error: `srandom' was not declared in this scope rand.cpp:86: error: `random' was not declared in this scope rand.cpp:89: error: `random' was not declared in this scope rand.cpp:90: error: `random' was not declared in this scope rand.cpp:102: error: `random' was not declared in this scope make[2]: *** [rand.o] Error 1 make[2]: Leaving directory `/local/octave-forge-bundle-20080429/main/ann-1.0.s2/src/ann/test' make[1]: *** [all] Error 2 make[1]: Leaving directory `/local/octave-forge-bundle-20080429/main/ann-1.0.s2/src/ann' make: *** [all] Error 2 -------------------------------------- GANBARE! NIPPON! Win your ticket to Olympic Games 2008. http://pr.mail.yahoo.co.jp/ganbare-nippon/ ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Octave-dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/octave-dev
