|
실험 할려고 새로운 프로젝트 열고 할때는 잘되었었는데.
실제 적용 할려고 프로젝트 에 삽입을 하니깐 안되네요.
밑에 와 같이 링크에러가 뜹니다.
뭔가를 Add해 줘야 할것 같은데 모르겠네요.
혹시 아시는 분있으시면 알려주세요
#include <jpeg.hpp>
int __fastcall TMyImage::GetPicture(int No , TImage *Image)
{
//Check Error.
if (Image == NULL) return -1;
if ((No < 0) || (No >= MAX_IMAGE)) return -1;
//Local Var.
AnsiString FN ;
AnsiString Path;
//Set Path.
FN.sprintf("E%03d.JPG" , No + 1);
if (!DirectoryExists(ExtractFilePath(Application->ExeName) + "Util" )) CreateDir(ExtractFilePath(Application->ExeName) + "Util" );
if (!DirectoryExists(ExtractFilePath(Application->ExeName) + "Util\\Images")) CreateDir(ExtractFilePath(Application->ExeName) + "Util\\Images");
Path = ExtractFilePath(Application->ExeName) + "Util\\ErrPictures\\" + FN;
if (!FileExists(Path)) {
Image -> Visible = false;
return -1;
}
TJPEGImage * pJpg = new TJPEGImage ();
pJpg -> LoadFromFile(Path) ;
Image -> Picture -> Bitmap -> Assign(pJpg) ;
delete pJpg ;
}
[Linker Error] Unresolved external '__fastcall Jpeg::TJPEGImage::~TJPEGImage()' referenced from D:\WORKS\VIEWER0\OBJ\MYIMAGE.OBJ
[Linker Error] Unresolved external 'Jpeg::TJPEGImage::' referenced from D:\WORKS\VIEWER0\OBJ\MYIMAGE.OBJ
[Linker Error] Unresolved external '__fastcall Jpeg::TJPEGImage::TJPEGImage()' referenced from D:\WORKS\VIEWER0\OBJ\MYIMAGE.OBJ
|