c program / repertory

hello,

I was wondering where I have to copy the different c librairies and c
functions in QNX.

if I copy them in the bin repertory, does I only need to do a:
#include<math.h> a the beginning of the program?

thanks.

julien

“julian” <julien.prevost@ifrance.com> wrote in message
news:aevivk$93t$1@inn.qnx.com

hello,

I was wondering where I have to copy the different c librairies and c
functions in QNX.

if I copy them in the bin repertory, does I only need to do a:
#include<math.h> a the beginning of the program?

You don’t need to copy them anywhere the compiler front end (cc or qcc )
knows where to look for them.

#include <math.h> is fine, but you may have to use -lm to tell
the compiler to link with the math library.

thanks.

julien

I agree for the librairy included in the compiler. but what about the
librairy that I created?
I have several librairy for my I/O boards but I don’t know in which
repertory to copy them.

thanks


“Mario Charest” postmaster@127.0.0.1 wrote in message
news:aevuf6$h6f$1@inn.qnx.com

“julian” <> julien.prevost@ifrance.com> > wrote in message
news:aevivk$93t$> 1@inn.qnx.com> …
hello,

I was wondering where I have to copy the different c librairies and c
functions in QNX.

if I copy them in the bin repertory, does I only need to do a:
#include<math.h> a the beginning of the program?

You don’t need to copy them anywhere the compiler front end (cc or qcc )
knows where to look for them.

#include <math.h> is fine, but you may have to use -lm to tell
the compiler to link with the math library.


thanks.

julien
\

“julian” <julien.prevost@ifrance.com> wrote in message
news:af7ba3$7hr$1@inn.qnx.com

I agree for the librairy included in the compiler. but what about the
librairy that I created?
I have several librairy for my I/O boards but I don’t know in which
repertory to copy them.

I would used the -L option to tell the linker where to look for library,
and then specify -l for each of your library.

thanks


“Mario Charest” postmaster@127.0.0.1 wrote in message
news:aevuf6$h6f$> 1@inn.qnx.com> …

“julian” <> julien.prevost@ifrance.com> > wrote in message
news:aevivk$93t$> 1@inn.qnx.com> …
hello,

I was wondering where I have to copy the different c librairies and c
functions in QNX.

if I copy them in the bin repertory, does I only need to do a:
#include<math.h> a the beginning of the program?

You don’t need to copy them anywhere the compiler front end (cc or qcc )
knows where to look for them.

#include <math.h> is fine, but you may have to use -lm to tell
the compiler to link with the math library.


thanks.

julien


\