cstdarg: no such file or directory error
whjamin opened this issue · comments
TinyML: Tensorflow lite for microcontroller 이슈
이곳은 텐서플로우 라이트 한글화 프로젝트의 Issue 공간입니다. 텐서플로우 자체에 이슈가 있다면 아래의 Github 링크나 Stack Overflow를 참조하시기 바랍니다.
- 이슈내용: tensorflow 파일에 있는 output_handler.h 헤더파일을 컴파일 하는 도중 error_reporter.h 헤더파일에 있는 cstdarg 헤더 파일이 존재하지 않는다는 오류가 발생하여 이를 해결하기 위해 이슈에 올려봅니다.
- 재현과정: #ifndef TENSORFLOW_LITE_CORE_API_ERROR_REPORTER_H_
#define TENSORFLOW_LITE_CORE_API_ERROR_REPORTER_H_
#include
namespace tflite {
class ErrorReporter {
public:
virtual ~ErrorReporter() {}
virtual int Report(const char* format, va_list args) = 0;
int Report(const char* format, ...);
int ReportError(void*, const char* format, ...);
};
}
#ifndef TF_LITE_STRIP_ERROR_STRINGS
#define TF_LITE_REPORT_ERROR(reporter, ...)
do {
reporter->Report(VA_ARGS);
} while (false)
#else // TF_LITE_STRIP_ERROR_STRINGS
#define TF_LITE_REPORT_ERROR(reporter, ...)
#endif // TF_LITE_STRIP_ERROR_STRINGS
#endif
(error_reporter.h 소스코드)
- 재현환경: Visual Studio Code, Language: C, C++, output_handler: "tensorflow/lite/micro/examples/hello_world/output_handler.h"
- 에러로그
In file included from tensorflow/lite/micro/examples/hello_world/micro_error_reporter.h:18,
from tensorflow/lite/micro/examples/hello_world/output_handler.h:20,
from MachineRunning.c:1:
tensorflow/lite/micro/examples/hello_world/../../../../../tensorflow/lite/core/api/error_reporter.h:18:10: fatal error: cstdarg: No such file or directory
#include <cstdarg>
^~~~~~~~~
compilation terminated.
Tensorflow Github
Stack Overflow
재현과정을 남겨주세요. output_handler.h 헤더파일 경로도 함께 남겨주세요
수정했습니다.
@bsm021031 혹시 원본 레포가 텐서플로우 공식 레포에서 받으신건가요?
책에 기록되어있는 github 링크에서 받았습니다.