Dear Sir,
I am writing to thank you for your letter and say I beg to differ.
On Mon, Jun 28, 2004 at 05:30:01AM -0500, Billy N. Patton wrote:
Silvo,
This group chooses to help only other experts. Beginners are not
welcome here.
My idiotic questions have been answered here by the men
Bjoern Hoehrmann [EMAIL PROTECTED] writes:
* Nick Ing-Simmons wrote:
ask for C compilation, which do not find iostream, string,
and other standard C++ headers.
That bit is faily easy. You need to override CC as g++ (or whatever
your C++ compiler is called -
WriteMakefile(
'CC'
SilvioCVdeAlmeida [EMAIL PROTECTED] writes:
Things are walking here. Now I worry about this:
Nick Ing-Simmons wrote:
It it really fails at make test stage then you probably need
LD=g++ or similar to link in the iostream etc.
Note that not all C++ implementations are dynamic loading friendly.
I had to do a lot of stuff by hand, but I found that XS can
do C++ things even if h2xs doesn't guess them out right.
So, even if you don't get h2xs to work very well, you can
still probably do what you need to do.
On Sat, Jun 26, 2004 at 06:21:37PM -0300, SilvioCVdeAlmeida wrote:
Hello,
How
Silvo,
This group chooses to help only other experts. Beginners are not
welcome here. I've ask several questions about C++ and have recieved no
response. Guess my questions were too trivial. Too obvious to an
expert. Too far below them to answer.
SilvioCVdeAlmeida wrote:
Hello,
How
On Mon, Jun 28, 2004 at 05:30:01AM -0500, Billy N. Patton wrote:
Silvo,
This group chooses to help only other experts. Beginners are not
welcome here. I've ask several questions about C++ and have recieved no
response. Guess my questions were too trivial. Too obvious to an
expert. Too
On 2004-06-26, at 18:21:37 -0300, SilvioCVdeAlmeida wrote:
Hello,
How suitable is h2xs for generating C++Perl bindings? I couldn't manage
it to work as I expected.
I don't know an exact answer either, but googling for XS C++
leads you to
http://www.johnkeiser.com/perl-xs-c++.html
which
I seriously doubt that I'm treading new ground. There are several
people that answer almost all questions.
It's true that there seem to be some students that try to get homework
assignments answered. Maybe this is the reason for not response to
trivial questions.
Nicholas Clark wrote:
On
SilvioCVdeAlmeida [EMAIL PROTECTED] writes:
Hello,
How suitable is h2xs for generating C++Perl bindings?
Not very.
A typical C++ .h file has all kinds of constructs h2xs isn't
expecting. (namespaces, and overloaded functions, inline members,...)
I couldn't manage
it to work as I expected.
Billy N. Patton [EMAIL PROTECTED] writes:
Silvo,
This group chooses to help only other experts. Beginners are not
welcome here. I've ask several questions about C++ and have recieved no
response. Guess my questions were too trivial. Too obvious to an
expert. Too far below them to answer.
SilvioCVdeAlmeida [EMAIL PROTECTED] writes:
4. archive and test:
cd Pack
perl Makefile.PL
The normal thing to do at this point is
make
make test
make dist
That is just creating a tar ball which isn't useful till it works.
make
make test
It breaks in make test, because
Billy N. Patton [EMAIL PROTECTED] writes:
Here is my Makefile.PL.
use 5.008;
use ExtUtils::MakeMaker;
$CC = 'g++';
$LD = 'g++';
$s = `uname`;
$PLATFORM = ($s eq 'Linux') ? 'lnx86' : 'sun' ;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is
Here is my Makefile.PL.
use 5.008;
use ExtUtils::MakeMaker;
$CC = 'g++';
$LD = 'g++';
$s = `uname`;
$PLATFORM = ($s eq 'Linux') ? 'lnx86' : 'sun' ;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
'NAME'=
And FWIW I never use h2xs for C code as it is much safer to write
bindings by hand as XS code and even the relatively trivial task
of parsing C declarations is often wrong.
Same here. I *always* write XS code by hand. If I use h2xs at all, then
only to generate all the template files.
I also
* Nick Ing-Simmons wrote:
ask for C compilation, which do not find iostream, string,
and other standard C++ headers.
That bit is faily easy. You need to override CC as g++ (or whatever
your C++ compiler is called -
WriteMakefile(
'CC'= 'g++',
'LD = 'g++',
I think C++ Perl binding is an exciting issue, like C++, STL and Perl
are. C++ is evolving fast, as does Perl. So, in my opinion, it would be
great if we have a clear, well documented way to deploy a few C++
library's functions into Perl modules. My XS knowledge is poor, but I
know some C++, and
16 matches
Mail list logo