In the main.cpp test file, ecl.h is now included with extern "C".