Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Should I gcc include what command to to calculate abs??

Status
Not open for further replies.

boeysue

Full Member level 3
Joined
Dec 23, 2004
Messages
187
Helped
3
Reputation
6
Reaction score
0
Trophy points
1,296
Activity points
1,523
gcc abs include

in my server,I use the abs function and include the stdlib.h.
but it doesn't work in the right way.
Should I make compile with what command to include the stdlib.h???
Thanks...
 

calculater abs

include the math.h (use fabs())

compile: (example.c is source code)
gcc example.c -o example.out -lm

enjoy
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top