This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc 3.3 cmath undefined errors


Apparently, on OSX, gcc dynamically calls g++ or gcc depending on the
source file extension names.  In any case, I tried calling g++ from
the command line and got the same errors.  I'm using a library called
Imagemagick (thus the magick++).  Here's my code:

#include <Magick++.h> 
#include <iostream>

using namespace std;

int main(int argc, char **argv)
{
	Magick::Image image;
	image.read("/Users/na/Documents/IGERT/vcsel.gif" );
	
	return 0;
}


To use this, you must have Imagemagick installed (it can be finked). 
I've gotten no response from anyone on the Imagemagick lists about
this.  So, does anyone know of any good opensource image
processing/graphics libraries?

thanks,
wes


On 5/18/05, Eljay Love-Jensen <eljay@adobe.com> wrote:
> Hi Wes,
> 
> >I have a question though about gcc -x c++/g++.  Are these the same thing?  What's the difference?
> 
> They are not the same thing.
> 
> gcc executes the C toolchain, and puts in C flags, C defines and C libraries.
> 
> g++ executes the C++ toolchain, and puts in C++ flags, C++ defines, and C++ libraries.
> 
> What all the little fiddly bits are I'm not 100% sure.  Use the -v flag (verbose) to see what they produce for you on your system.
> 
> Careful use of gcc can make it behave identical to g++.  But why bother?  :-)
> 
> HTH,
> --Eljay
> 
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]