mingw

Where is libintl3 and libiconv2 for gnu make on windows, needed to compile vim with ruby on MinGW

泪湿孤枕 提交于 2020-01-12 14:50:27
问题 I am trying to run gnu make for windows, but it wouldn't run because libint3.dll was not found. Sure enough, http://gnuwin32.sourceforge.net/packages/make.htm specifies that libint3 and libiconv2 are required, but trying to follow their link obviously generates an error on the server. So, do I need these libraries, and where would I get them, or can I download gnu make from somewhere else. more background Here's what I try to do, and maybe someone else can share a way how to do it differently

CMAKE_COMPILER_IS_GNUCXX and CMAKE_CXX_COMPILER_ID are empty

强颜欢笑 提交于 2020-01-12 07:41:11
问题 I am currently playing around with CMake and want to detect the compiler and the compiler version. My current CMakeLists.txt looks as follows: cmake_minimum_required (VERSION 2.6) set (PROJECT "a_tour_of_c++") set (GNUCXX_MINIMUM_VERSION "4.8") set (CXX_STANDARD "c++11") message ("${CMAKE_CXX_COMPILER}") # C:/dev/MinGW/bin/g++.exe message ("${CMAKE_CXX_COMPILER_ID}") # EMPTY message ("${CMAKE_COMPILER_IS_GNUCXX}") # EMPTY if (CMAKE_COMPILER_IS_GNUCXX) if (CMAKE_CXX_COMPILER_VERSION VERSION

configure: error: leptonica library missing (when building tesseract-ocr-3.01 on MinGW)

丶灬走出姿态 提交于 2020-01-12 07:26:09
问题 When running configure it fails with checking for leptonica... yes checking for pixCreate in -llept... no configure: error: leptonica library missing But I have leptonica 1.69 built (downloaded source and ran ./configure && make install ) Edit I think configure: error: leptonica library missing is a bit misleading, please note that it first says checking for leptonica... yes , and then fails on checking for pixCreate in -llept... no . So maybe the problem is not that the library is missing,

MinGW c++ compiler zlib1.dll missing error?

一世执手 提交于 2020-01-11 19:57:50
问题 I have just started to learn C++ for school, and I'm trying to download the compiler MinGW to compile my source code. However, every time I try to compile a program an error message shows up saying that zlib1.dll is missing. This is the error message the program can't start because zlib1.dll is missing from your computer I have tried installing/re-installing with no luck. I don't know what's the problem here? Can anyone please help me with this problem as I have some homework that I need to

How to compile c/c++ to ms-dos .com programs?

半世苍凉 提交于 2020-01-11 14:28:09
问题 I use Code::Blocks with GNU GCC Compiler. My question is: is there any way to compile c/c++ code to ms-dos 16bit (.com) executable format? I tried to set the build options and search the compiler parameters on the net, but i couldn't find anything. 回答1: You can certainly compile C and/or (an ancient dialect of) C++ to a 16-bit MS-DOS .com file. The compiler/linker you have with Code::Blocks almost certainly can't do that though. In particular, at least to my knowledge, gcc has never even

GLFW Undefined References

人盡茶涼 提交于 2020-01-11 09:25:11
问题 I'm trying to use GLFW on a project, but when I compile it, I get a lot of undefined reference errors, while many of them is on the library file (libglfw.a). I tried both, compile the library and download it, but without success. I'm using MinGW and MSYS running on Windows 7 32-bits on netbeans. The GLFW version is 2.7.3; These are the errors: "/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf make[1]: Entering directory `/c/Users/Raphael/Documents/NetBeansProjects

Bloated EXE sizes, and unwanted dependencies with Qt/MingW

安稳与你 提交于 2020-01-11 03:11:38
问题 I'm trying to figure out how to shrink the sizes of EXE files compiled under the newest QT SDK (4.8.2) (mingw/g++ based). I was working on a vanilla c++ console app that has a simple loop and only #includes iostream, when I noticed that the exe's it generated are about 465kb; way bigger than they should be! Commenting out all the stream stuff brings it down to the expected 5kb range (although the remaining code would be mostly dead). This doesn't seem right at all, especially since another,

Implicit declaration of function 'getaddrinfo' on MinGW

时光怂恿深爱的人放手 提交于 2020-01-11 03:10:49
问题 I have a C program that uses getaddrinfo() . It works as expected on Linux and Mac OS X. I'm in the middle of porting it to Windows. When I compile it (with MinGW gcc) I get the following warnings: ext/socket/socket.c: In function 'sl_tcp_socket_init': ext/socket/socket.c:98:5: warning implicit declaration of function 'getaddrinfo' [-Wimplicit-function-declaration] ext/socket/socket.c:104:9: warning implicit declaration of function 'freeaddrinfo' [-Wimplicit-function-declaration] Then the

Using libdl.so in MinGW

。_饼干妹妹 提交于 2020-01-10 04:30:05
问题 I want to generate a dll file in MinGW, I have several object dependencies in order to do that, one of my object dependencies is libdl.so, I add this object in unix simply as : g++ xx.o yy.o /usr/lib/libdl.so -o module.so but in MinGW, I don't have any idea how to add this object. any ideas? 回答1: There is a MinGW port of libdl that you can use just like under Unix. Quote from the website: This library implements a wrapper for dlfcn, as specified in POSIX and SUS, around the dynamic link

How to best deal with Windows' 16-bit wchar_t ugliness?

拜拜、爱过 提交于 2020-01-10 04:28:06
问题 I'm writing a wrapper layer to be used with mingw which provides the application with a virtual UTF-8 environment. Functions which deal with filenames are wrappers which convert from UTF-8 and call the corresponding "_w" functions, and so on. The big problem I've run into is that Windows' wchar_t is 16-bit. For filesystem operations, it's not a big deal. I can just convert back and forth between UTF-8 and UTF-16, and everything will work. But the standard C multibyte/wide character conversion