Questions tagged [tdm-gcc]

49 questions
8
votes
3 answers

std::vector optimization implementation

In the documentation, I can see that std::vector is optimized for space-efficiency by making every boolean occupy one single bit. From the documentation: The manner in which std::vector is made space efficient (as well as whether it is…
Simon
  • 774
  • 4
  • 21
7
votes
2 answers

Default mode of fstream

I was looking at the SO post C++ file stream open modes ambiguity. I wanted to know the default file opening mode of fstream. One of the answer says, What the above implies is that the following code opens the file with exactly the same open…
Rajesh
  • 1,085
  • 1
  • 12
  • 25
6
votes
1 answer

Unable to use declval in typeid for TDM-GCC

Compiler: TDM-GCC-5.1.0 (SJLJ unwinding) I was playing around with declval and I noticed that I was unable to use it in a context where it should work: as an argument to typeid(). In the following code, I use declval for one of it's primary use…
Paul Rich
  • 209
  • 2
  • 10
3
votes
1 answer

Assembly: Increment by 2 (or larger number) without destroying CF in an ADC loop?

I am trying to test an addition function in TDM-GCC 64 bit assembly in Windows. I searched for resources on this a while back and I came across a code similar to this(I made some changes to compile this in TDM-GCC). typedef struct { int size; …
2
votes
1 answer

Format specifier %Lf is giving errors for `long double` variables

I am getting the following errors: In function 'main': [Warning] unknown conversion type character 'L' in format [-Wformat=] [Warning] too many arguments for format [-Wformat-extra-args] In function 'error_user': [Warning] unknown conversion type…
Henry
  • 697
  • 1
  • 6
  • 16
2
votes
1 answer

Where can I download dwmapi.lib?

To use DwmExtendFrameIntoClientArea function we must have dwmapi.lib library. I searched this library in my pc, but my pc doesn't find it. So where can I download it? Without it, my application doesn't compile properly; and shows me some…
Tony
  • 51
  • 7
2
votes
0 answers

Is the tdm-gcc project still active?

Last update of the TDM-GCC distribution from the website dates back to July 2015. The version of the bundled GCC compiler is 5.1.0 . Code::Blocks IDE can use much newer versions of both 32 and 64 bits.
Sergio
  • 891
  • 9
  • 27
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…
2
votes
1 answer

Why does not std::sqrt() work correctly on double data in C++?

Here is a simple code in C++ which I am compiling using TDM-GCC 5.1 32bit (gcc-5.1.0-tdm-1-core) on a Windows 8.1 64bit Intel core i-7 machine. #include #include using namespace std; int main() { double a, b; a = 0.002; …
user4085386
2
votes
2 answers

How to compile and link C and ASM together on Windows for my OS

I have a problem with my 32-bit protected mode OS project Sinatra. I can compile sources to object files, but I don't know how to link these together. I use NASM and TDM-GCC on Windows. I have fixed problems with my code so it compiles. I have…
1
vote
1 answer

cgo: C compiler "gcc" not found

I am using Windows 10. I am trying to run a simple Go program but I am getting an error # github.com/confluentinc/confluent-kafka-go/kafka cgo: C compiler "gcc" not found: exec: "gcc": executable file not found in %PATH% I know it's recommended to…
Violetta
  • 509
  • 4
  • 12
1
vote
1 answer

Can't import uxtheme library

I want to import uxtheme to my c program and use some variable types that are in uxtheme.h library. When I use this and compile my project, my computer shows me some unreasonable error. Like this: unknown type name 'DTTOPTS' But I am sure that…
Tony
  • 51
  • 7
1
vote
0 answers

tdm-gcc's mingw32-gcc throws 'missing argument' error

i've been trying to compile a dll project with TDM_GCC myself (without any IDE) i entered first command in powershell (after assigning right value to $Env:Path) like below: mingw32-gcc.exe -Wall -DBUILD_DLL -g -c .\IntLib.c -o .\IntLib.o i go well…
Hexiloo
  • 13
  • 3
1
vote
1 answer

Can there be conflict between `-march` and instruction set switches?

I am compiling an example program with the following command: $ gcc -march=i386 -mtune=i386 -mmmx -msse4 -m3dnow -m32 -o hello.exe hello.c Questions: Why doesn't GCC complain that the switches for enabling MMX, SSE4 and 3DNow! are incompatible…
user7023624
  • 571
  • 5
  • 14
1
vote
1 answer

C++ Build environment on Windows

It might be hard to believe but I still struggle to completely understand what a build environment is. I have gathered over the years that it is a directory tree within which my compiler can find all the necessary headers and lib files to build my…
Svetsi
  • 305
  • 1
  • 4
  • 12
1
2 3 4