printf %d of a string
Status: Beta
Brought to you by:
pxhieu
The compiler gives correct warning:
model.cpp:240: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘const char*’
The code is:
printf("Cannot open file %d to load model!\n", filename.c_str());
and it should be
printf("Cannot open file %s to load model!\n", filename.c_str());