Code::Blocks Forums

User forums => Help => Topic started by: dlinaresg on February 20, 2013, 11:45:31 pm

Title: Error with math.h
Post by: dlinaresg on February 20, 2013, 11:45:31 pm
Hi, I am just starting with CodeBlocks (trying to work with Magickwand), but when I try to compile It gaves me this error:

c:\mingw\bin\..\lib\gcc\mingw32\4.6.2\..\..\..\..\include\math.h|675|error: expected ')' before '(' token

The program is this:

#include <windows.h>
#include <wand/magick_wand.h>

int main(void)
{
   MagickWand *mw = NULL;

   MagickWandGenesis();

   /* Create a wand */
   mw = NewMagickWand();

   /* Read the input image */
   MagickReadImage(mw,"c:\\temp\\Laura4.jpg");
   /* write it */
   MagickWriteImage(mw,"logo.jpg");

   If(mw) mw = DestroyMagickWand(mw);

   MagickWandTerminus();
}
 

Is there any problem with the math.h library or do I have to configure the CodeBlocks?

Thanks

Title: Re: Error with math.h
Post by: Jenna on February 21, 2013, 09:46:24 am
Please reread the forum rules, especially:
2. Compiler/Linker errors are NOT Code::Blocks errors. Usually, C++ newcomers tend to confuse the Editor/IDE (Code::Blocks) with the Compiler (MINGW / GCC). You may see some errors in the compiler output because you missed to do something right in your code. But that's not Code::Blocks troubleshooting, that's C++ troubleshooting and does not belong in here. If your program doesn't compile, READ THE C++ MANUAL.

When registering here you accepted to follow these rules.

Thank you !