jjzjj

Referenced

全部标签

c++ - 你如何在 osx 上使用 waf 链接 opengl 和 glut?

我正在尝试使用waf在osx上构建一个C++opengl程序,但无法让它工作。通常当我编译一个opengl程序时,我在终端中使用它:g++main.cpp-frameworkGLUT-frameworkOpenGL我使用以下wscript:top='.'out='build'defoptions(opt):opt.load('compiler_cxx')defconfigure(conf):conf.load('compiler_cxx')#conf.env.append_value('LINKFLAGS','-frameworkGLUT-frameworkOpenGL')defbui

c++ - 测量互斥量争用/解释互斥量输出

我正在尝试使用mutrace测量我的程序中的互斥锁争用,但我对如何使用它输出的报告感到困惑。mutrace:Showingstatisticsforprocesstest(PID:5924).mutrace:1223mutexesused.Mutex#362(0x0x1a23750)firstreferencedby:/usr/local/lib/libmutrace.so(pthread_mutex_init+0x1b2)[0x7fb6b14129b4]./test()[0x500042]Mutex#390(0x0x1a23ac0)firstreferencedby:/usr/loc

c++ - error LNK2019 未解析的外部符号

我对C++很陌生,所以我下载了一个示例C++程序。示例程序在编译时似乎遇到了以下错误:-Error22errorLNK2019:unresolvedexternalsymbol_acsEnumServerNames@12referencedinfunction"protected:virtualint__thiscallCOpenTsrv::OnInitDialog(void)"(?OnInitDialog@COpenTsrv@@MAEHXZ)Opentsrv.obj我将其追溯到所引用的函数,但我不知道它有什么问题吗?BOOLCOpenTsrv::OnInitDialog(){CDia

c++ - 错误 LNK2019 : unresolved external symbol "" referenced in function

我目前在编译代码时遇到以下错误:errorLNK2019:unresolvedexternalsymbol"public:void__thiscallAgent::printSelf(void)"(?printSelf@Agent@@QAEXXZ)referencedinfunction"public:void__thiscallWorld::processMouse(int,int,int,int)"(?processMouse@World@@QAEXHHHH@Z)World.obj这是我的代码代理.h:classAgent{public:Agent();voidprintSelf(

c++ - 错误 LNK2019 : unresolved external symbol referenced in function main

我正在尝试用C++运行我的简单汇编代码。我只有两个文件“.cpp”文件和“.asm”文件。编译时出现错误(见下文)。如果有人能提供帮助,我将不胜感激...:)这是我的“main.cpp”文件#includeusingnamespacestd;extern"C"intGetValueFromASM();intmain(intargc,char*argv[]){cout我还有一个简单的“asm.asm”文件.codeGetValueFromASMprocmovrax,3254retGetValueFromASMendpend尝试构建时出现此错误:1>main.obj:errorLNK201

c++ - Visual Studio 11 GLFW 外部符号错误

我使用的基本代码是来自http://www.glfw.org/documentation.html的示例我得到这个输出:1>------Buildstarted:Project:ConsoleApplication1,Configuration:DebugWin32------1>Quelle.cpp1>Quelle.obj:errorLNK2019:unresolvedexternalsymbol_glfwInitreferencedinfunction_main1>Quelle.obj:errorLNK2019:unresolvedexternalsymbol_glfwTermin

c++ - 在 C++ 中 : Is const reference means "read-only view of" or it requires immutability of object being referenced?

问题可以通过示例表述如下:这段代码有效吗?inta=1;constint&ca=a;++a;//对于MSVC和MinGW,上面的代码片段按预期工作:如果我查询ca后记,它返回2(即它被非常量引用更改)。但问题是:如何从标准的角度考虑这种情况?我们是否可以更改对象,我们有const引用(或者例如,我们必须将ca定义为constvolatile引用以使代码片段正确)?所以,如果上面的片段是正确的,那么这意味着,const引用并不能保证引用的对象是常量。它只是禁止我们通过给定的引用来更改它,即建立引用对象的“只读”View。这是正确的吗?编辑:感谢所有回答我问题的人。答案说明了事情,这对我来

c++ - 帮助在 Visual C++ Express 中进行链接

我是VC++的新手,想知道如何在VC++中链接“wsock32.lib”。我正在尝试编写一个简单的C++服务器应用程序,这些是我收到的错误消息。那么我该如何在VC++中链接某些东西呢?wsock32也是我需要的正确库吗?1>------Buildstarted:Project:bla,Configuration:DebugWin32------1>bla.obj:errorLNK2019:unresolvedexternalsymbol_closesocket@4referencedinfunction_main1>bla.obj:errorLNK2019:unresolvedexte

c++ - Clrdump (C++) 错误 LNK2019 : unresolved external symbol __imp__RegisterFilter@8 referenced in function _main

我正在使用带有pvcs编译器的makefile系统(使用MicrosoftVisualC++,2008编译器),我收到了几个以下形式的链接错误:errorLNK2019:unresolvedexternalsymbol__imp__RegisterFilter@8referencedinfunction_main尽管使用了extern"C"声明,但还是会发生这种情况,即:extern"C"intCLRDUMP_APIRegisterFilter(LPCWSTRpDumpFileName,unsignedlongDumpType);此外,在makeexe.mak中,库链接如下:$(编译库

c++ - .mm 转换导致 Undefined symbols for architecture i386 错误

我最近将一个c++文件导入到我想使用的obj项目中。在我想使用它的类中,我将文件名从MyClass.m更改为MyClass.mm。这样做会给我20个左右的错误。这些错误到底是什么意思,我如何将MyClass更改为objective-c++类以促进我想使用的新c++类,而不会出现这些错误?Undefinedsymbolsforarchitecturei386:"setAudioInputIsStereo(audiosourceobj*,bool)",referencedfrom:-[EngineextractMp3Audio:withChannelId:withPadId:]inEngi