Compiling code with Magick++ using MinGW

Timothy Niiler <[email protected]> Wed, 04 Jun 2008 07:25:20 -0400
Newsgroups gmane.comp.video.graphicsmagick.apis
Message-ID <[email protected]>
I've been using Graphics Magick happily on Linux for quite some time
and have come to the point where certain users have requested that I
port an application over to Windows.

Other than the requisite:

int main( int /*argc*/, char **
argv)

{

InitializeMagick(*argv);

I can find no instructions on how to compile in the MinGW environment.
Are there equivalents to:

g++ -o example example.cpp
`GraphicsMagick++-config --cppflags --cxxflags --ldflags --libs`

as I use on Linux? The files in the
GraphicsMagick-1.2-windows-source\Magick++\demo directory don't seem to
give any hints on compilation. I have tried compiling with various
options, but it seems as if code that compiles with no-warnings on
Linux gives a ton of errors on Windows, even with the call to
InitializeMagick(). Most of these seem to be related to not finding
include files.

I will admit to being primarily a Linux coder, so I could be doing
something basic and stupid, but any hints (including pointing me
towards someone who has already been through this) would be helpful.

Thanks!

Tim Niiler

P.S. Using MS Visual C++ isn't an option. I'm lucky enough to have an
installation of WinXP that I can use occasionally.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php

_______________________________________________
Graphicsmagick-apis mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/graphicsmagick-apis