From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:9046:: with SMTP id s67-v6mr515334iod.117.1530018782769; Tue, 26 Jun 2018 06:13:02 -0700 (PDT) X-Received: by 2002:aca:8d2:: with SMTP id 201-v6mr186223oii.0.1530018782596; Tue, 26 Jun 2018 06:13:02 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!u78-v6no738187itb.0!news-out.google.com!z3-v6ni607iti.0!nntp.google.com!u78-v6no738185itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 26 Jun 2018 06:13:02 -0700 (PDT) In-Reply-To: <2b125d10-065d-404a-a8d3-1c5debe4b3a2@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=124.171.158.113; posting-account=d51RWwoAAADvR-x0zYAtT9z3CRxT1eXo NNTP-Posting-Host: 124.171.158.113 References: <2b125d10-065d-404a-a8d3-1c5debe4b3a2@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <43e020d3-653d-4a38-9795-a84966b50bf0@googlegroups.com> Subject: Re: Problem Building Ada Interface To ImageMagick 7 From: Roger Injection-Date: Tue, 26 Jun 2018 13:13:02 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:53324 Date: 2018-06-26T06:13:02-07:00 List-Id: On Tuesday, June 26, 2018 at 7:34:57 PM UTC+10, gautier...@hotmail.com wrote: > Is there something specific you want to do with ImageMagick ? The current specific thing I'm trying to do (in support of a larger project) is to get ImageMagick to read an image file and writing the image to another file. I am using a simple ImageMagick tutorial to do this. The tutorial read and write functions work when built as an XCode project but fail as a GNAT GPS project. The code that I posted constitutes some of my attempts to track the problem. Following is the tutorial code which builds and runs properly with XCode but fails under GNAT: // main.cpp // ImageMagick_Test #include #include #include #include using namespace std; using namespace Magick; int main(int argc, const char * argv[]) { InitializeMagick(*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( "logo:" ); // 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( "../../../../logo.png" ); } catch( Exception &error_ ) { cout << "Caught exception: " << error_.what() << endl; return 1; } return 0; }