이전에 글쓴 사람입니다.
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(다운 받은 파일상태로 유추한 버전) 입니다.