List Info

Thread: Borland Builder c++6 and image magick




Borland Builder c++6 and image magick
country flaguser name
Greece
2007-02-12 05:28:21
#include <vcl.h>
#pragma hdrstop

#include "Unit1.h"
#include <Magick++.h>
#include <stdio.h>
#include <time.h>
#include <systypes.h>
#ifndef  WIN32
#define  WIN32
#endif
#include <magickapi.h>
#include <iostream>
//----------------------------------------------------------
-----------------
#pragma package(smart_init)
#pragma resource "*.dfm"
#pragma link
"c:\ImageMagick-6.3.2-Q16\CORE_RL_magick++_.lib"


TForm1 *Form1;
using namespace std;
using namespace Magick;
//----------------------------------------------------------
-----------------
__fastcall TForm1::TForm1(TComponent* Owner)
         : TForm(Owner)
{
}
//----------------------------------------------------------
-----------------

void __fastcall TForm1::Button1Click(TObject *Sender)
{
   Image image;

     // Read a file into image object
     image.read( "D:Program  
FilesBorlandCBuilder6ProjectsIVUStemp_picturesantonis1
.jpg" );

     // Crop the image to specified size (width, height,
xOffset, yOffset)
     image.crop( Geometry(100,100, 100, 100) );

     // Write the image to a file
     image.write( "D:Program  
FilesBorlandCBuilder6ProjectsIVUStemp_picturestonio1.j
pg" );
}
The above is a sample piece of code which i wrote with  
imagemagick.When i try to compile it i get these errors for
example:
[Linker Error] Unresolved external
'Magick::Image::read(const  
_STL::basic_string<char, _STL::char_traits<char>, 

_STL::allocator<char> >&)' referenced from
D:PROGRAM  
FILESBORLANDCBUILDER6PROJECTSTESTUNIT1.OBJ

I can't figure out what's the problem so please if anyone
could help  
me i 'd be really happy to know.



_______________________________________________
Magick-developers mailing list
Magick-developersimagemagick.org
http://studio.imagemagick.org/mailman/listinfo/m
agick-developers

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )