Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Thank you for your response. In spite of not
making the test suite, I gave it (Inline::CPP) a try. First
Program, as described in the Examples compiled,
but segfaulted the perl core on program return with:
Free to wrong pool 235e38 not b01f4.
Another test, using an already compiled library and an include path for using the respective functions, like:
use strict; use warnings; use Inline 'CPP'; use Inline CPP => Config => INC => '/I C:\\some\\tools\\' => LIBS => '/libpath:"C:\\some\\tools\\bin"' => LIBS => 'important.lib' ; my $n = ask_important_lib('question'); print $n; __END__ __CPP__ #include "important.h" int ask_important_lib(char* question) { SOMECLASS var(question); if( var.errorstatus() ) { printf("we got an error %d on question %s!\n", var.errorstatus(), +question); return -1; } return 1; }

The above wouldn't even start to compile, nmake (1.5) will complain:

... makefile(878) : fatal error U1083: target macro '$(OBJECT)' expands t +o nothing ...

So I throwed the towel. This seems to be completely non-workable on anything non-trivial C++ problem.

BTW: I tried similar w/Ruby's RubyInline on
Ruby 1.9 - also w/Visual C++ 6.

Almost the same result. Some trivial things work,
but anything referencing external include files
or libs won't work (at least with Visual C++ 6, the
system the actual Ruby 1.9.1 binary for win32 is built
).

Thanks & regards

mwa


In reply to Re^2: Status of Inline::CPP on Activeperl 5.10/Visual C++ 6 by mwah
in thread Status of Inline::CPP on Activeperl 5.10/Visual C++ 6 by mwah

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: (4)
As of 2024-04-18 21:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found