|Re: How to use math.h in Eclipse with gcc? [message #1849965 is a reply to message #1849943]
||Thu, 10 February 2022 00:12
Registered: October 2012
Why in the year 2022!! Eclipse is NOT automatically|
set the linker parameter when I declared the
include of <math.h>?
Because math.h is only loosely correlated to libm.a
You could be referring to your own set of routines.
Also, it would mean Eclipse knowing which headers
should be associated with which library. This can be
problematic as not all vendors are compliant with
You are writing the program and should know what you
want to do and how to do it. CDT is not a magic box.
Are there any OTHERS (famous) libraries that are
NOT linked automatically
Most of them. GCC and Clang will tell you what libs are
scanned by default (the builtins). Other compilers maybe not.
[Updated on: Thu, 10 February 2022 02:38]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.35864 seconds