Coder Social home page Coder Social logo

help about go-curl HOT 10 CLOSED

andelf avatar andelf commented on June 16, 2024
help

from go-curl.

Comments (10)

andelf avatar andelf commented on June 16, 2024

compile error while linking to libcurl.
have you installed libcurl ?

from go-curl.

SETSESSION avatar SETSESSION commented on June 16, 2024

目前是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.

andelf avatar andelf commented on June 16, 2024

很久以前装过windows下,测试没问题就忽略了。
稍等我看下。如果有这个目录的话那应该只要link过去就ok

from go-curl.

SETSESSION avatar SETSESSION commented on June 16, 2024

非常感谢 :)

from go-curl.

andelf avatar andelf commented on June 16, 2024

我这里ok的,你看下你的lib目录是不是有libcurl.a 或者 curl.lib 什么的

from go-curl.

SETSESSION avatar SETSESSION commented on June 16, 2024

您是指go目录下的还是Mingw下的,mingw libcurl.a libcurldll.a,libcurl.dll,
我将此3哥文件移动到go的目录下也不行
疯了

from go-curl.

SETSESSION avatar SETSESSION commented on June 16, 2024

您的windows是32位的吗,是否可以将您的本地的那几个文件和目录结构发给我,我再试试,地址:setcookie#163.com (#-》@)

from go-curl.

llxwj avatar llxwj commented on June 16, 2024

mingw的lib目录下有libcurl.dll.a,才能链接通过.另外使用静态链接的方法,包能正常生成,但是在main包调用后,还是有curl的函数无法链接,不知道为什么.

from go-curl.

andelf avatar andelf commented on June 16, 2024

我这里暂时没有 MingW 环境, 麻烦你先测试下正常用 C 写的 libcurl 程序是否可以编译通过?

from go-curl.

llxwj avatar llxwj commented on June 16, 2024

BUILDING_LIBCURL这个宏要定义

from go-curl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.