[CMake] conflicting types for built-in function 'snprintf'

Steven Van Ingelgem steven at vaningelgem.be
Wed Jul 8 06:08:34 EDT 2009


Hi,


I tried this call:
CHECK_FUNCTION_EXISTS(snprintf  HAS_snprintf)


Which results in this error being generated:
C:\MinGW\bin\gcc.exe   -g -ggdb -O0 -Wall -Werror
-DCHECK_FUNCTION_EXISTS=snprintf   -o
CMakeFiles\cmTryCompileExec.dir\CheckFunctionExists.c.obj   -c "C:\Program
Files\CMake 2.7\share\cmake-2.7\Modules\CheckFunctionExists.c"
cc1.exe: warnings being treated as errors
C:\Program Files\CMake 2.7\share\cmake-2.7\Modules\CheckFunctionExists.c:3:
error: conflicting types for built-in function 'snprintf'


What I understand is that the snprintf type exists, but conflicts with the
built-in version... So this should return 'true' in fact...

What can I do about it?

MinGW 4.4.0 & CMake CVS of 7/7/2009.


Grtz,
Steven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090708/06d670e6/attachment.htm>


More information about the CMake mailing list