mingw32

strncpy_s error when deploying ffmpeg streaming application on XP

会有一股神秘感。 提交于 2019-12-14 01:23:43
问题 I'm trying to deploy an application that uses ffmpeg to stream camera output to an XP machine. The application is written compiled with gcc mingw32 and runs fine on Windows 8. But on Windows XP I get the following error: The procedure entry point strncpy_s could not be located in the dynamic link library msvcrt.dll GCC command, excluding paths: g++ -o mingw\streamer.exe src\testffmpeg.o -lavformat -lavutil -lavcodec -lFlyCapture2_C_v100 Dependency walker shows the following: How can I work

How to enable exception handling in mingw

浪尽此生 提交于 2019-12-13 19:45:06
问题 I am new to Mingw and C++ programming. I am trying to build a C++ project but getting following error. error: exception handling disabled, use -fexceptions to enable. Where I need to pass this -fexceptions parameter. When I am trying mingw32-make -fexceptions I am getting follwoing error. mingw32-make: exceptions: No such file or directory 回答1: Since you're using Qt, add "exceptions" to the CONFIG variable in your project file (the *.pro file): CONFIG += exceptions This should take care of

strange problems with C++ exceptions with mingw

亡梦爱人 提交于 2019-12-13 12:27:50
问题 I have encountered a strange problems with exceptions using mingw and managed to cut it down to the following example: #include <iostream> #include <fstream> #include <cstdlib> using namespace std; void test(int a) { if (a < 0) { throw std::ios_base::failure("a < 0"); } } void test_file(std::string const & fName) { std::ifstream inF(fName.c_str(), std::fstream::in); if (!inF) { cout << "file error -> throwing exception" << endl; throw ios_base::failure("could not open input file '" + fName +

How do I change MinGW's compiled exe location while using gpp-compiler in the Atom IDE?

时光怂恿深爱的人放手 提交于 2019-12-13 09:52:35
问题 MinGW normally when used through the command line spits out the compiled exe of the program in the current working directory, but when used through the gpp-compiler package by kriscross07 in Atom, the exe ends up in a temp folder. I would like it to place the exe in the folder of the source files the same way MinGW would normally. This is both so I can find it easier and so that my antivirus doesn't have a heart attack every time it sees me run an exe from the temp folder. I'm using the

Problems in getting Process Time in C ( Please help me )

老子叫甜甜 提交于 2019-12-13 07:54:33
问题 I am a newbie in C and WinAPI. I spent more than 3 hours trying to do this, but totally failed. Could anyone help me? Here is my code: FILETIME *KernelTime; // Or struct _FILETIME *KernelTime HANDLE Process = OpenProcess ( PROCESS_ALL_ACCESS, FALSE, 0); // 0 is the PID of System Idle Process GetProcessTimes (Process, NULL, NULL, KernelTime, NULL); /* How to write here? */ double ElapsedProcessTime // Target !! I think these might be useful for solving this problem: http://msdn.microsoft.com

MinGW32 make command on windows

霸气de小男生 提交于 2019-12-13 06:18:15
问题 I am trying to install a simulation software on windows using MingW32 and cmake. The problem I have is after I use : cmake .. -DCMAKE_INSTALL_PREFIX="/cygdrive/c/Gromacs467" -DGMX_X11=OFF -DGMX_GPU=OFF -DGMX_MPI=OFF -DGMX_PREFER_STATIC_LIBS=ON -DGMX_CPU_ACCELERATION=SSE2 -DBUILD_SHARED_LIBS=NO -DGMX_BUILD_OWN_FFTW=ON -VMDDIR="C:\Program Files (x86)\University of Illinois\VMD" -G "MinGW Makefiles" From a Microsoft visual studio, (Otherwise I ran in other issue). I then start a MinGW console

Why GDB not loads dlls?

老子叫甜甜 提交于 2019-12-13 06:12:41
问题 Help me to understand, why simple qt application with dynamically loading libraries run under gdb , but more complex is not. Qt Toolkit I use the for both. This is how my test application builds (lib and exe afterwards): C:/devtools/mingw-i686-4.8.2-release-posix-dwarf-rt_v3-rev3/mingw32/bin/mingw32-make -f Makefile.Debug mingw32-make[1]: Entering directory 'C:/Users/juriy/testlib' g++ -c -pipe -Wall -Wextra -Werror -g -fprofile-arcs -ftest-coverage -O0 -g -frtti -fexceptions -mthreads -Wall

Possible to change distutils default compiler options?

北战南征 提交于 2019-12-11 17:42:37
问题 Win 10, x64, minGW64, Python 2.7, Anaconda I am trying to compile zbar for use in Python 2.7 using python setup.py build --compiler=mingw32 Here's setup.py from distutils.core import setup, Extension from distutils.sysconfig import get_config_vars setup( name = 'zbar', version = '0.10', author = 'Jeff Brown', author_email = 'spadix@users.sourceforge.net', url = 'http://zbar.sourceforge.net', description = 'read barcodes from images or video', license = 'LGPL', long_description = open('README'

How to npm install with git-bash/mingw32 on win7

主宰稳场 提交于 2019-12-11 09:31:31
问题 I am using git-bash/mingw32 on win7. I am trying to install npm: $ npm install sh: npm: command not found. Git-bash is working normally and is installed correctly. How can I make this work? 回答1: There is a couple of reasons for this behaviour: 1) npm not installed 2) npm not in %PATH% You can add npm to %PATH% by running cmd (win+r -> cmd) as administrator and execute: SET PATH=%PATH%;c:\here\is\path\to\npm\dir After that — try run npm again. 回答2: while installing node.js when click the set

foreman can't find java

假如想象 提交于 2019-12-11 05:49:11
问题 I'm trying to use foreman to run a java app locally which deploys fine to heroku. My Procfile looks like this web: java $JAVA_OPTS -cp target/classes;target/dependency/* Start but when i do formeman start i get 15:51:21 web.1 | unknown command: java $JAVA_OPTS -cp target/classes;target/dependency/* Start If I just enter java at the prompt i get java's help text back so its on my path. If I use the full path to the java executable in the Procfile it works, but it'd be cleaner if I didn't need