Internal function cannot be defined (C)

I implemented the abs () function. I get this error:

Internal function cannot be defined.

How am I wrong? I am using Visual Studio 2005.

+3
source share
4 answers

Internal function cannot be defined.

In this case, intrinsic means that the compiler already has an implementation of a function with a name absthat you cannot reconsider.

Decision? Change your function name to another, snakile_absfor example.

See the MSDN documentation for more information abs.

+3
source

The problem is not in the header or not.

, , , , , C-, .

+2

(. math.h)

'f' 'l'.

.

0

static int abs(int x) { ... } , int abs(int x) { ... } undefined, , , , , - .

0

Source: https://habr.com/ru/post/1761328/


All Articles