bonjour je suis nouveau dans le forum![]()
j'utilise windows XP et j'ai installé dev cpp 4.9.9.2 et j'ai installé image magick 6.2.9
j'ai essayé de compilé et executé l'exemple suivant :
mais il ya beaucoup d'erreur !!!!! les voila :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 #include <Magick++.h> #include <iostream> using namespace std; using namespace Magick; int main(int argc,char **argv) { // Construct the image object. Seperating image construction from the // the read operation ensures that a failure to read the image file // doesn't render the image object useless. Image image; try { // Read a file into image object image.read( "girl.gif" ); // 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( "x.gif" ); } catch( Exception &error_ ) { cout << "Caught exception: " << error_.what() << endl; return 1; } return 0; }
[Linker error] undefined reference to `Magick::Image::Image()'
[Linker error] undefined reference to `Magick::Image::read(std::string const&)'
[Linker error] undefined reference to `Magick::Geometry::Geometry(unsigned int, unsigned int, unsigned int, unsigned int, bool, bool)'
[Linker error] undefined reference to `Magick::Image::crop(Magick::Geometry const&)'
....
....
ld returned 1 exit status
C:\Dev-Cpp\Makefile.win [Build Error] [Projeto.exe] Error 1
s'il vous plais aidez moi![]()
pour me dire si c juste ou non ?? :
en dev c++ je fais fichier>nouveau>console application
merci d'avance .
Partager