Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

I saw your question on the mailing list and it was bugging me that no one bothered to answer it. Of course, since I've joined the mailing list, your's is the only post that I've seen :(

On the mailing list code, you're not having a problem. With this code, you've calling a sub you haven't declared :) - my_create_context versus create_context. Of course, since it's obvious you're still massaging it, this is not the problem. From what you are saying, the problem lies here:

/* This is the call that is failing */ status = ivadmin_context_createdefault(user,passwd,&ctx,&rsp);

How do you know this is where the error is? You don't supply us with any error message. Also, and I know this sounds too elementary, have you printed all of the values before and after the "createdefault" call?

(Entering deep waters here) I'm also wondering about the typedefs for ivadmin_context and ivadmin_response. Do you need to specify new typemaps for them? I thought this was only an issue when declaring return types, but I could be wrong. Do you have anyway of verifying that Perl is handling these correctly?

Cheers,
Ovid

Update: You mentioned on the mailing list that you're using the same compiler as when you compiled Perl. Are you using the same 'make' utility? An article at http://www.perl.com/ by the Inline author suggests that this will cause problems (though he does not elaborate).

I'd also try the following one-liner:

perl -MInline=Info,force,NoClean yourcode.pl

That forces Information about bound subs to be printed to STDERR. It also forces a recompile and leaves the build directories intact so you can browse through them for more information.

Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.


In reply to (Ovid) Re: Inline::C code doesn't work, but the C code does by Ovid
in thread Inline::C code doesn't work, but the C code does by mikfire

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-23 10:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found