mingw

Tcl interpreter undefined reference error while compiling with gcc

帅比萌擦擦* 提交于 2021-01-29 18:06:24
问题 I am new to Tcl scripting and would like to use C to embed Tcl codes. This is the code that I have copied from a website to test the Tcl-C working. test.c #include <stdio.h> #include <tcl.h> void main () { Tcl_Interp *myinterp; char *action = "set a [expr 5 * 8]; puts $a"; int status; printf ("Your Program will run ... \n"); myinterp = Tcl_CreateInterp(); status = Tcl_Eval(myinterp,action); printf ("Your Program has completed\n"); getch(); } I am using MinGW to compile this file. I have

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

how to send international characters to windows console?

会有一股神秘感。 提交于 2021-01-29 03:56:20
问题 code: #include <windows.h> int main() { SetConsoleOutputCP(CP_UTF8); system("echo Ιλιάδα"); } prints on console: Ιλιάδα Source is encoded in UTF-8 with BOM. But if I try: system(L"echo Ιλιάδα"); , I get error: error: cannot convert 'const wchar_t*' to 'const char*' for argument '1' to 'int system(const char*)' . And of course I didn't expect anything else here. Is there any other function that will accept these characters ? 回答1: Use _wsystem one for wide strings. 回答2: Is this VC++? If

how to send international characters to windows console?

[亡魂溺海] 提交于 2021-01-29 03:40:25
问题 code: #include <windows.h> int main() { SetConsoleOutputCP(CP_UTF8); system("echo Ιλιάδα"); } prints on console: Ιλιάδα Source is encoded in UTF-8 with BOM. But if I try: system(L"echo Ιλιάδα"); , I get error: error: cannot convert 'const wchar_t*' to 'const char*' for argument '1' to 'int system(const char*)' . And of course I didn't expect anything else here. Is there any other function that will accept these characters ? 回答1: Use _wsystem one for wide strings. 回答2: Is this VC++? If

Why there is no mkdir in MSYS?

青春壹個敷衍的年華 提交于 2021-01-28 23:30:58
问题 Hello I've installed MinGW with Msys and there is no mkdir in bin folder of Msys. Why? How can I use Netbeans to compile C++ code? I get such error mkdir -p build/Debug/MinGW-Windows make.exe[2]: mkdir: Command not found when trying to compile in Netbeans 8.1 回答1: Several commands are missing when installing MinGW and Msys. E.g. when running the "/postinstall/pi.sh" as recommended in the "Getting started" guide, the following commands were missing: - mkdir - cp - rm I fixed it by downloading:

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

Cross-Compiling Boost on Windows for Raspberry Pi using SysGCC Toolchain and MinGW

会有一股神秘感。 提交于 2021-01-28 07:39:39
问题 I currently trying to cross-compile Boost 1.64.0 on Windows 7 (64bit) for the Raspberry Pi (running Jessie) using the Raspberry SysGCC 4.9.2 Toolchain and MinGW 6.3.0. I installed everything to the following directories: Boost to C:\Boost\1.64.0 SysGCC to C:\SysGCC\Raspberry MinGW to C:\MinGW\6.3.0 Added the bin folders of SysGCC and MinGW to the global PATH variable: C:\SysGCC\Raspberry\bin C:\MinGW\6.3.0\mingw32\bin And created a user-config.jam with the following content in my home

Link OpenBLAS to MinGW

不打扰是莪最后的温柔 提交于 2021-01-28 07:09:27
问题 I'm trying to link OpenBLAS library with MinGW w64 compiler on Windows. This is my code: #include <cstdio> #include <cblas.h> #include <cstdlib> int main(){ double m[10],n[10]; int i, result; for(i=0;i<10;i++) m[i] = 1.0l*rand()/RAND_MAX; for(i=0;i<10;i++) n[i] = 1.0l*rand()/RAND_MAX; result = cblas_ddot(10, m, 1, n, 1); return 0; } and compiling with this command: g++ ^ -IC:\OpenBLAS-0.3.6-x64\include -LC:\OpenBLAS-0.3.6-x64\lib -lopenblas blas.cpp and get an error undefined reference to

C++ compile error, mutex in std does not name a type in MinGW (GCC 6.3.0)

落爺英雄遲暮 提交于 2021-01-28 04:45:35
问题 I'm trying to compile Mongo C++11 driver with MinGW (G++ 6.3.0) on Windows 10 64bit. From GCC 6 release notes; The default mode has been changed to -std=gnu++14. My understanding is that C++11 is also supported by default. Why then do I get these error message about mutex and thread? from F:/Projects/Mongo/attempt_4_mingw64/mongo-cxx-driver-r3.1.1/src/mongocxx/exception/private/mongoc_error.hh:19, from F:\Projects\Mongo\attempt_4_mingw64\mongo-cxx-driver-r3.1.1\src\mongocxx\bulk_write.cpp:20:

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