Repast / repast4py

Git repository for Repast for Python development
Other
51 stars 4 forks source link

C++ unit tests not compiling #3

Closed ncollier closed 3 years ago

ncollier commented 3 years ago

Two things:

1) to get distrubuted_space.cpp to compile, I had to cd into a subdirectory and copy the Makefile there, I believe because the paths in the Makefile included "../".

2) even after doing that, I get this output wrt compiling spacial_tree_tests.cpp:

$ make tests mpicxx -Wall -O0 -g3 -std=c++11 -MMD -MP -I/usr/lib/python3.9/site-packages/numpy/core/include/ -I/home/nick/anaconda3/include/python3.6m -I/usr/include/python3.9/ -I /store/home/six/sfw/googletest/include -I../src/repast4py -c ../src/repast4py/distributed_space.cpp -o build/distributed_space.o In file included from /usr/lib/python3.9/site-packages/numpy/core/include/numpy/ndarrayobject.h:21, from /usr/lib/python3.9/site-packages/numpy/core/include/numpy/arrayobject.h:4, from ../src/repast4py/geometry.h:15, from ../src/repast4py/space.h:12, from ../src/repast4py/distributed_space.h:11, from ../src/repast4py/distributed_space.cpp:3: /usr/lib/python3.9/site-packages/numpy/core/include/numpy/__multiarray_api.h:1463:1: warning: ‘int _import_array()’ defined but not used [-Wunused-function] 1463 | _import_array(void) | ^~~~~ make: *** No rule to make target 'build/spatial_tree_tests.o', needed by 'tests'. Stop.

ncollier commented 3 years ago

Fixed in c987c29