![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Float and Double in Perl | Euler04 | Shell Programming and Scripting | 5 | 03-14-2008 09:31 AM |
| max precision in float | useless79 | High Level Programming | 6 | 11-07-2007 11:42 PM |
| Float calculations | sharmavr | UNIX for Dummies Questions & Answers | 1 | 07-25-2006 11:18 PM |
| float comparison | mkan | Shell Programming and Scripting | 3 | 09-13-2005 10:39 PM |
| comparing two float values | kavitha | Shell Programming and Scripting | 2 | 04-02-2004 10:32 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
math.h: float ceilf(float x)
Good morning,
I'm testing the use of ceilf: Code:
/*Filename: str.c*/
#include <stdio.h>
#include <math.h>
int main (void)
{
float ceilf(float x);
int dev=3, result=0;
float tmp = 3.444f;
printf("Result: %f\n",ceilf(tmp));
return 0;
}
Code:
root@slackware:~/ncurses# gcc str.c -o tester /tmp/cc6C3DIO.o(.text+0x30): In function `main': : undefined reference to `ceilf' collect2: ld returned 1 exit status Thank you in advance. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Quote:
Code:
gcc str.c -o tester -lstdc++ |
||||
| Google The UNIX and Linux Forums |