Getting magick to compile on AIX with xlC and xlc
Rich Cook <[email protected]>
| Newsgroups | gmane.comp.video.image-magick.bugs |
|---|---|
| Message-ID | <[email protected]> |
There are a couple of nasty errors you can get when compiling ImageMagick. One of them is the dreaded: "Macro name blahblahblah cannot be redefined." This is fixed by appending the following to the CFLAGS and CXXFLAGS: -qlanglevel=extended Also, you might get an error due to the use of C++-style comments in straight C files. Gnu compilers (gcc) allow this, and xlc does not. But you can permit it by adding this to CFLAGS: -qcpluscmt Hope this helps someone. It took me a while to figure out. I also hope this shows up on the web for googlers. :-) I'm not done compiling yet, but wanted to send this out to help. -- ✐Richard Cook ✇ Lawrence Livermore National Laboratory Bldg-453 Rm-4037, Mail Stop L-557 7000 East Avenue, Livermore, CA, 94550, USA ☎ (office) (925) 423-9605 ☎ (fax) (925) 423-6961 --- Information Management & Graphics Grp., Services & Development Div., Integrated Computing & Communications Dept. (opinions expressed herein are mine and not those of LLNL)