Questions tagged [tdm-mingw]

51 questions
57
votes
5 answers

GCC's assembly output of an empty program on x86, win32

I write empty programs to annoy the hell out of stackoverflow coders, NOT. I am just exploring the gnu toolchain. Now the following might be too deep for me, but to continuie the empty program saga I have started to examine the output of the C…
George
  • 15,241
  • 22
  • 66
  • 83
22
votes
2 answers

What is the difference between Orwell's MinGW and TDM Dev-C++ versions?

I am a newbie at this and yesterday I installed Win 8.1 x64 so I would like to use the most suitable program for making my tasks in C/C++. Thanks
MaXiMkA
  • 449
  • 3
  • 6
  • 14
18
votes
10 answers

GCC: Empty program == 23202 bytes?

test.c: int main() { return 0; } I haven't used any flags (I am a newb to gcc) , just the command: gcc test.c I have used the latest TDM build of GCC on win32. The resulting executable is almost 23KB, way too big for an empty program. How…
George
  • 15,241
  • 22
  • 66
  • 83
16
votes
7 answers

C++ inline functions using GCC - why the CALL?

I have been testing inline function calls in C++. Thread model: win32 gcc version 4.3.3 (4.3.3-tdm-1 mingw32) Stroustrup in The C++ Programming language wirtes: The inline specifier is a hint to the compiler that it should attempt to generate code…
George
  • 15,241
  • 22
  • 66
  • 83
13
votes
1 answer

Multiple definition of inline functions when linking static libs

I have a C++ program that I compile with mingw (gcc for Windows). Using the TDM release of mingw which includes gcc 4.4.1. The executable links to two static library (.a) files: On of them is a third-party library written in C; the other is a C++…
Dennis
  • 2,607
  • 3
  • 21
  • 28
11
votes
2 answers

Differences between Mingw-w64 and TDM-GCC for a simple GDI project

I need to build a simple non-commercial tool (dealing with Windows GDI API) on Win64 for Win64 (no cross compilation). MinGW seems the best option for me. I have already used the 32 bit version in the past, as for 64-bit, can you tell me the main…
antonio
  • 10,629
  • 13
  • 68
  • 136
8
votes
3 answers

C++ GCC4.4 warning: array subscript is above array bounds

I recently upgraded to GCC 4.4 (MinGW TDM build) and now the follow code produces these warning: In member function 'void Console::print(const std::string&)': warning: array subscript is above array bounds Here's the code: void Console::print(…
Adam
  • 25,966
  • 23
  • 76
  • 87
7
votes
1 answer

How to see what g++ command-lines Boost.Build invokes (1.33.1)

I'm scratching my head, trying to figure out why the import libraries are not generated when I build the Boost libraries on my machine. More specifically, building the DLLs works fine, but where I would previously (i.e. before I reinstalled my…
Carl Seleborg
  • 13,125
  • 11
  • 58
  • 70
6
votes
2 answers

Where Can I Get libgcc_s_dw2-1.dll?

The programme I have written uses SFML but fails when run because libgcc_s_dw2-1.dll is missing. I'm using tdm-gcc and can't find the file anywhere on my computer and re-install doesn't help and a simple hello world programm works fine so I'm not…
Ell
  • 4,238
  • 6
  • 34
  • 60
6
votes
2 answers

g++ not compiling with wildcard filenames on Windows

All of a sudden I seem to be struggling with compiling c++ programs (specifically TDM64 5.1.0) from the command-line on Windows (specifically 10) when using wildcard based filenames. It works fine when the names are given in full. I've done this…
DuncanACoulter
  • 2,095
  • 2
  • 25
  • 38
5
votes
1 answer

TDM-GCC w64 script to change windres for 32bit?

Trying to get the TDM-GCC(4.7.1) running on XP SP3 - I just need a c++ 32bit build for now. It seems that windres is not in the right format, my .rc file is failing the build: x86_64-w64-mingw32-g++.exe -Wall -m32 -s -D_M_X86 -DBUILD_DLL -DNDEBUG …
ichad.c
  • 131
  • 2
  • 8
4
votes
2 answers

Can I use std::thread on windows?

Possible Duplicate: How to enable experimental C++0x concurrency features in MinGW? TDM-GCC complains with error: 'thread' is not a member of 'std' when building with g++ test.cpp -std=c++0x
user181351
4
votes
0 answers

Why does mingw-w64 gfortran fail to statically link libraries when the -static flag is passed?

Disclaimer: I'm fairly deep into my particular compiling issue but quite new to the world of compiling. Background: I'm working on a Windows 7, 64 bit machine. I'm attempting to compile a rather large fortran program using mingw-w64. The compile…
blrmkrAE
  • 61
  • 4
3
votes
1 answer

fstream linking error in g++ with -std=gnu++0x

I'm have an application built with the -std=gnu++0x parameter in tdm-mingw g++ 4.4.0 on windows. It is using an ofstream object and when I build, it gives the following linking error: c:\opt\Noddler/main_func.cpp:43: undefined reference to…
Sahas
  • 10,637
  • 9
  • 41
  • 51
2
votes
0 answers

compling with mingw32 to install xgboost

Ok so I am installing xgboost using the answer found in this link:- How can I install XGBoost package in python Now I have followed the steps till installing TDM-GCC when I try the command:- alias make='mingw32-make' I get the following the error…
1
2 3 4