jjzjj

external

全部标签

c++ - lua 5.2.1 Unresolved external 问题

我正在使用visualstudio2012,当我尝试编译时,出现以下错误:Error7errorLNK1120:6unresolvedexternalsC:\Users\MS\Documents\VisualStudio2012\Projects\LuaTest\Release\LuaTest.exeLuaTestError4errorLNK2001:unresolvedexternalsymbol_lua_closeC:\Users\MS\Documents\VisualStudio2012\Projects\LuaTest\LuaTest\main.objLuaTestError5

windows - C :/Program is not recognized as an internal or external command

我在系统变量中有JAVA_HOME变量并设置为C:\ProgramFiles\Java\jdk1.8.0_60当我尝试使用命令%JAVA_HOME%时出现错误C:/Programisnotrecognizedasaninternalorexternalcommand.我的理解是因为程序后面的路径有空格,我也试过在路径中使用引号,但没有解决问题。即"C:\ProgramFiles\Java\jdk1.8.0_60"但没有帮助。编辑:我尝试用ProgramFiles删除那些。现在我的系统路径变量看起来像这样:%SystemRoot%\system32;%SystemRoot%;%Syste

windows - 如何处理失败的 `system` 调用?

我有一个调用外部程序的Perl脚本。(现在我实际上正在使用反引号,但我可以很容易地使用system或cpan中的东西。)有时程序失败,导致Windows创建一个对话框“(外部程序)已停止工作”与文本Windowsischeckingforasolutiontotheproblem...很快被替换为Aproblemcausedtheprogramtostopworkingcorrectly.windowswillclosetheprogramandnotifyyouifasolutionisavailable.不幸的是,这个错误消息阻止进程死亡,导致Perl在用户(我!)单击“取消”或“

c# - 错误 : must declare a body because it is not marked abstract or extern

在Win10上使用csc.exe编译时,清除此错误时遇到一些问题。我对C#很陌生。在我1月份开始上课之前做一些自学。遵循有关执行此操作的“TeamTreehouse”教程。他们在工作区中使用mono。我更喜欢在我的机器上使用vscode来熟悉在单声道之外使用C#。从我读到的关于CS0501的内容来看,我的问题是编译器问题,不应该是问题,但使用csc.exe会导致问题。添加abstract会带来一系列全新的问题。从终端编译器使用的命令是csc*.cs我不确定下一步该去哪里寻找解决方案。我一直无法使用所谓的Auto-ImplementedProperties找到一个可用的。错误是Invad

c++ - C++ 中 extern "C"的调用约定是什么?

这个问题在这里已经有了答案:Whatistheeffectofextern"C"inC++?(17个答案)WhatarethedifferentcallingconventionsinC/C++andwhatdoeachmean?(6个答案)关闭3年前。标题确实准确描述了我的问题。extern"C"intfoo(intbar){returnbar;}从我一直在测试的情况来看,它似乎不是__cdecl、__stdcall、__fastcall,显然也不是__thiscall。什么是约定及其运作方式?谢谢。

c++ - 外部 IP 地址

这个问题在这里已经有了答案:关闭11年前。PossibleDuplicate:StablewayofretrievingtheexternalIPforahostbehindaNAT嗯,又是你好。我想知道如何获取计算机的外部IP地址(外部IP地址,因为有些人有路由器)?

Ubuntu Linux 上的 Java SE 6 : How to open files externally by Runtime. getRuntime().exec()?

我正在使用JavaSE6并希望通过预定义程序在外部进程中打开文件。例如,目前我正在为pdf文件使用以下代码:Windows:publicstaticProcessopenFile(Filefile){returnRuntime.getRuntime().exec("C:/ProgramFiles(x86)/Adobe/Reader10.0/Reader/AcroRd32.exe\""+file.getAbsolutePath()+"\"");}UbuntuLinux:publicstaticProcessopenFile(Filefile){returnRuntime.getRunti

c++ - 从 x32 迁移到 x64 时出现链接器错误

我最近在VSprofessional2008中将一个项目从x32迁移到x64,但我遇到了这个奇怪的链接器错误:errorLNK2001:unresolvedexternalsymbol__imp_PostMessageWerrorLNK2001:unresolvedexternalsymbol__imp_FlushFileBufferserrorLNK2001:unresolvedexternalsymbol__imp_WriteFileerrorLNK2001:unresolvedexternalsymbol__imp_WaitForSingleObjecterrorLNK2001:

c++ - LNK2019 : unresolved external symbol -- Implicit DLL

这个问题在这里已经有了答案:Whatisanundefinedreference/unresolvedexternalsymbolerrorandhowdoIfixit?(39个答案)关闭8年前。有很多类似的问题,但我几乎已尽一切努力解决问题,但似乎没有任何效果我创建了一个简单的小Dll。声明:voidfunc_A()voidfunc_B()还有一些其他的东西,我给了它一个C++文件名,但它基本上只是C程序我写了.def文件LIBRARY"myLib.dll"EXPORTSfunc_A@1func_B@2Dll创建成功。我已经确定properties->linker->input->m

c# - 是否可以使用 extern 和 override 修饰符指定一个函数?

我试图覆盖user32.dll中外部函数的行为,因为我不想显示某个窗口。我想做的是:[DllImport("user32.dll")]publicexternoverrideIntPtrGetSystemMenu(IntPtrhMenu,boolbRevert){returnnewIntPtr();}但这行不通,因为我收到以下错误:...nosuitablemethodfoundtooverride和...cannotbeexternanddeclareabody有什么方法可以模拟我正在尝试做的事情吗? 最佳答案 如果调用GetSy