Well, now I apparently finally got it to build. It needed a bunch of headers, .lib, .dll, and .obj files from Visual Studio. I had to copy them all into my C:\Perl\lib\CORE directory for it to work. But the problem is that when I run a simple example, like the sample greet one that is included,
use diagnostics;
use strict;
use warnings;
use Inline 'C';
greet('Ingy');
greet(42);
__END__
__C__
void greet(char* name) {
printf("Hello %s!\n", name);
}
So, I run it and I get the following error:
C:\Documents and Settings\Nate\Desktop>perl -w crap.pl
Couldn't find an appropriate DIRECTORY for Inline to use.
at C:/Perl/lib/FindBin.pm line 0
INIT failed--call queue aborted, <DATA> line 1 <#1>
<F> An untrapped exception was raised while executing a CHECK, INIT, o
+r routines has been prematurely ended.
Uncaught exception from user code:
Couldn't find an appropriate DIRECTORY for Inline to use.
at C:/Perl/lib/FindBin.pm line 0
INIT failed--call queue aborted, <DATA> line 1.
So, if anyone knows what is going on here, please let me know. I thought maybe my permissions on my directories weren't letting it write files, but I can't seem to change the property from Read-Only on any of my folders. Please HELP!!!!
| [reply] [d/l] [select] |
Hello everyone!
I'm answering my own question here for any of you that had problems. Before installing Inline.pm on a win32 machine, go to your (assuming you have Visual Studio .NET, but it will likely be on any Visual C++ compiler) C:\some dir\Microsoft Visual Studio .NET\Vc7\bin directory, then run vcvars32.bat. This will setup all of your environment variables for Visuall C++'s compiler so that you don't have to do it manually. Apparently I had left something out, now its fixed and running though!
Good Luck Inlining!
| [reply] |