Hello --- Michael Goffioul <[EMAIL PROTECTED]> wrote:
> In include/ANN.h around line 60, replace > > #ifdef WIN32 > > with > > #if defined(WIN32) && !defined(STATIC_BUILD) > > and add -DSTATIC_BUILD to your compilation flags. I made the above changes. And try again. As Michael said, > #if defined(WIN32) && !defined(STATIC_BUILD) > > and add -DSTATIC_BUILD to your compilation flags. seem to be required for win32 build. BTW: 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 Will I need swig? Regards Tatsuro ***************************************** $ make make -C ann all make[1]: Entering directory `/local/octave-forge-bundle-20080429/main/ann-1.0.s/src/ann' make -C src targets make[2]: Entering directory `/local/octave-forge-bundle-20080429/main/ann-1.0.s/src/ann/src' g++ -c -I../include -g -O2 -DSTATIC_BUILD ANN.cpp g++ -c -I../include -g -O2 -DSTATIC_BUILD brute.cpp g++ -c -I../include -g -O2 -DSTATIC_BUILD kd_tree.cpp g++ -c -I../include -g -O2 -DSTATIC_BUILD kd_util.cpp g++ -c -I../include -g -O2 -DSTATIC_BUILD kd_split.cpp g++ -c -I../include -g -O2 -DSTATIC_BUILD kd_dump.cpp g++ -c -I../include -g -O2 -DSTATIC_BUILD kd_search.cpp g++ -c -I../include -g -O2 -DSTATIC_BUILD kd_pr_search.cpp g++ -c -I../include -g -O2 -DSTATIC_BUILD kd_fix_rad_search.cpp g++ -c -I../include -g -O2 -DSTATIC_BUILD bd_tree.cpp g++ -c -I../include -g -O2 -DSTATIC_BUILD bd_search.cpp g++ -c -I../include -g -O2 -DSTATIC_BUILD bd_pr_search.cpp g++ -c -I../include -g -O2 -DSTATIC_BUILD bd_fix_rad_search.cpp g++ -c -I../include -g -O2 -DSTATIC_BUILD perf.cpp ar ruv 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 c:\Programs\MinGW\bin\ar.exe: creating libANN.a a - ANN.o a - brute.o a - kd_tree.o a - kd_util.o a - kd_split.o a - kd_dump.o a - kd_search.o a - kd_pr_search.o a - kd_fix_rad_search.o a - bd_tree.o a - bd_search.o a - bd_pr_search.o a - bd_fix_rad_search.o a - perf.o ranlib libANN.a mv libANN.a ../lib make[2]: Leaving directory `/local/octave-forge-bundle-20080429/main/ann-1.0.s/src/ann/src' make -C test targets make[2]: Entering directory `/local/octave-forge-bundle-20080429/main/ann-1.0.s/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 -------------------------------------- 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
