草庐IT

Today-Extension

全部标签

c++ - 是否可以像在 C# 中那样使用 C++ 中的宏创建 "extension methods"?

我想扩展std::string并添加“等于”。所以我做了以下事情:#defineEquals(str1)compare(str1)==0并使用了以下代码:if(str.Equals("hhhhllll"))哪个(我假设)编译为if(str.compare("hhhhllll")==0)一切都编译得很好。现在我想改进我的宏,添加括号编译为if((str.compare("hhhhllll")==0))我试过类似的东西:#define(str).Equals(str1)(str.compare(str1)==0)但它不会编译(宏根本不适合)我怎样才能实现它? 最

python - 为什么我在安装 simplejson 时得到 "C extension could not be compiled"?

顺便说一句,我使用的是Windows,所以我必须安装visualstudio吗?(py)D:\python>pipinstallsimplejsonDownloading/unpackingsimplejsonDownloadingsimplejson-2.6.2.tar.gz(53kB):53kBdownloadedRunningsetup.pyegg_infoforpackagesimplejsonInstallingcollectedpackages:simplejsonRunningsetup.pyinstallforsimplejsonbuilding'simplejson.

ruby-on-rails - Windows 上的 ruby : Cannot install mysql2 gem - Failed to build gem native extension

我试着关注帖子here和there但我离找到这个问题的真实答案还差得很远。我还缺少其他东西吗?d:\Projects\Ruby\cms>geminstallmysql2--platform=ruby--'--with-mysql-dir="C:\mysql-connector-c-6.1.3-winx64"'TemporarilyenhancingPATHtoincludeDevKit...Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingmysql2:ERROR:Failedtobuildgemna

php - 如何在 Windows 上安装 Zend OPcache Extension + PHP >= 5.4

是否可以在Windows环境中为PHP5.4.29安装ZendOPcache模块?我已经下载了与PHP5.4兼容的OPCache,但是php-v不显示任何新加载的内容。 最佳答案 ZendOPcache扩展与5.3.*5.4.*和PHP5.5.*兼容您应该下载source-code扩展并自行编译或尝试下载pre-compiledwindowsversionhere并像这样在php.ini中调用扩展:zend_extension=/path/to/opcache.dll注意:Windows二进制文件有多个版本:线程安全和非线程安全。您

windows - 如何在 Windows 中使用 Gradle 克服 `The filename or extension is too long` 错误

在Jhipster中使用以下配置生成的默认应用程序上,在Windows中运行gradlewgatlingRun失败并显示以下堆栈跟踪{"generator-jhipster":{"baseName":"jhipster","packageName":"com.mycompany.myapp","packageFolder":"com/mycompany/myapp","authenticationType":"session","hibernateCache":"hazelcast","clusteredHttpSession":"no","websocket":"spring-web

php - 安装 Composer 失败,出现 "The openssl extension is missing"错误

我正在尝试安装Composer,但出现以下错误:"SomesettingsonyourmachinemakeComposerunabletoworkproperly.Makesurethatyoufixtheissueslistedbelowandrunthisscriptagain:Theopensslextensionismissing,whichmeansthatsecureHTTPStransfersareimpossible.Ifpossibleyoushouldenableitorrecompilephpwith--with-openssl"然后我进入我的php.ini-p

windows - 在 explorer-shell-extension 中创建子菜单?

我创建了一个更改文件名的小脚本(用_等替换空格)。我正在使用参数控制此脚本。现在我想将其包含到我的explorer-shell-extention中,因此我尝试添加以下注册表项:HKEY_CLASSES_ROOT\*\shell\editfilnamemethoda\commandHKEY_CLASSES_ROOT\*\shell\editfilnamemethodb\commandHKEY_CLASSES_ROOT\*\shell\editfilnamemethodc\command等等。它工作正常,但我想将所有这些方法打包到一个子菜单中。有点像“打开方式”选项。这可能吗?

windows - Air Native Extension如何使用外部Dll?

我的ANE文件的结构如下所示:ExtensionDll.dllDllUsedByExtensionDll.dllextension.xmlmimetypecatalog.xmllibrary.swf如果ExtensionDll.dll使用其他Dll中的函数,则不会加载扩展。不调用DllMain。airapplicationusestheextension正在运行时,DllUsedByExtensionDll.dll似乎不在Dll搜索路径中。如果我不想将额外的Dll放入某些公共(public)Dll路径,我应该如何让应用程序找到这些额外的Dll? 最佳答案

php - 交响乐 2 : Install and enable the intl extension

我正在使用XAMPPforWindows并决定尝试Symfony2.我一到SymfonyConfiguration它建议我安装并启用intl的页面。我尝试阅读PEAR's和PECL's指南,因为我在这个主题上总计0(最近开始学习PHP),但没有任何效果。我找到了php_intl.dll在我的里面C:\xamp\php\ext.php.ini的extension_dir=设置为"C:\xampp\php\ext".我只是错过了extension=php_intl.dll里面php.ini,所以我添加了它。不幸的是它没有用,而且Symfony一直问我intl。

windows - sqlite3-ruby gem : Failed to build gem native extension

更新:查看后续问题:GemUpdateonWindows-isitbroken?在Windows上,当我这样做时:geminstallsqlite3-ruby我收到以下错误:Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingsqlite3-ruby:ERROR:Failedtobuildgemnativeextension.c:/ruby/bin/ruby.exeextconf.rbinstallsqlite3-ruby--platformWin32checkingforfdatasync()inrt