Skip to content

include math.h for sqrt#14

Open
divinity76 wants to merge 1 commit into
iveney:masterfrom
divinity76:patch-1
Open

include math.h for sqrt#14
divinity76 wants to merge 1 commit into
iveney:masterfrom
divinity76:patch-1

Conversation

@divinity76

Copy link
Copy Markdown

i believe gcc has historically just silently and implicitly included this header when needed, but at least in gcc 7.2, it will complain (not fail compilation, but complain) that you're using sqrt without including math.h - which is supposed to be included for using the function anyway.

i believe gcc has historically just silently and implicitly included this header when needed, but at least in gcc 7.2, it will *complain* (not fail compilation, but complain)  that you're using sqrt without including math.h - which is supposed to be included for using the function anyway.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant