cmake 로 makefile을 생성한 후 직접 컴파일하는 과정에서
[BCC32 Error] complex(194): E2316 '_fm_atan2l' is not a member of 'std'
이런 에러가 나왔습니다.
그래서 cxtypes.h 에서
#if defined __BORLANDC__
#include <math.h>// #include <fastmath.h> <-- 이 부분을 수정했습니다.
#else
#include <math.h>
#endif
그러고 다시 컴파일 하니까 이번에는 템플릿 관련한 에러가 잔뜩 나왔습니다. 아래는 그 중 첫번째 입니다.
[BCC32 Error] cxcore.hpp(1261): E2299 Cannot generate template specialization from 'MatExpr_Op2_<A1,A2,M,Op>'
[BCC32 Error] cxcore.hpp(1261): E2299 Cannot generate template specialization from 'MatExpr_<E,M>'
[BCC32 Error] cxcore.hpp(1261): E2040 Declaration terminated incorrectly
관련내용을 찾아보니
https://forums.embarcadero.com/thread.jspa?threadID=25839&tstart=2
에 같은 내용의 질문이 있네요.
일단 Visual C++로 컴파일해서 lib 파일들을 coff2omf 로 변경해서 빌더 프로젝트에 포함시켜 봤는데 당연하겠지만 동일한 에러가 나옵니다.
혹시 이거 해결방법 아시는 분 계시는가요?
|