C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[74841] Re:Re:opencv 사용환경 설정 관련 질문.
니시엔 [hykim5] 3778 읽음    2018-03-27 19:44
답변감사드립니다.
컴파일 시에 나오는 에러메제지에 관해 궁금합니다.
[bcc64 Error] complex(132): no member named '_fm_atan2' in namespace 'std'
[bcc64 Error] complex(137): no member named '_fm_cos' in namespace 'std'
[bcc64 Error] complex(142): no member named '_fm_exp' in namespace 'std'
[bcc64 Error] complex(147): no member named '_fm_ldexp' in namespace 'std'
[bcc64 Error] complex(152): no member named '_fm_log' in namespace 'std'
[bcc64 Error] complex(175): no member named '_fm_sin' in namespace 'std'
[bcc64 Error] complex(180): no member named '_fm_sqrt' in namespace 'std'
[bcc64 Error] complex(185): no member named '_fm_tan' in namespace 'std'
[bcc64 Error] complex(260): no member named '_fm_atan2l' in namespace 'std'
[bcc64 Error] complex(265): no member named '_fm_cosl' in namespace 'std'
[bcc64 Error] complex(270): no member named '_fm_expl' in namespace 'std'
[bcc64 Error] complex(275): no member named '_fm_ldexpl' in namespace 'std'
[bcc64 Error] complex(280): no member named '_fm_logl' in namespace 'std'
[bcc64 Error] complex(303): no member named '_fm_sinl' in namespace 'std'
[bcc64 Error] complex(308): no member named '_fm_sqrtl' in namespace 'std'
[bcc64 Error] complex(313): no member named '_fm_tanl' in namespace 'std'
[bcc64 Error] complex(392): no member named '_fm_atan2' in namespace 'std'
[bcc64 Error] complex(397): no member named '_fm_cos' in namespace 'std'
[bcc64 Error] complex(402): no member named '_fm_exp' in namespace 'std'
[bcc64 Error] complex(407): no member named '_fm_ldexp' in namespace 'std'
[bcc64 Error] complex(412): no member named '_fm_log' in namespace 'std'
[bcc64 Error] complex(439): no member named '_fm_sin' in namespace 'std'
[bcc64 Error] complex(444): no member named '_fm_sqrt' in namespace 'std'
[bcc64 Error] complex(449): no member named '_fm_tan' in namespace 'std'
[bcc64 Error] operations.hpp(1087): no matching function for call to '_fm_sqrt'
  xcomplex(714): candidate template ignored: could not match 'complex<type-parameter-0-0>' against 'double'

위 와 같은 에러메세지가 나오는데 Complex파일에 문제가 생겨서 발생하는 에러메세지인가요?
정성훈.해미 님이 쓰신 글 :
: #include "highgui\highgui.hpp"
: #include "core\core.hpp"
: #include "imgproc\imgproc.hpp"
:
: 이렇게 인클루드 하지 마시고
: 아래와 같이 하세요
:
: #include "cv.h"
: #include "highgui.h"
:
: 해당 헤더파일을 열어보면
: cv.h 에는
: opencv2/core/core_c.h
: opencv2/imgproc/imgproc_c.h 가
:
: highgui.h 에는
: opencv2/core/core_c.h
: opencv2/highgui/highgui_c.h 가 포함되어 있습니다.
:
: cv.h에
: #include "opencv2/highgui/highgui_c.h" 부분을 추가하여
:
: 그냥
: #include "cv.h"
: 만 포함시켜도 될듯합니다
:
:
:
:
:
:
:
:
: [출처] C++ Builder XE4에서 OpenCV 구현 - 2|작성자 미래소년
:
:
: 니시엔 님이 쓰신 글 :
: : 이전에 글쓴 사람입니다.
: :
: : http://blog.naver.com/PostView.nhn?blogId=sihwankim&logNo=150181015614&categoryNo=26&parentCategoryNo=0&viewDate=¤tPage=1&postListTopCurrentPage=&from=postList
: :
: : 해당 링크를 참고 해서 첨부파일을 받고 lib 파일을 프로젝트에 add 후
: : Unit2.cpp 파일
: :
: : include <vcl.h>
: : #pragma hdrstop
: :
: : #include "Unit2.h"
: : #include "highgui\highgui.hpp"
: : #include "core\core.hpp"
: : #include "imgproc\imgproc.hpp"
: :
: : #pragma comment(lib,"opencv_highgui246d.lib")
: : #pragma comment(lib,"opencv_core246.lib")
: : #pragma comment(lib,"opencv_imgproc246.lib")
: :
: : //---------------------------------------------------------------------------
: : #pragma package(smart_init)
: : #pragma resource "*.dfm"
: : TForm2 *Form2;
: :
: : using namespace cv;
: : //---------------------------------------------------------------------------
: : __fastcall TForm2::TForm2(TComponent* Owner)
: :     : TForm(Owner)
: : {
: : }
: : //---------------------------------------------------------------------------
: : void __fastcall TForm2::Button1Click(TObject *Sender)
: : {
: :     Mat image; //이후 더 작성 예정임.
: :
: : }
: : //---------------------------------------------------------------------------
: : 이런 식으로 코드를 작성한 상태입니다. 근데 컴파일 하면
: : [bcc32 Error] complex(194): E2316 '_fm_atan2l' is not a member of 'std'
: : [bcc32 Error] complex(199): E2316 '_fm_cosl' is not a member of 'std'
: : [bcc32 Error] complex(204): E2316 '_fm_expl' is not a member of 'std'
: :  [bcc32 Error] complex(209): E2316 '_fm_ldexpl' is not a member of 'std'
: :  [bcc32 Error] complex(214): E2316 '_fm_logl' is not a member of 'std'
: :  [bcc32 Error] complex(224): E2316 '_fm_sinl' is not a member of 'std'
: :  [bcc32 Error] complex(229): E2316 '_fm_sqrtl' is not a member of 'std'
: :  [bcc32 Error] complex(234): E2316 '_fm_tanl' is not a member of 'std'
: :  등등의 에러메세지가 출력됩니다. 왜 에러가 나는지 알 방도가 없어서 여기에 질문을 올려 봅니다.
: :
: : 제 작업 환경은 win7 pro 64bit 이며 툴은 Rad studio10.1(Programfiles(x86)에 설치됨) 사용한 opencv 버전은 2.4.6(다운 받은 파일상태로 유추한 버전) 입니다.
: :  

+ -

관련 글 리스트
74839 opencv 사용환경 설정 관련 질문. 니시엔 3187 2018/03/27
74840     Re:opencv 사용환경 설정 관련 질문. 정성훈.해미 3915 2018/03/27
74841         Re:Re:opencv 사용환경 설정 관련 질문. 니시엔 3778 2018/03/27
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.