草庐IT

mingw-get

全部标签

c++ - MinGW 和 GLUT 未定义对 '_imp____glutInitWithExit@12' 的引用

我接触了一年的Python,正在学习c++,所以我是一个菜鸟。我安装了MinGW并且一切正常,直到我安装了freeglut。当我运行以下代码时:#includeintmain(){return0;}使用:C:\code\cpp>g++GLtest1.cpp我明白了:C:\Users\User\AppData\Local\Temp\ccABWOyv.o:GLtest1.cpp:(.text+0x1c):undefinedreferenceto`_imp____glutInitWithExit@12'C:\Users\User\AppData\Local\Temp\ccABWOyv.o:G

c++ - MinGW 是如何实现 C++ 库支持的?

根据我的观察,MinGW使用MSVCRT用于C,而libstdc++用于C++。如果是这样,他们如何合作?而且,为什么不统一支持C和C++,无论是MSVCRT+MSVCPRT还是glib+libstdc++。我认为MSVCRT和libstdc++之间的混合听起来很糟糕。那为什么MinGW还是选择了这个呢?链接:C99|MinGWMinGW|MinGWCRTLibraryFeaturesDescriptionofthedefaultCandC++librariesthataprogramwilllinkwithwhenbuiltbyusingVisualC++以下是我的观察,如果你能回答

Windows shell : How can I get the audio device(s) name(s)?

Iamnotsureifthisisstrictlyaprogrammingquestion,aslongasIdon'tmindtouseadditionalsoftwareinordertosolvetheproblem,aslongasitkeepsbeingscriptableorcommand-line(thisis:anotGUIsolution).Anyway,Ihavepostedanother(abitdifferent)questionatSuperUser.Bytheway,IwillupdatehereifIgettheanswerthere.我的Windows

windows - CMake 生成的 MinGW Makefile 有引用错误

我正在尝试使用CMake3.9.0构建zlib,输出设置为MinGWMakefiles,并在尝试调用输出目录中的mingw32-make时注意到有一条奇怪的错误消息,非常much看起来像是引用错误。D:\zlib-1.2-11>mingw32-make[2%]Generatingzlib1rc.obj'C:\Program'isnotrecognizedasaninternalorexternalcommand,operableprogramorbatchfile.C:\ProgramFiles\mingw-w64\x86_64-7.1.0-win32-seh-rt_v5-rev0\m

python - 在 mingw/cygwin 上构建时如何让 PIL 工作?

我正在尝试针对cygwin或mingw构建PIL1.1.6,同时针对Windows安装的python运行。当我执行构建工作时,但在尝试保存文件时出现以下失败。$python25Python2.5.2(r252:60911,Feb212008,13:11:45)[MSCv.131032bit(Intel)]onwin32Type"help","copyright","credits"or"license"formoreinformation.>>>fromPIL.Imageimportopen>>>im=open('test.gif')>>>im.save('output1.gif')T

c - 通过 mingw 编译 win32 项目时缺少 sal.h

错误信息:fatalerror:sal.h:Nosuchfileordirectorycstudyline11,externallocation:C:\ProgramFiles\MicrosoftSDKs\Windows\v7.0A\Include\specstrings.hC/C++Problem.但是当我将VC/include添加到这个项目时,我收到了大量的错误信息。VC/include/sal.h似乎不是GCC的标准头文件。源码很简单:#include"windows.h"intWINAPIWinMain(HINSTANCEhInstance,HINSTANCEhPrevInst

windows - 是否有在 eclipse + mingw 中编译 node.js 的方法?

我是node.js新手。目前我在一个IDEeclipse上开发我所有的东西(c++/web/java)我想开始使用node.js进行开发。从网上看我没有找到任何严格的答案但是我可以在Windows上的eclipsecdt中编译node.js吗?谢谢 最佳答案 可以按照thisguide在Windows上构建/编译Node.js.但是,正如此处已经提到的,Node.js已经在Windows上可用。你可以installit.安装它很可能是最不痛苦的方法。 关于windows-是否有在ecli

c++ - windows C++ opening printer with documentproperties get C6836 "Write Overrun"代码分析警告

在下面的代码中://IfGetPrinterdidn'tfillintheDEVMODE,trytogetitbycalling//DocumentProperties...if(pi2->pDevMode==NULL){dwNeeded=DocumentProperties(NULL,hPrinter,printerName,NULL,NULL,0);if(dwNeededpDevMode=pDevMode;}在线lFlag=DocumentProperties(NULL,hPrinter,printerName,pDevMode,NULL,DM_OUT_BUFFER);当我运行Vi

ruby - Ruby gets 方法将我的输入截断为 256 个字符

我试图在Ruby中输入一个长字符串(>256个字符,但通常puts"Enterlongstring"ilogo=gets.chompputs"#{ilogo}"出于某些愚蠢的原因,它总是截断输入以仅保留256个字符(在chomp之前)。我验证了Ruby接受更长的字符串,并且Windows7命令行控制台也接受大于256个字符的字符串。我找不到任何关于具有这种限制的gets方法的提及,但我肯定遗漏了一些东西。我一无所知。这可能只是一个获取限制吗?编辑:更具体地说:我正在使用的测试字符串之一是:1111111111111111111111111111111111111111111111111

windows - Node : Getting MyDocuments Path on Windows

如何使用NodeJS检索MyDocuments路径。所以我想用下面的C#代码在NodeJs中得到一些东西:Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments)谢谢和问候斯特凡 最佳答案 找到答案:varQ=require('Q');vargetUserDoc=function(callback){varWinreg=require('winreg');vardeferred=Q.defer();varregKey=newWinreg({hive:Winreg