mingw32

Quite strange MinGW ld problem - “collect2: ld returned 1 exit status”

。_饼干妹妹 提交于 2021-02-11 18:07:45
问题 I'm building an application for data visualization and the framework I'm using is beautiful OpenFrameworks. On Linux, it compiles and works perfectly, but now it's time to port it to Windows and I'm facing some very strange problems. I can't find relevant information from google. When linking, I get this: mingw32-g++.exe -o bin\visualisation.exe ...blah.o, blah2.o... ...lib1 lib2 lib3... collect2: ld returned 1 exit status Process terminated with status 1 (0 minutes, 3 seconds) 0 errors, 0

Quite strange MinGW ld problem - “collect2: ld returned 1 exit status”

匆匆过客 提交于 2021-02-11 18:06:06
问题 I'm building an application for data visualization and the framework I'm using is beautiful OpenFrameworks. On Linux, it compiles and works perfectly, but now it's time to port it to Windows and I'm facing some very strange problems. I can't find relevant information from google. When linking, I get this: mingw32-g++.exe -o bin\visualisation.exe ...blah.o, blah2.o... ...lib1 lib2 lib3... collect2: ld returned 1 exit status Process terminated with status 1 (0 minutes, 3 seconds) 0 errors, 0

internal error in mingw32_gt_pch_use_address, at config/i386/host-mingw32.c:190: MapViewOfFileEx: Attempt to access invalid address

空扰寡人 提交于 2021-01-29 16:29:42
问题 internal error in mingw32_gt_pch_use_address, at config/i386/host-mingw32.c:190: MapViewOfFileEx: Attempt to access invalid address. I get this error while compiling a c++ program in sublime-text 3. How to resolve this error? 来源: https://stackoverflow.com/questions/61916030/internal-error-in-mingw32-gt-pch-use-address-at-config-i386-host-mingw32-c190

glog doesn't compile on Windows with MinGW

心不动则不痛 提交于 2021-01-28 11:30:17
问题 It seems that glog doesn't compile on Windows with MinGW. Cmake configuration and generation is OK, but when I start the mingw32-make.exe -j10 command, I get a lot of errors related with ambiguity declarations. This is the complete cmake configure and generate command output: D:\INSTALL\Development\lib\ceres-mingw\glog\build>"D:\Program Files\CMake\bin\cmake.exe" -G "MinGW Makefiles" -Dgflags_DIR="D:\INSTALL\Development\lib\ceres-mingw\gflags\build" .. -- The C compiler identification is GNU

Directory change error with mingw32-make

谁都会走 提交于 2021-01-28 03:26:18
问题 I'm building POCO library 1.6.0 under MinGW32, environment: Windows 7 Ultimate 32-bit, shell: MSYS. Successfully executed ./configure . $ ./configure Configured for MinGW Contents of config.make: POCO_CONFIG = MinGW POCO_BASE = /c/dev/poco POCO_BUILD = /c/dev/poco POCO_PREFIX = /usr/local POCO_FLAGS = OMIT = export POCO_CONFIG export POCO_BASE export POCO_BUILD export POCO_PREFIX export POCO_FLAGS After launching mingw32-make I'm getting: $ mingw32-make --debug -w GNU Make 3.82 Built for i386

g++ does not make any file or give any output

狂风中的少年 提交于 2020-12-06 15:37:39
问题 I've just started using g++, downloading the latest version from the site, and I've made a simple HelloWorld program. #include <iostream> using namespace std; int main() { cout << "Hello World!" << endl; return 0; } When I try to execute using the powershell window and g++, in the right directory, I use the following command: g++ HelloWorld.cpp -o HelloWorld.exe This gives no output and makes no files. I used the -v command as per some other answer I read on the site and it gave me this. I

在Windows上构建MingW(4.8.0)

筅森魡賤 提交于 2020-11-12 11:58:51
在Windows系统上使用GCC编译器有两类途径,一个是MingW,另一个是Cygwin,MingW的原则是开发的程序直接调用Win32 API,而Cygwin的原则是将Win32API转化为POSIX接口,程序调用POSIX接口,这种做法互有利弊,MingW开发的程序在Windows上效率也是很高的,而Cygwin的则显得臃肿,但是Cygwin开发的程序很容易移植到Linux等POSIX系统,基于POSIX的程序也很容易通过Cygwin在Windows上实现。随着开源技术的发展,Cygwin中也有版本比较老的MingW工具链。 MingW类似的项目也有TDM-GCC,包括MinGW64 的项目也在发展中,但如果要使用GCC源码构建MinGW建议使用官方网站的MinGW http://www.mingw.org/ 使用非官方网站的MinGW发行版本还要进行一些修改,工具替换,比较麻烦比如: 1.SED.exe stream editor 有些版本未必能够很好的在Windows上使用,常常容易出现字符串解析错误的情况,比如,使用 nuwen.net 的MinGW发行版本 configure时就出现解析错误。 2.MSYS 很多Mingw发行版本并没有MSYS,或者没有单独的将MSYS目录独立出来模拟Linux环境, 特别在编译GCC的时候就显得不足