in reply to Re^3: Plz suggest what is the problem in the following code?
in thread Plz suggest what is the problem in the following code?
Exactly the same (below). Now at compile time, I cannot link two objects that have main defined - I get a "multiple definition of 'main'" error .. but when I try to dynamically load a shared object that has another main defined, no problem. Hmmm ... may be a problem with my install of perl or Inline ....
#include "EXTERN.h" #include "perl.h" #include "XSUB.h" #include "INLINE.h" int main( int argc, AV *argv ) { int i; for( i=0; i< argc; i++ ) { printf( "%s\n", SvPVX( *av_fetch( argv, i, NULL ) ) ); } return 0; } MODULE = test_pl_bcca PACKAGE = main PROTOTYPES: DISABLE int main (argc, argv) int argc AV * argv
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Plz suggest what is the problem in the following code?
by BrowserUk (Patriarch) on Feb 04, 2009 at 12:20 UTC | |
by derby (Abbot) on Feb 04, 2009 at 12:33 UTC | |
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 | |
|