草庐IT

launch-external

全部标签

gradle - Unresolved reference : launch

尝试为Kotlin协程运行一些示例,但无法构建我的项目。我正在使用最新的gradle版本-4.1有什么建议检查/修复什么?这里是build.gradlebuildscript{ext.kotlin_version='1.1.4-3'repositories{mavenCentral()}dependencies{classpath"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"}}applyplugin:'kotlin'applyplugin:'application'kotlin{repositories{jcen

android - session 'app' : Error Launching activity

在gradle构建完成后更新AndroidStudio2.0后,我得到了这个:session“应用程序”:启动Activity时出错。它会阻止应用程序启动,但它已安装在我的模拟器中。这是运行选项卡中出现的内容:Unexpectederrorwhileexecuting:amstart-n"com.example.user.ypologismosmoriwn/com.example.user.ypologismosmoriwn.MainActivity"-aandroid.intent.action.MAIN-candroid.intent.category.LAUNCHERErrorw

node.js - 来自守护程序 : driver failed programming external connectivity on endpoint modest_aryabhata 的错误响应

我正在查看thistutorial使用以下命令制作docker镜像:dockerbuild-tmyapp_back.然后想运行容器:dockerrun-p3000:3000-dmyapp_back这是一个简单的Node/快速应用程序但我收到一个错误:C:\ProgramFiles\Docker\Docker\Resources\bin\docker.exe:Errorresponsefromdaemon:driverfailedprogrammingexternalconnectivityonendpointwizardly_wescoff(a7c53e0d168f915f900e3d

mongodb - 蒙哥 : how to sort by external weight

关注thisquestion@NeilLunn已经优雅地回答了,这是我更详细的问题。这是一组文档,有些有user_id有些没有。user_id代表创建文档的用户:{"user_id":11,"content":"black","date":somedate}{"user_id":6,"content":"blue","date":somedate}{"user_id":3,"content":"red","date":somedate}{"user_id":4,"content":"black","date":somedate}{"user_id":4,"content":"blue"

c++ - 标记为 Extern "C"的 C++ 函数可以抛出吗?

我有想要使用extern"C"声明的C++函数,即使它们只在C++代码中调用。是的,我知道这很奇怪,但为了保持一致性,我想这样做,因为我们混合了C和C++声明。我只是想确保将C++函数声明为extern"C"不会影响抛出的行为。看起来像这样:extern"C"voidfoo(){throwexception;}intbar(){try{foo();}catch(exceptione){return1;}} 最佳答案 “标记为外部“C”的C++函数可以抛出吗?”是的,无论是语言还是编译器都不会阻止您这样做。否,从某种意义上说,如果你抛

c++ - extern "C"声明如何工作?

我正在学习编程语言类(class),我们正在讨论extern"C"声明。除了“它接口(interface)C和C++”之外,这个声明在更深层次上是如何工作的?这对程序中发生的绑定(bind)也有什么影响? 最佳答案 extern"C"用来保证后面的符号不是mangled(装饰)。示例:假设我们在一个名为test.cpp的文件中有以下代码:extern"C"{intfoo(){return1;}}intbar(){return1;}如果你运行gcc-ctest.cpp-otest.o看看符号名称:00000010T_Z3barv000

c++ - 为什么 "extern const int n;"不能按预期工作?

我的项目只包含两个源文件:a.cpp:constintn=8;b.cpp:externconstintn;intmain(){//errorLNK2001:unresolvedexternalsymbol"intconstn"(?n@@3HB)intm=n;}我知道有几种方法可以让它发挥作用;但是,我只是想知道为什么它不起作用? 最佳答案 这是因为const默认意味着内部链接,所以您的“定义”在翻译单元之外不可见它出现在哪里。在这种情况下,到目前为止,最好的解决方案是将声明(externintconstn;)在头文件中,并将其包含在

c++ - Boost 链接器错误 : Unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::get_system_category(void)"

我刚刚开始第一次使用Boost,详情:我使用的是VisualStudio2008SP1我正在进行x64构建我只使用boost::asio(以及它所具有的任何依赖项)我的代码现在可以编译,我将我的项目指向boost库(在构建x64库之后)并解决了一些简单的问题,现在我面临一个链接器错误:2>BaseWebServer.obj:errorLNK2001:unresolvedexternalsymbol"classboost::system::error_categoryconst&__cdeclboost::system::get_system_category(void)"(?get_s

c++ - 关于 std::async 与 std::launch::async 参数启动的线程的混淆

我对std::async函数有点困惑。规范说:asynchronousoperationbeingexecuted"asifinanewthreadofexecution"(C++11§30.6.8/11).现在,这是什么意思?在我的理解中,代码std::futurefut=std::async(std::launch::async,pow2,num);应该在一个新线程上启动函数pow2并将变量num按值传递给线程,然后在将来的某个时间,当函数完成时,放置fut中的结果(只要函数pow2具有类似doublepow2(double);的签名)。但是规范声明“好像”,这让整个事情对我来说有

c++ - 尽管在 zlib.lib 中链接,但 Unresolved external 问题

我一直在尝试编译一个在VC++2010中使用zlib压缩的应用程序。我得到错误:errorLNK2019:unresolvedexternalsymbolinflateInit2referencedinfunction...如果我不链接库,这不会是不寻常的。我链接了静态发布的zlib库。我已经设法让这个完全相同的库和头文件配置在不同的解决方案中完美运行,因此这种行为非常出乎意料。任何想法都会受到赞赏。链接器命令行:/OUT:"C:\DocumentsandSettings\Suthke\MyDocuments\VisualStudio2010\Projects\SBRapGen2\De