User forums > Using Code::Blocks

Compile errors from mingw32's math.h of Code::Blocks v10.05 rev 6283

(1/2) > >>

ophiuchus18:
When I compile C code,the Code::Blocks v10.05 rev 6283 default compiler (GNU GCC compiler) return these errors:

c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\math.h|563|error: expected ')' before '/' token|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\math.h|564|error: expected ')' before '/' token|
||=== Build finished: 2 errors, 0 warnings ===|


C:\Program Files\CodeBlocks\MinGW\include\math.h

The mingw32's math.h is damaged or what ? How to replace the math.h with a workable one ?

ollydbg:
show us the full build log.
see:
2.14 Q: How do I troubleshoot an compiler problem?

ophiuchus18:

--- Quote from: ollydbg on July 20, 2011, 02:24:23 pm ---show us the full build log.
see:
2.14 Q: How do I troubleshoot an compiler problem?

--- End quote ---

Build log:

Compiling: C:\x264-snapshot-20110719-2245\x264.c
In file included from C:\x264-snapshot-20110719-2245\common/osdep.h:65,
                 from C:\x264-snapshot-20110719-2245\common/common.h:87,
                 from C:\x264-snapshot-20110719-2245\x264.c:33:
c:\program files\codeblocks\mingw\bin\../lib/gcc/mingw32/4.4.1/../../../../include/math.h:563: error: expected ')' before '/' token
c:\program files\codeblocks\mingw\bin\../lib/gcc/mingw32/4.4.1/../../../../include/math.h:564: error: expected ')' before '/' token
In file included from C:\x264-snapshot-20110719-2245\common/common.h:87,
                 from C:\x264-snapshot-20110719-2245\x264.c:33:
C:\x264-snapshot-20110719-2245\common/osdep.h: In function 'x264_is_regular_file':
C:\x264-snapshot-20110719-2245\common/osdep.h:325: warning: implicit declaration of function 'fileno'
C:\x264-snapshot-20110719-2245\x264.c: In function 'main':
C:\x264-snapshot-20110719-2245\x264.c:263: warning: implicit declaration of function '_fileno'
C:\x264-snapshot-20110719-2245\x264.c: In function 'select_output':
C:\x264-snapshot-20110719-2245\x264.c:980: warning: implicit declaration of function 'strcasecmp'
Process terminated with status 1 (0 minutes, 8 seconds)
2 errors, 3 warnings

Build messages:

c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\math.h|563|error: expected ')' before '/' token|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\math.h|564|error: expected ')' before '/' token|
C:\x264-snapshot-20110719-2245\common\osdep.h||In function 'x264_is_regular_file':|
C:\x264-snapshot-20110719-2245\common\osdep.h|325|warning: implicit declaration of function 'fileno'|
C:\x264-snapshot-20110719-2245\x264.c||In function 'main':|
C:\x264-snapshot-20110719-2245\x264.c|263|warning: implicit declaration of function '_fileno'|
C:\x264-snapshot-20110719-2245\x264.c||In function 'select_output':|
C:\x264-snapshot-20110719-2245\x264.c|980|warning: implicit declaration of function 'strcasecmp'|
||=== Build finished: 2 errors, 3 warnings ===|

xunxun:
Don't put your compiler into the directories with spaces.

ophiuchus18:

--- Quote from: xunxun1982 on July 20, 2011, 03:24:46 pm ---Don't put your compiler into the directories with spaces.

--- End quote ---

This is where Code::Blocks put the compiler by default:

C:\Program Files\CodeBlocks\MinGW

Navigation

[0] Message Index

[#] Next page

Go to full version