Had problems bootstrapping Inline module 'bb_pl_d714'
I think you simply need to add the location of the libcurl dll to your PATH, as that dll needs to be located at runtime.
That location is probably:
C:\Users\Administrator\Downloads\curl-7.67.0_4-win64-mingw\curl-7.67.0
+-win64-mingw\bin
This script (almost identical to yours) worked fine for me on Windows, building against curl-7.65.0-2, as provided by the MSYS2 project:
use strict;
use warnings;
use Inline 'Config' => BUILD_NOISY => 1, CLEAN_AFTER_BUILD => 0;
use Inline 'C' => 'Config' => libs => '-LC:\_64\msys64\mingw64\lib -lc
+url.dll',
inc => '-IC:\_64\msys64\mingw64\\include';
use Inline 'C' => <<'CODE';
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#ifndef WIN32
#include <unistd.h>
#endif
#include <curl/curl.h>
int init(){
CURLM *cm;
curl_global_init(CURL_GLOBAL_WIN32);
printf("SUCCESS !!\n");
return 0;
}
CODE
init();
After the build completed it output "SUCCESS !!".
Cheers,
Rob
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.