473,394 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

where to find functions libariey

dan
Hi I am teaching myself how to program in c. Iam woundering where i
can find a list of gnu c libarey functions. some day i will learn to
spell. I am running freebsd as an op system would the gnu c libeary
functions be stored in one of its diredtorys. I am espically haveing
trouble the pow function to work. I am trying to program that computes
the value of a capicators capasitive reactance. I worked on trying to
get the POW function for more than 4 hours at a time . Thanks for your
input. dan

Jun 8 '06 #1
6 1557
"dan" writes:
Hi I am teaching myself how to program in c. Iam woundering where i
can find a list of gnu c libarey functions. some day i will learn to
spell. I am running freebsd as an op system would the gnu c libeary
functions be stored in one of its diredtorys. I am espically haveing
trouble the pow function to work. I am trying to program that computes
the value of a capicators capasitive reactance. I worked on trying to
get the POW function for more than 4 hours at a time .


I would expect this to work on any C compiler.

#inclue <math.h>

double x;
x = pow(2.0, 16.0);

Note that it is pow and not POW
Jun 8 '06 #2
dan

osmium wrote:
"dan" writes:
Hi I am teaching myself how to program in c. Iam woundering where i
can find a list of gnu c libarey functions. some day i will learn to
spell. I am running freebsd as an op system would the gnu c libeary
functions be stored in one of its diredtorys. I am espically haveing
trouble the pow function to work. I am trying to program that computes
the value of a capicators capasitive reactance. I worked on trying to
get the POW function for more than 4 hours at a time .
I would expect this to work on any C compiler.

#inclue <math.h>

double x;
x = pow(2.0, 16.0);

Note that it is pow and not POW


Thanks ill try this solution dan

Jun 8 '06 #3
osmium <r1********@comcast.net> wrote:
"dan" writes:
Hi I am teaching myself how to program in c. Iam woundering where i
can find a list of gnu c libarey functions. some day i will learn to
spell. I am running freebsd as an op system would the gnu c libeary
functions be stored in one of its diredtorys. I am espically haveing
trouble the pow function to work. I am trying to program that computes
the value of a capicators capasitive reactance. I worked on trying to
get the POW function for more than 4 hours at a time .


I would expect this to work on any C compiler.

#inclue <math.h>

double x;
x = pow(2.0, 16.0);

Note that it is pow and not POW


The math library is called libm.so (somewhere in a <prefix>/lib
directory). Although proper code containing your lines, may
compile fine, it will not link because it requires you to
tell it where the math library is.
With gcc you can do:
gcc <...other stuff ...> program.c -lm

-lm tells the linker to links against l(ib)m.so

At the same time, maybe the OP's math library is not separate from
the C library and he may not need to do that, but he probably
does.

--
Ioan - Ciprian Tandau
tandau _at_ freeshell _dot_ org (hope it's not too late)
(... and that it still works...)
Jun 8 '06 #4
VDM
Hi Dan,

Have a look at this, http://www.gnu.org/software/libc/manual/
It covers everything.

If you have the man pages installed (think it is by default for glibc)
then try typing man pow in a terminal.

Have fun!

dan wrote:
Hi I am teaching myself how to program in c. Iam woundering where i
can find a list of gnu c libarey functions. some day i will learn to
spell. I am running freebsd as an op system would the gnu c libeary
functions be stored in one of its diredtorys. I am espically haveing
trouble the pow function to work. I am trying to program that computes
the value of a capicators capasitive reactance. I worked on trying to
get the POW function for more than 4 hours at a time . Thanks for your
input. dan


Jun 9 '06 #5
dan <rh*********@yahoo.com> wrote:
Hi I am teaching myself how to program in c. Iam woundering where i
can find a list of gnu c libarey functions. some day i will learn to
spell. I am running freebsd as an op system would the gnu c libeary
functions be stored in one of its diredtorys. I am espically haveing
trouble the pow function to work. I am trying to program that computes
the value of a capicators capasitive reactance. I worked on trying to
get the POW function for more than 4 hours at a time . Thanks for
your input. dan


Why do you want the GNU library in freebsd? What do you want that the
FreeBSD C library isn't providing? (OT: If your problem is that the math
functions like pow aren't working, don't forget -lm on the link command
line)
Jun 9 '06 #6
dan


VDM wrote:
Hi Dan,

Have a look at this, http://www.gnu.org/software/libc/manual/
It covers everything.

If you have the man pages installed (think it is by default for glibc)
then try typing man pow in a terminal.

Have fun!

dan wrote:
Hi I am teaching myself how to program in c. Iam woundering where i
can find a list of gnu c libarey functions. some day i will learn to
spell. I am running freebsd as an op system would the gnu c libeary
functions be stored in one of its diredtorys. I am espically haveing
trouble the pow function to work. I am trying to program that computes
the value of a capicators capasitive reactance. I worked on trying to
get the POW function for more than 4 hours at a time . Thanks for your
input. dan


talking about me being stupid why dident i think of the man page.
talking about how green I m I didnot asign the pow function to a
varable so I could work with the output of pow. Thanks for all the info
it really helped........dan

Jun 9 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: urocrane | last post by:
i'm using visual c++ and it doesn't seem to have graphics header file. where can i get it? i've always had a wierd thought about prototypes, do you really need them? in my case, i think it looks...
2
by: David List | last post by:
I posed a MySQL C API question a few days back here, and got zero answers. I assume it is because this is not the right place to ask such questions. Does anyone here know where I could ask C API...
15
by: Viviana Vc | last post by:
How can I programatically do the equivalent of the following: cacls "C:\Program Files\test" /T /G Everyone:f ? Thanks, Viv
1
by: mirandacascade | last post by:
Version of python: 2.4 O/S: Win2K I will be writing some python scripts to do some client-side programming that involves socket.py. I expect that I will be making calls to the following...
14
by: Stegano | last post by:
I am learning C Programming after working with Java for 5 years. I want to know where can I find the source files for C language itself. For example strcat is a function, which concatenates two...
3
by: | last post by:
When I double click on a menu item (design time) the form opens in the correct place for the menu handler, but I can't find the AddHandler statements, where do I find them so that I can change the...
6
by: bobueland | last post by:
The module string has a function called translate. I tried to find the source code for that function. In: C:\Python24\Lib there is one file called string.py I open it and it says
11
by: Yelena Varshal via AccessMonster.com | last post by:
Hello, I have a problem with one of msaccess.exe API calls that work on my desctop but does not work on the laptop from within MS ACCESS. There is a lot of differences between 2 computers...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.