FAQ Database Discussion Community


Linux install command for mingw?

windows,make,install,mingw,mingw32
When trying to build a library from source using make and MinGW, I realized (from errors) that I don't have the install command, which I understand to be a combination of cp, chown, chmod, strip, and maybe some other stuff. I figured, hey, someone's got to have a copy of...

Error running .exe compiled with i586-mingw32msvc-g++ and SFML on linux

c++,makefile,sfml,mingw32,wine
EDIT: Thanks random downvoter! EDIT 2: Thanks @πάνταῥεῖ for explaining what was wrong with the question. When running a debugger I get Program received signal SIGSEGV, Segmentation fault. 0x0046f4c6 in ?? () EDIT 3: This only happens if I run the cross compiled program. If I compile the program in...

undefined reference to cv::calcOpticalFlowPyrLK

c++,qt,opencv,mingw32
I'm learning OpenCV right now and I'm testing the available LK demo program. I'm fairly new to programming, so I don't know what's wrong. I got these issues: C:\Qt\projects\build-lkdemo-Desktop_Qt_5_3_MinGW_32bit-Debug\debug\main.o:-1: In function `Z5qMainiPPc': C:\Qt\projects\lkdemo\main.cpp:96: error: undefined reference to `cv::calcOpticalFlowPyrLK(cv::_InputArray const&, cv::_InputArray const&, cv::_InputArray const&, cv::_OutputArray const&, cv::_OutputArray const&, cv::_OutputArray const&, cv::Size_<int>,...

C++11 MinGW 4.9.1 shared_ptr and const static class field result “Undefined reference”

c++,c++11,static,const,mingw32
#include <memory> class CItem { private: int m_inner; public: static const int CAP = 1; CItem(int temp) : m_inner(temp) {} }; typedef std::shared_ptr<CItem> TPItem; int main() { int tttt = CItem::CAP; CItem *temp = new CItem(CItem::CAP); TPItem temp2(temp); TPItem temp3 = std::make_shared<CItem>(tttt); TPItem temp4 = std::make_shared<CItem>(CItem::CAP); //On MinGW there error:...

Why is getchar() being skipped?

c,io,mingw,mingw32,getchar
This is my code below, which I was working on. The output is this: Enter Nums: 20 4 OP: Which option was that? The op = getchar(); part is being entirely ignored. Why? I'm using gcc 4.6.2 MinGW. #include <stdio.h> int add(int num1, int num2) { return num1 + num2;...

SFML Networking Error: undefined references des when linking

c++,networking,codeblocks,sfml,mingw32
I recently started learning SFML, but when I got to the section of Networking, I always get a lot of errors: obj\Release\main.o:main.cpp:(.text$_ZN2sf11TcpListenerD1Ev[__ZN2sf11TcpListenerD1Ev]+0x1): undefined reference to `_imp___ZTVN2sf11TcpListenerE' obj\Release\main.o:main.cpp:(.text$_ZN2sf11TcpListenerD1Ev[__ZN2sf11TcpListenerD1Ev]+0xb): undefined reference to `_imp___ZN2sf6SocketD2Ev' obj\Release\main.o:main.cpp:(.text$_ZN2sf9TcpSocketD1Ev[__ZN2sf9TcpSocketD1Ev]+0x1): undefined reference to `_imp___ZTVN2sf9TcpSocketE'...

quazip: windows ming32w-make error

qt,mingw32,quazip
I am trying to compile the quazip source, under wdinwso 7 with QT5.4. I tried compiling unders VS 2013, but the rc.exe file is not found. I made sure that the rc.exe and dll were in the kits and SDK folders for both vs2013 and vs2010. So I followed this:...