Memory fault when i am using a shared object
- From: "Aneesh E Warrier" <vinuwarrier@xxxxxxxxx>
- Date: 30 Mar 2006 19:51:23 -0800
Hi
I am new to Linux. I am facing on problem regarding shared object in
Linux. When I am running the application using the library the
application is crashing. It is showing a memory fault that is also just
before return statement. Is there any switch I have to use while
compiling.
Following are the steps I followed for compiling object files:
g++ -w -fPIC -g -o ./CPEPoints.o -c ./CPEPoints.cpp
g++ -w -fPIC -g -o ./CPERates.o -c ./ CPERates.cpp
Creating the Library.
g++ -g -shared -o ../../Lib/libCPERateCard.so.1
Using the Library with another application.
g++ RateCardTest.o -L./ -o RateCard -ldl Lib/libCPERateCard.so.1
Can anybody suggest what I am missing.
Thanks
Vinu
.
- Follow-Ups:
- Re: Memory fault when i am using a shared object
- From: Paul Pluzhnikov
- Re: Memory fault when i am using a shared object
- Prev by Date: Re: Strange pager (less, more) behavior
- Next by Date: CK-ERP (Open Source ERP/CRM Software) v.0.18.1 released
- Previous by thread: Linux Phone Book Sync application
- Next by thread: Re: Memory fault when i am using a shared object
- Index(es):
Relevant Pages
|