![]() |
|
#1
|
|||
|
|||
Segmentation Fault ... Shared Libraries in LinuxHalo 'World'. I am trying to make a simple program of shared libraries on a LInux platform. I am getting an error of segmentation fault when I try to execute the program. It is compiling without any warnings and errors. I know that segmentation faults are normally caused by pointer malfunctions and that is probably the case over here. However I am not able to figure it out. Will be very greatful if you can help me. Am posting the programs here. MainExample.C CPP / C++ / C Code:
header.h CPP / C++ / C Code:
Just in case you are wondering why I am using such a format of header.h and everything. It is only because I am making this model to incorporate in a much larger program and this is the format I have to use. This is my small Makefile. g++ -c -fPIC -shared MainExample.C g++ -fPIC -shared -o exec MainExample.o ./exec Will gladly provide any more information that maybe require to solve this. Thank You |
|||
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| I have a segmentation fault in my project | takachi | C++ Forum | 6 | 09-Mar-2008 23:30 |
| How To Remove Linux And Install Windows? | rockaway | Computer Software Forum - Windows | 3 | 06-Mar-2008 22:00 |
| Shared Libraries with qmake and Exception Handling | PiJ | C++ Forum | 3 | 18-Dec-2007 10:29 |
| Super Cheap PHP 5, RoundCube Webmail Linux Shared Hosting | hostingatoz | Web Hosting Advertisements & Offers | 0 | 04-Aug-2007 03:46 |
| $1.25/mo, PHP 5, 250 MB Space, RoundCube Webmail Linux Shared Hosting | hostingatoz | Web Hosting Advertisements & Offers | 0 | 25-May-2007 01:05 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The