当前位置: 首页 > news >正文

网站建设 cms资中做网站多少钱

网站建设 cms,资中做网站多少钱,福田蒙派克4s店电话和地址,东莞做网站要多少钱1. 首先编译openssl静态库 整个过程用的是 vs2015命令提示工具 需要安装perl 下载地址#xff1a;添加链接描述 解压后#xff0c; 在 openssl-1.0.2e目录下创建develop这个文件夹#xff0c; cd到 openssl-1.0.2e目录下#xff0c; a.配置编译文件和模式 执行 perl Co…1. 首先编译openssl静态库 整个过程用的是 vs2015命令提示工具 需要安装perl 下载地址添加链接描述 解压后 在 openssl-1.0.2e目录下创建develop这个文件夹 cd到 openssl-1.0.2e目录下 a.配置编译文件和模式 执行 perl Configure VC-WIN32 no-asm --prefixE:\curl\openssl-1.0.2e\developVC-WIN32标识windows 32位操作系统 64位用VC-WIN64A表示 若要使用debug版本请使用debug-VC-WIN64A或debug-VC-WIN32 no-asm 表示不用汇编 –prefixE:\curl\openssl-1.0.2e\develop 是设置安装目录 b.生成编译配置文件 若为Windows 64位系统执行 ms\do_win64a.bat若为Windows 32位系统执行 ms\do_ms.bat执行这一步之后在ms目录下会生成nt.mak和ntdll.mak两个编译配置文件 nt.mak 用于生成静态lib库 ntdll.mak 用于生成动态dll库 c.编译 静态库 nmake -f ms\nt.mak 动态库 nmake -f ms\ntdll.makd.测试 测试静态库 nmake -f ms\nt.mak test测试动态库 nmake -f ms\ntdll.mak test若最终显示 passed all tests 则说明生成的库正确 e.安装 安装静态库 nmake -f ms\nt.mak install安装动态库 nmake -f ms\ntdll.mak install编译安装完成后会在E:\curl\openssl-1.0.2e\develop目录下看到生成的相关文件夹 f.清楚上次编译 清除上次静态库的编译以便重新编译 nmake -f ms\nt.mak clean清除上次动态库的编译以便重新编译 nmake -f ms\ntdll.mak clean参考https://blog.csdn.net/mayue_web/article/details/83997969非常详细 2.编译zlib a.下载源码 http://zlib.net/zlib-1.2.11.tar.gz 解压后在zlib根目录下 命令行执行 nmake -f win32/Makefile.msc 3.编译libcurl a.下载源码 http://curl.haxx.se/download/curl-7.46.0.tar.bz2 b.拷贝所需的openssl与zlib相关库与头文件 .根据curl源代码根目录下winbuild目录下BUILD.WINDOWS.txt的提示 在源代码同级的目录下建立deps文件夹 此时的目录结构如下图伪目录 somedirectory\ |__curl-src | |_winbuild | |__deps|_ lib|_ include|_ bin我这里的deps文件夹目录是 E:\curl\deps 将编译openssl时候安装目录E:\curl\openssl-1.0.2e\develop\include下的 openssl夹拷贝到E:\curl\deps\include\目录下 将zlib源码根目录下的zconf.h、zlib.h和zutil.h拷贝到E:\curl\deps\include目录下。 将E:\curl\openssl-1.0.2e\develop\lib目录下的libeay32.lib和ssleay.lib拷贝到E:\curl\deps\lib目录下 将zlib源码根目录下的zlib.lib拷贝到E:\curl\deps\lib目录下。 c.编译libcurl 命令行进入源代码根目录下 winbuild 目录 nmake RTLIBCFGstatic /f Makefile.vc modestatic VC14 WITH_DEVELE:\curl\deps WITH_SSLstatic ENABLE_SSPIno ENABLE_IPV6no DEBUGno参数详细含义如下 nmake /f Makefile.vc modestatic or dll optionswhere options is one or many of:VC6,7,8,9,10,11,12,14 - VC versionsWITH_DEVELpath - Paths for the development files (SSL, zlib, etc.)Defaults to sibbling directory deps: ../depsLibraries can be fetched at http://windows.php.net/downloads/php-sdk/deps/Uncompress them into the deps folder.WITH_SSLdll or static - Enable OpenSSL support, DLL or staticWITH_CARESdll or static - Enable c-ares support, DLL or staticWITH_ZLIBdll or static - Enable zlib support, DLL or staticWITH_SSH2dll or static - Enable libSSH2 support, DLL or staticENABLE_SSPIyes or no - Enable SSPI support, defaults to yesENABLE_IPV6yes or no - Enable IPv6, defaults to yesENABLE_IDNyes or no - Enable use of Windows IDN APIs, defaults to yesRequires Windows Vista or later, or installation from:http://www.microsoft.com/downloads/details.aspx?FamilyIDAD6158D7-DDBA-416A-9109-07607425A815ENABLE_WINSSLyes or no - Enable native Windows SSL support, defaults to yesGEN_PDByes or no - Generate Program Database (debug symbols for release build)DEBUGyes or no - Debug buildsMACHINEx86 or x64 - Target architecture (default is x86)Static linking of Microsofts C RunTime (CRT):If you are using modestatic nmake will create and link to the static build of libcurl but *not* the static CRT. If you must you can force nmake to link in the static CRT by passing RTLIBCFGstatic. Typically you shouldnt use that option, and nmake will default to the DLL CRT. RTLIBCFG is rarely used and therefore rarely tested. When passing RTLIBCFG for a configuration that was already built but not with that option, or if the option was specified differently, you must destroy the build directory containing the configuration so that nmake can build it from scratch.Legacy Windows and SSLWhen you build curl using the build files in this directory the default SSL backend will be WinSSL (Windows SSPI, more specifically Schannel), the native SSL library that comes with the Windows OS. WinSSL in Windows XP is not able to connect to servers that no longer support the legacy handshakes and algorithms used by those versions. If you will be using curl in one of those earlier versions of Windows you should choose another SSL backend like OpenSSL.3.验证 vs2015 添加好包含目录 附加库目录 附加依赖项后预处理器添加上BUILDING_LIBCURL // staticLibcurlTest.cpp : 定义控制台应用程序的入口点。 //#include stdafx.h #include iostream #include curl.husing namespace std;/** * 一旦curl接收到数据就会调用此回调函数 * buffer:数据缓冲区指针 * size:调试阶段总是发现为1 * nmemb:(memory block)代表此次接受的内存块的长度 * userp:用户自定义的一个参数 */ size_t write_data(void* buffer, size_t size, size_t nmemb, void* userp) {static int current_index 0;cout current: current_index;cout (char*)buffer;cout --------------- endl;int temp *(int*)userp; // 这里获取用户自定义参数return nmemb; }int main() {curl_global_init(CURL_GLOBAL_ALL); // 首先全局初始化CURLCURL* curl curl_easy_init(); // 初始化CURL句柄if (NULL curl){return 0;}int my_param 1; // 自定义一个用户参数// 设置目标URLcurl_easy_setopt(curl, CURLOPT_URL, https://api.vxxx/gettime);// 设置接收到HTTP服务器的数据时调用的回调函数curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_data);// 设置自定义参数(回调函数的第四个参数)curl_easy_setopt(curl, CURLOPT_WRITEDATA, my_param);// 执行一次URL请求CURLcode res curl_easy_perform(curl);// 清理干净curl_easy_cleanup(curl);getchar();return 0; }参考 https://blog.csdn.net/fm0517/article/details/91822880 https://blog.csdn.net/huangyimo/article/details/80337496
http://www.yutouwan.com/news/213405/

相关文章:

  • 住房和城乡建设部注册中心网站移投界seo
  • 山东网站建设xywlcn建设网站设计的公司
  • 圣融网站建设品牌网站设计地址
  • 焦作建网站简约的网站设计界面
  • 做非经营网站需要营业执照网站怎么制作做
  • 网站建设实训意见建议宁波seo快速优化平台
  • 大型网站开发方案多种不同产品的网站怎么做seo
  • 怎样建设游戏网站网站黑链
  • 网站被墙了什么意思nodejs的网站开发
  • 国外做足球数据的网站有哪些建设软件资源网站
  • 文联网站建设方案有什么国企是做网站的
  • 北京有什么网上推广的网站吗p2p商城网站建设方案
  • h5网站开发工具有哪些网站建站专业
  • 网站建设多少钱需要excel做网站页面布局
  • 地方网站域名选择wordpress 自动超链接
  • 网站安全建设步骤网页设计学校网站制作
  • 企业网站策划大纲模板html网页设计模板和源代码
  • 哪个公司做网站推广最好dw做网站时怎么改为绝对路径
  • 旅游网站建设建议中山建站服务
  • 珠海企业网站设计公司做会计需要了解的网站及软件
  • 怎么制作营销网站开发者模式开着好不好
  • 网站源码客户网站设计公司 上海
  • 一站式做网站费用动漫制作专业累吗
  • 找人做网站一般要多少钱象山县建设局网站
  • 南京建设企业网站推广软文300字范文
  • 手机网站 扁平化趋势网站建设售后服务合同
  • 黑龙江建设网官方网站特种作业python3 网站建设
  • 建网站和建网页的区别wordpress仿北京时间
  • 贵阳网站建设多钱钱线上推广费用预算
  • 做网站 域名 网站 空间wordpress 访客 用户