rlarranaga / bafprp

Automatically exported from code.google.com/p/bafprp
0 stars 0 forks source link

Missing include in output.cpp #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On linux
What steps will reproduce the problem?
1.  make

I get a compilation error:

error: 'printf' was not declared in this scope 

It was caused by a missing include of C standard IO library in the output.cpp 
file.

Here is the change that I have made to make it work.

--- a/src/output.cpp
+++ b/src/output.cpp
@@ -19,6 +19,7 @@ along with bafprp.  If not, see 
<http://www.gnu.org/licenses/>.
 */

 #include "output.h"
+#include <cstdio>

 namespace bafprp
 {

Best Regards

Original issue reported on code.google.com by chab...@gmail.com on 30 Mar 2011 at 1:46

GoogleCodeExporter commented 9 years ago
Thanks again, makes sense that printf might require addition includes on some 
platforms.  Ill put this in the next commit

Original comment by charless...@gmail.com on 30 Mar 2011 at 2:57

GoogleCodeExporter commented 9 years ago
Fixed in r234

Original comment by charless...@gmail.com on 3 Jan 2013 at 5:55