Ticket #4 (closed feature request: fixed)
Building pgrouting 1.0.0.a on win32 error with tsp_solver.cpp
Reported by: | davidtecher | Owned by: | anton |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | pgRouting package | Version: | 1.0.0a |
Keywords: | Cc: |
Description
Building gaul with Dev-c++ on win32 according to http://gaul.sourceforge.net/windows-DevCPP.html
I got this error
dllwrap -o librouting.dll --dllname librouting.dll --def routing.def dijkstra.o boost_wrapper.o astar.o astar_boost_wrapper.o drivedist.o boost_drivedist.o shooting_star.o shooting_star_boost_wrapper.o tsp.o tsp_solver.o -Lc:/POSTGR~1/8222BD~1.4/lib -Lc:/POSTGR~1/8222BD~1.4/lib -lpostgres -lstdc++ -L/usr/local/lib/libnn_util.a -L/usr/local/lib/gaul-util.a -L/usr/local/lib/gaul-devel.a -L/c/MinGW/lib -lpthread tsp_solver.o(.text+0x168): In function `Z15tsp_mutate_swapP12population_tP8entity_tS2_': C:/msys/1.0/home/david/routing/tsp_solver.cpp:128: undefined reference to `random_int' tsp_solver.o(.text+0x188):C:/msys/1.0/home/david/routing/tsp_solver.cpp:134: undefined reference to `random_int' tsp_solver.o(.text+0x21a): In function `Z16tsp_mutate_shiftP12population_tP8entity_tS2_': C:/msys/1.0/home/david/routing/tsp_solver.cpp:164: undefined reference to `random_int' tsp_solver.o(.text+0x228):C:/msys/1.0/home/david/routing/tsp_solver.cpp:168: undefined reference to `random_int' tsp_solver.o(.text+0x2b0): In function `Z10tsp_mutateP12population_tP8entity_tS2_': C:/msys/1.0/home/david/routing/tsp_solver.cpp:199: undefined reference to `random_boolean_prob' tsp_solver.o(.text+0x361): In function `Z13tsp_crossoverP12population_tP8entity_tS2_S2_S2_': C:/msys/1.0/home/david/routing/tsp_solver.cpp:215: undefined reference to `random_boolean' tsp_solver.o(.text+0x4a8): In function `find_tsp_solution': C:/msys/1.0/home/david/routing/tsp_solver.cpp:285: undefined reference to `random_init' tsp_solver.o(.text+0x4cd):C:/msys/1.0/home/david/routing/tsp_solver.cpp:289: undefined reference to `ga_extinction' tsp_solver.o(.text+0x4da):C:/msys/1.0/home/david/routing/tsp_solver.cpp:291: undefined reference to `ga_select_two_randomrank' tsp_solver.o(.text+0x4e2):C:/msys/1.0/home/david/routing/tsp_solver.cpp:290: undefined reference to `random_seed' tsp_solver.o(.text+0x4f5):C:/msys/1.0/home/david/routing/tsp_solver.cpp:291: undefined reference to `ga_select_one_randomrank' tsp_solver.o(.text+0x554):C:/msys/1.0/home/david/routing/tsp_solver.cpp:291: undefined reference to `ga_genesis_integer' tsp_solver.o(.text+0x58a):C:/msys/1.0/home/david/routing/tsp_solver.cpp:310: undefined reference to `ga_population_set_parameters' tsp_solver.o(.text+0x596):C:/msys/1.0/home/david/routing/tsp_solver.cpp:319: undefined reference to `ga_evolution' tsp_solver.o(.text+0x5aa):C:/msys/1.0/home/david/routing/tsp_solver.cpp:325: undefined reference to `ga_get_entity_from_rank' tsp_solver.o(.text+0x5cc):C:/msys/1.0/home/david/routing/tsp_solver.cpp:327: undefined reference to `ga_get_entity_from_rank' tsp_solver.o(.text+0x5fa):C:/msys/1.0/home/david/routing/tsp_solver.cpp:332: undefined reference to `ga_get_entity_from_rank' collect2: ld returned 1 exit status c:\MinGW\bin\dllwrap.exe: c:\MinGW\bin\gcc exited with status 1 make: *** [librouting.a] Error 1
Change History
Note: See
TracTickets for help on using
tickets.