#include #include #include #include // g++ -shared test_library.cpp -o test_library.so -I../src -fPIC extern "C" void generate(Map *mapPtr) { Map &map = *mapPtr; int w = map.getWidth(); int h = map.getHeight(); int n = map.getNbTeams(); int i, j, k; for(i=0;i