I have a unique problem here, well not actually a problem. Just something I am trying to understand.
I have a program that uses math.h and I am using pow().
I found that when I use GCC to compile (under a unix environment), I am able to do so without the -lm command, while some of my classmates are required to do so. As in, gcc -lm <programName> or gcc <programName> -lm.
My GCC is not under an, alias. And I don't know what else to supply as information, if you need more with commands to run, just ask.
I'm just trying to figure out why I do not need -lm while other folks do. Besides the different routes we used to get to the same problem, we solved that problem the same way, in using pow().
I understand that there may not be a true answer, as to why, but I'm just looking to some insight or options to look into.
Thank You