Error on compiling; with gcc/msys2
- Posted by mitgedanken 1 week ago
- 179 views
When I try to compile a program, I get a conflict error.
Compiling with GCC
Compiling 1% init-.c
init-.c: In function 'init_literal':
init-.c:6879:19: error: conflicting types for 'sqrt'; have 'double(void)'
6879 | extern double sqrt();
| ^~~~
In file included from C:/.bin/Euphoria/4.1/include/euphoria.h:17,
from init-.c:1:
C:/msys2/ucrt64/include/math.h:196:18: note: previous declaration of 'sqrt' with type 'double(double)'
196 | double __cdecl sqrt(double _X);
| ^~~~
Couldn't compile file 'init-.c'
Status: 1 Command: gcc -DEWINDOWS -fomit-frame-pointer -c -w -fsigned-char -O2 -m64 -IC:/BIN~1/Euphoria/4.1 -ffa
st-math init-.c

