Comments (10)
compile error while linking to libcurl.
have you installed libcurl ?
from go-curl.
目前是windows 386 + mingw
libcurl应该有,我看mingw 下有include/curl + lib 目录,里面有libcurl的东西
有如下疑问:
1。在mingw中直接输入go get -u github.com/andelf/go-curl的话,libcurl相关文件使用的是什么路径下的,是go安装目录的include吗?我需要把mingw/include/curl拷贝到go安装目录下吗?
2。如果重新编译curl,我下载了curl-7.30.0.tar.gz,使用mingw32-make -f Makefile.m32后,需要移动什么文件到什么位置吗?
问题有点多,呵呵
from go-curl.
很久以前装过windows下,测试没问题就忽略了。
稍等我看下。如果有这个目录的话那应该只要link过去就ok
from go-curl.
非常感谢 :)
from go-curl.
我这里ok的,你看下你的lib目录是不是有libcurl.a 或者 curl.lib 什么的
from go-curl.
您是指go目录下的还是Mingw下的,mingw libcurl.a libcurldll.a,libcurl.dll,
我将此3哥文件移动到go的目录下也不行
疯了
from go-curl.
您的windows是32位的吗,是否可以将您的本地的那几个文件和目录结构发给我,我再试试,地址:setcookie#163.com (#-》@)
from go-curl.
mingw的lib目录下有libcurl.dll.a,才能链接通过.另外使用静态链接的方法,包能正常生成,但是在main包调用后,还是有curl的函数无法链接,不知道为什么.
from go-curl.
我这里暂时没有 MingW 环境, 麻烦你先测试下正常用 C 写的 libcurl 程序是否可以编译通过?
from go-curl.
BUILDING_LIBCURL这个宏要定义
from go-curl.
Related Issues (20)
- Perform() hangs when passing in false to WRITEFUNCTION HOT 10
- Issues when passing in multiple values to the OPT_HTTPHEADER HOT 2
- How store all Cookies in a file? HOT 1
- panic: runtime error: invalid memory address or nil pointer dereference
- 请求curl返回的各项时间为 0 HOT 1
- is curl_global_init handled safely? is the library thread-safe? HOT 6
- Couldn't read Getinfo Informations
- use C.struct, not _Ctype_struct
- Cannot compile after march 14 update HOT 9
- cannot find the PUT and GET method implementation
- Is there functionality for running the requests through torsockets?
- how to know the compiled in libcurl version?
- HTTP2 support?
- Get cURL error code HOT 1
- Problem in building go software for windows HOT 4
- Getting SSL certificate expiry date
- Windows: callback.go:8:10: fatal error: curl/curl.h: No such file or directory HOT 1
- curl 7.56 deprecations
- library not supporting curl version 8.0.X or higher
- Not building at Docker
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-curl.