libcurl.lib-我在哪里可以得到它 [英] libcurl.lib - where can I get it

查看:354
本文介绍了libcurl.lib-我在哪里可以得到它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

libcurl是我用来尝试将消息从使用Visual Studio 6编译的Windows XP上运行的C程序发布消息到JMS队列的方法.

libcurl is what I am going to try to use for posting messages to a JMS queue from a C program running on Windows XP compiled using Visual Studio 6.

有了这个,我需要链接libcurl.lib-但是我从哪里得到这个呢?

With this I need to link in libcurl.lib - but where do i get this from?

我将许多lib链接到我的程序(wsock32.lib,kernel32.lib等),因此一旦掌握了它,就看不到问题了.

I link numerous lib's to my program (wsock32.lib, kernel32.lib, etc) so once I can get hold of it I can't see a problem.

我已经下载了所有Win32-Generic二进制文件等(http://curl.haxx.se/download.html),但没有一个包含我需要的lib/header.

I have downloaded all of the Win32-Generic binaries etc (http://curl.haxx.se/download.html) but none of them contain the lib/headers I need.

外面的人都知道我从哪里得到的.

Anyone out there know where I get get them from.

感谢您的帮助.

  • 现在在64位计算机上运行的问题-请参阅我的"answer"帖子

推荐答案

我使用了您提供的链接(

I have used the link you supplied (direct link). I now link in the libcurl_imp.lib to my dll and it compiles fine. My app can call my new library routines that call the curl methods fine and works a treat - BUT ONLY ON A 64BIT MACHINE? - if I try to run the same dll/binary app on a 32bit XP machine it just dumps out immediately. In fact all my applications abort - and they make no reference to my new library routines, they just use the dll. It seems that just because I build in the cURL calls into my dll it immediately aborts the spawned process– I just get –

1 +完成(134)测试程序

1 + Done(134) testapp

5656中止testapp

5656 Abort testapp

在main之后立即有一条printf语句,但是在命令行上没有输出.

I have a printf statement immediately after main but I get no output on the command line.

然后我从dll中删除了所有新的库函数,除了其中之一,我要做的就是–

I then removed all my new library functions from the dll apart from one, and in this all I do is –

CURLcode res = curl_global_init(CURL_GLOBAL_DEFAULT);

这一行会导致我的所有应用程序在构建到dll中时都无法在32位上运行–请注释掉它们,然后它们都可以工作.

This one line causes all my apps to fail on 32bit when built into my dll – comment it out and they all work.

如上所述,相同的dll/binary在我的64位计算机上工作正常. 64位计算机与我的32位计算机具有相同的curllib.dll.

As stated, the same dll/binary works fine on my 64bit machine. The 64bit machine has the same curllib.dll as the one on my 32bit machine.

有关信息,我的构建机器是32位的,我们生产的机器都是32位和64位的.

For info, my build machine is 32bit, we have productions machines that are both 32 and 64 bit.

您发送给我的链接是否仅是64位?

Is the link you sent me actually 64bit only?

这篇关于libcurl.lib-我在哪里可以得到它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆