티스토리 뷰

1) Build를 수행하면 아래와 같은 오류가 발생하는 경우가 있다. MStatus와 관련 된 부분인데, 오류 내용을 읽어보면, 'std' name space가 유효하지 않다는 것이다. 보통 iostream에 관한 내용은 c++ 표준이기 때문에 별다른 고민없이 사용했으나, 이 부분에서 오류가 발생하니 난감했다. 구글씨에게 물어본 결과 해결법은 다음과 같다. 전처리구문에 REQUIRE_IOSTREAM를 추가해 주면 된다.

c:\program files\autodesk\maya8.5\include\maya\mstatus.h(161) : error C2653: 'std' : is not a class or namespace name
c:\program files\autodesk\maya8.5\include\maya\mstatus.h(161) : error C2143: syntax error : missing ';' before '&'
c:\program files\autodesk\maya8.5\include\maya\mstatus.h(161) : error C2433: 'ostream' : 'friend' not permitted on data declarations
c:\program files\autodesk\maya8.5\include\maya\mstatus.h(161) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\autodesk\maya8.5\include\maya\mstatus.h(161) : error C2653: 'std' : is not a class or namespace name
c:\program files\autodesk\maya8.5\include\maya\mstatus.h(161) : error C2061: syntax error : identifier 'ostream'


댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함