klusta-team / klustaviewa

LEGACY - Graphical interface for spike sorting manual stage in Python
Other
29 stars 17 forks source link

cygwin build #49

Closed subhacom closed 9 years ago

subhacom commented 9 years ago

The current version fails to build on latest cygwin:

g++ -Wall io.o linalg.o log.o parameters.o precomputations.o util.o memorytracking.o klustakwik.o -o KlustaKwik
klustakwik.o:klustakwik.cpp:(.text.startup+0x937): undefined reference to `available_physical_memory()'
klustakwik.o:klustakwik.cpp:(.text.startup+0x937): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `available_physical_memory()'
collect2: error: ld returned 1 exit status
makefile:31: recipe for target 'executable' failed
make: *** [executable] Error 1

The following change in memorytracking.cpp fixes it:

#if defined( __linux__ ) || defined( __CYGWIN__)

in stead of

#ifdef __linux__
thesamovar commented 9 years ago

Thanks for the report and fix! I put that in the master branch now.