in reply to Re^5: Plz suggest what is the problem in the following code?
in thread Plz suggest what is the problem in the following code?
I wouldn't normally define two mains ... that was just a contrived test. By convention (cargo-cult, angry monkey, never had a need to, ...), I wouldn't build an .so that has a main defined. I mistook my segfaulting with the examples as a two 'mains' issue but apparently that's just a red herring. The examples do segfault on every *nix box I run it on - Ubuntu/5.10, Ubuntu/5.8, RedHat/5.8 - and just changing the function name from main to xmain make them run fine.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Plz suggest what is the problem in the following code?
by BrowserUk (Patriarch) on Feb 04, 2009 at 12:50 UTC | |
by derby (Abbot) on Feb 04, 2009 at 13:42 UTC | |
by BrowserUk (Patriarch) on Feb 04, 2009 at 14:03 UTC | |
by derby (Abbot) on Feb 04, 2009 at 16:45 UTC |