code-google-com / opencollada

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

Includes are missing in CommonFWriteBufferFlusher #74

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
My problem:

common/libBuffer/src/CommonFWriteBufferFlusher.cpp: In constructor
'Common::FWriteBufferFlusher::FWriteBufferFlusher(const char*, size_t,
const char*)':
common/libBuffer/src/CommonFWriteBufferFlusher.cpp:24:35: error: 'fopen'
was not declared in this scope
common/libBuffer/src/CommonFWriteBufferFlusher.cpp:30:34: error: '_IOFBF'
was not declared in this scope
common/libBuffer/src/CommonFWriteBufferFlusher.cpp:30:54: error: 'setvbuf'
was not declared in this scope
common/libBuffer/src/CommonFWriteBufferFlusher.cpp: In destructor 'virtual
Common::FWriteBufferFlusher::~FWriteBufferFlusher()':
common/libBuffer/src/CommonFWriteBufferFlusher.cpp:56:18: error: 'fclose'
was not declared in this scope
common/libBuffer/src/CommonFWriteBufferFlusher.cpp: In member function
'virtual bool Common::FWriteBufferFlusher::receiveData(const char*, size_t)':
common/libBuffer/src/CommonFWriteBufferFlusher.cpp:69:45: error: 'fwrite'
was not declared in this scope
common/libBuffer/src/CommonFWriteBufferFlusher.cpp: In member function
'virtual bool Common::FWriteBufferFlusher::flush()':
common/libBuffer/src/CommonFWriteBufferFlusher.cpp:79:26: error: 'fflush'
was not declared in this scope
scons: ***
[common/libBuffer/obj/posix/x86_64/debug/src/CommonFWriteBufferFlusher.o]
Error 1

My solution:

Index: common/libBuffer/src/CommonFWriteBufferFlusher.cpp
===================================================================
--- common/libBuffer/src/CommonFWriteBufferFlusher.cpp  (revision 741)
+++ common/libBuffer/src/CommonFWriteBufferFlusher.cpp  (working copy)
@@ -9,6 +9,7 @@
 */

 #include "CommonFWriteBufferFlusher.h"
+#include <stdio.h>

  #include <errno.h>

Original issue reported on code.google.com by lub...@gmail.com on 1 May 2010 at 3:42

GoogleCodeExporter commented 9 years ago
$ gcc --version
gcc (GCC) 4.5.0
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ uname -a
Linux bstation 2.6.33-ARCH #1 SMP PREEMPT Mon Apr 26 19:31:00 CEST 2010 x86_64
Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz GenuineIntel GNU/Linux

Original comment by lub...@gmail.com on 1 May 2010 at 3:42

GoogleCodeExporter commented 9 years ago
Sorry this is a duplicate of Issue 44.

Original comment by lub...@gmail.com on 1 May 2010 at 3:52

GoogleCodeExporter commented 9 years ago
Fixed in issue 44.

Original comment by opencollada2@googlemail.com on 20 Jan 2011 at 8:37