Jason wrote:

[snip]


use Inline (C => '/csrc/wh.c' => NAME => 'WHCodec', VERSION => '1.00' ); 1;

[snip]

See 'perldoc Inline-FAQ' and also take a look at the way the Math::Simple example module (included with the 0.44 source) has been set up. You can build Math::Simple as a trial exercise if you like. It should proceed fine.

When I build a module with source code in a separate file I always make sure that:
1) the subdirectory containing the source code is named 'src';
2) the C file has the same name as the '.pm' file (ie 'WHCodec.c' in your case).


I *think* the problem lies with the way you've set this up .... but I'm not 100% sure :-)

__END__
#@ makefile # as generated by makefile.pl above
[snip]
# End.
# Well, not quite. Inline::MakeMaker is adding this:
# --- MakeMaker inline section:
.SUFFIXES: .pm .inl
.pm.inl:
$(PERL) -Mblib -MInline=NOISY,_INSTALL_ -MWHCodec -e1 1.00
$(INST_ARCHLIB)
pure_all :: WHCodec.inl
# The End is here.
[EMAIL PROTECTED]
Result:
#___________________________ C:\src\max\guis\WHCodec\WHCodec>makefile.pl
Checking if your kit is complete...
Looks good
Writing Makefile for WHCodec
C:\src\max\guis\WHCodec\WHCodec>nmake
Microsoft (R) Program Maintenance Utility Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.
cp lib/csrc/wh.c blib\lib\csrc\wh.c

The above line also looks wrong. I don't think you want the C code under a directory called 'lib' ... and it shouldn't be being copied into blib. Looks to me that your 'wh.c' is being treated as 'just another .pm file'.


cp lib/WHCodec.pm blib\lib\WHCodec.pm
NMAKE : fatal error U1073: don't know how to make 'WHCodec.inl' Stop.
#________________________
Inline-0.44
Inline-C
Activestate Win32
VS 6 EN
This is very frustrating as it is directly as instructed, after my previous
email having decided to do this.
TIA, AHA

My advice would be to set it up the same way as the Math::Simple example.

Cheers,
Rob





Reply via email to