I found Inline will abort when directory name include space. For example:
use strict;
use warnings;
use Inline C => Config =>
LIBS => '-luser32';
use Inline C => << 'CODE';
#include <windows.h>
int Winbox(char* Caption, char* Text) {
return MessageBoxA(0,Text,Caption,0);
}
CODE
my $text = 'don\'t let me down!!!';
Winbox('Inline Text Box', $text);
__OUTPUT__
C:\Documents and Settings>perl -c winbox.pl
Can't open C:\Documents\config for output.
No such file or directory
at -e line 0
BEGIN failed--compilation aborted.
Failed to autogenerate C:\Documents and Settings\_Inline\config.
at winbox.pl line 27
BEGIN failed--compilation aborted at winbox.pl line 32.
Any suggestions?
I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction