Doubts in resmgr

Hi,
I am having two basic doubts in resmgr’s
1.Can we debug resmgr by just adding -g flag to compiler …(I haven’t tried
…But is there anything special for debugging ?)
2.How do I use or call shared objects in resource manager …Should I link
in my make file ? or any other technique …
I had seen few resmgr like devb-eide which is using many .so files like
io-blk.so, cam.so etc …How do I do so or how will I use such .so files in
my resmgr?
I am presently developing a block driver/resmgr for my memory device …Are
io-blk.so or some qnx provided .so files useful for me in my resmgr
implementation …If not how do i find the usefulness of them so that i can
use them if needed??

regards
scintill

Scintill <scintill@something.com> wrote:

Hi,
I am having two basic doubts in resmgr’s
1.Can we debug resmgr by just adding -g flag to compiler …(I haven’t tried
…But is there anything special for debugging ?)

Yes. Compile & link -g. And you can debug a resmgr just like any
other program.

2.How do I use or call shared objects in resource manager …Should I link
in my make file ? or any other technique …

Link against libname.so will link against a shared object. Or, you also
have the choice to use the dlopen(), dlsym() family of functions if you
wish to dynamically choose your shared objects at runtime.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

“David Gibbs” <dagibbs@qnx.com> wrote in message
news:a9uuuk$ioq$2@nntp.qnx.com

Scintill <> scintill@something.com> > wrote:
Hi,
I am having two basic doubts in resmgr’s
1.Can we debug resmgr by just adding -g flag to compiler …(I haven’t
tried
…But is there anything special for debugging ?)

Yes. Compile & link -g. And you can debug a resmgr just like any
other program.

Yes,this works …Thankyou .

2.How do I use or call shared objects in resource manager …Should I
link
in my make file ? or any other technique …

Link against libname.so will link against a shared object. Or, you also
have the choice to use the dlopen(), dlsym() family of functions if you
wish to dynamically choose your shared objects at runtime.

I am trying to do a filesystem resmgr in which I am trying to use io-blk.so

I couldnot understand >>Link against libname.so will link against a shared
object. >>
Is there any good documentation regarding this .??
I don’t know much about .so files & using them …Where can I get more info
about them ?

thankyou
Scintill

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

Scintill <linx@scintill.com> wrote:

“David Gibbs” <> dagibbs@qnx.com> > wrote in message
news:a9uuuk$ioq$> 2@nntp.qnx.com> …

2.How do I use or call shared objects in resource manager …Should I
link
in my make file ? or any other technique …

Link against libname.so will link against a shared object. Or, you also
have the choice to use the dlopen(), dlsym() family of functions if you
wish to dynamically choose your shared objects at runtime.

I am trying to do a filesystem resmgr in which I am trying to use io-blk.so

I couldnot understand >>Link against libname.so will link against a shared
object.
Is there any good documentation regarding this .??
I don’t know much about .so files & using them …Where can I get more info
about them ?

I don’t know how io-blk.so is setup. The name suggests that it has
to be handled with dlopen(), but I don’t know the details of dealing with
it.

As to the “link against libname.so”, I mean if you want the math library,
you link -lm which links against libm.so, or is you want the Photon
library you link -lph or link against libph.so.

But, for linking against any particular type of lib, resmgrs aren’t
special – they deal with it just like any other program.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

Scintill wrote:


Is there any good documentation regarding this .??
I don’t know much about .so files & using them …Where can I get more info
about them ?

Well, this article might be slightly more advanced than you want but it
is a good article none-the-less (and is directly related to QNX).


http://qdn.qnx.com/articles/oct1901/index.html

General resources about shared objects (for Linux for instance) should
be easy to find with a google.

Rennie