Questions tagged [tdm-gcc]

49 questions
1
vote
2 answers

C++ - to_string not working across multiple compilers (MinGW, MinGW64, TDM GCC) in Code::Blocks in Windows

I am getting desperate. On Windows 7 using Code::Blocks, I've installed about a half-dozen variations of MinGW / TDM-GCC, but I can't get to_string to convert my int to a string, e.g.: std::cout << std::to_string(1) << ' - one' <<…
Gerald
  • 521
  • 1
  • 6
  • 16
1
vote
2 answers

TDM-GCC raises error: Undefined reference to a method I never called

This is with the compiler that comes with Dev-C++ when run on Windows 7, "TDM-GCC 4.9.2 64-bit Release". The same thing happens with the 64-bit version as well. The "add the following flags when calling the linker" in "Compiler Options" is set to…
Nic
  • 6,211
  • 10
  • 46
  • 69
1
vote
1 answer

Delay Loading DWMAPI on Windows XP and CodeBlocks

I have a project that I'm been fighting to build for Windows (XP) for a month solid now. The project uses gtkmm-3, C++, and the latest GCC-TDM compiler. My IDE is CodeBlocks 13.14. I'm making progress, however, I am now getting hung up on this error…
CodeMouse92
  • 6,840
  • 14
  • 73
  • 130
0
votes
1 answer

How to install TDM-GCC in powershell and open Mingw command prompt?

I'm now running https://github.com/StefanScherer/windows-docker-machine window docker container and opened powershell prompt to install GCC, Golang and a bunch of other stuff. How can I install TDM-GCC…
Muwei He
  • 11
  • 2
0
votes
1 answer

(How to) Input 2 Values at Once using Single 'cin' Statement in a Specific format

Is it possible display an input message as follows? Enter First Fraction:_/_ Enter Second Fraction: _/_ Where _ are Input spaces? Using some sort of the following code?? cout<<"Enter First Fraction: "; cin>>N1>>"/">>D1; cout<<"Enter Second…
Genious28
  • 11
  • 9
0
votes
1 answer

VS Code C++ issue

I tried to compile a cpp file using VScode, but I have got an issue. The tdm-gcc have already added to environment variable. I tried to reboot my computer but it didn't work. Here is the error. error: /usr/bin/bash: D:TDM-GCC-64bing++.exe: command…
0
votes
0 answers

Can't drag or resize custom frame window

I'm programming an application that has a window that has custom frame. I visited these sites and use them both to create my own app: Winprog And also: Microsoft Docs: Custom frame window using dwm I use TDM_GCC and c language to write this…
Tony
  • 51
  • 7
0
votes
1 answer

How to resize the height of title bar in Windows API?

I wanna increase height of titlebar of my app which written in c language using TDM_GCC libraries. I didn't mean change the height of titlebar of all apps in windows. Only my app. What I want like this:
Tony
  • 51
  • 7
0
votes
0 answers

Make a borderless resizable window in WinAPI

I wanna make a borderless resizable window in c language using TDM-GCC compilers. I use built-in TDM-GCC library and CreateWindowEX(...) function to make a window. I know that I can use WS_POPUP | WS_SIZEBOX | WS_MAXIMIZEBOX | WS_MINIMIZEBOX to…
Tony
  • 51
  • 7
0
votes
1 answer

How to set up OpenMP?

I am using Codeblocks and have to run an OpenMP C program. So, I added the flag -fopenmp in Codeblocks (compiler settings) and am now getting the error of 'mingw32-g++.exe: error: libgomp.spec: No such file or directory' So after a bit of searching…
0
votes
1 answer

Updated packages, now Mex files compiled with -O0 are "invalid mex file"?

I had a (previously working and compiling for months) set of MEX files. I updated my 3-month-old packages (which worked fine before with GCC/G++) with a pacman -Syu, and now here are my results: For GCC/G++: O0 - MEX file is "invalid" O1-O2 -…
Tyler Shellberg
  • 1,086
  • 11
  • 28
0
votes
0 answers

Building Allegro 5 Library using TDM-GCC and CMake

I am attempting to build Allegro 5 Library using TDM-GCC and CMake. As seen in the screenshot, I pointed to the correct folders using CMake, but the error I am getting is as follows: CMake Error at CMakeLists.txt:7: Parse error. Expected a…
Alex Betances
  • 11
  • 1
  • 6
0
votes
1 answer

Wrong action of Open command in Fortran( Insted read open command opens .txt file )

This is my simple code: Program Example_Code Implicit none Integer :: iERR Open( Unit = 15, File = 'Read_Something.txt', Action = 'Read', Status = 'Unknown', iostat = iERR ) If ( iERR /= 0 ) stop ( "There is no file Read_Something.txt…
user10930250
0
votes
0 answers

TDM-GCC compiled win32x64 DLL cannot be loaded in python 3.6 but can when using python 2.7

my environment console output of cmd.exe Microsoft Windows [10.0.15063.1112] (c) 2017 Microsoft Corporation C:\Users\>py -3 Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright",…
返还击
  • 69
  • 1
  • 8
0
votes
0 answers

How to add -std=c++17 to my mingw32-make?

I have started to use Emacs for c++ programming. For the compiler, I downloaded TDM-GCC-64. But when I type M-x compile it would ask for make -k and after that it would throw an error of not recognizing make. So I then downloaded mingw32-make. And…
quepayal
  • 57
  • 2
  • 12