Missing #include

Issue #9 resolved
Thomas Glanzman created an issue

phoSim release 3.5.1 rhel6-64

make generates this error:

g++ -g -O3 -ffast-math -Wall -c -I ../ -I ../../ test_trim.cpp -o test_trim.o In file included from test_trim.cpp:19: ../../validation/unittest.h: In function 'void unitTestOutput(double, double, const char, const char, const char)': ../../validation/unittest.h:5: error: 'printf' was not declared in this scope ../../validation/unittest.h:8: error: 'printf' was not declared in this scope make[1]: ** [test_trim.o] Error 1

Placing this line into validation/unittest.h seems to fix:

#include <stdio.h>

Comments (2)

  1. Thomas Glanzman reporter

    Sorry, but bitbucket (again) reformatted my report, removing line feeds. The last statement should obviously have a pound sign (#) in front of "include".

  2. Log in to comment