Questions tagged [tdm-gcc]

49 questions
0
votes
1 answer

extra spaces written in r+ mode

In the code below, extra spcaes (may be around 300 space) are getting appended if I write data after seeking the file pointer to the start position after the line fseek(fp1,0,SEEK_SET); If I comment second fputs() function call, there is no issue.…
Rajesh
  • 1,085
  • 1
  • 12
  • 25
0
votes
0 answers

Size of structure with bit field is not as expected

I was looking at several SO posts on bit fields like link1 link2. I am using TDM-GCC-64 compiler. In wrote this code below to test the size of structures under various scenario. #include struct P { int k:2; char c:1; }; struct…
Rajesh
  • 1,085
  • 1
  • 12
  • 25
0
votes
0 answers

a.exe terminal closes just after program execution stops

I have installed TDM-GCC compiler on my system. And I write my c programs in a text editor and save it with the .c extension and compile it using the gcc command in the MinGW terminal and as usual the a.exe file is created as a result of it but when…
0
votes
3 answers

ShellExecute - ERROR code 5

I am using Notepad++ with TDM-GCC. My computer is 2Gb RAM Windows 10 32 bit 3.30 GHz. When I execute my simple program, it shows error. Access is denied. An attempt was made to execute the below command. Command:…
vtrnnhlinh
  • 11
  • 1
  • 6
0
votes
1 answer

C++ cout or wcout a string contain "\n" isn't split the lines

C++11 and compiler is TDM-GCC. I made an ini file and read string from it(UCS-2 LE BOM), by WinAPI, GetPrivateProfileStringW. [String] Example = Today\nYesterday\nApple My function library will return a variable, std::wstring. And it looks…
0
votes
1 answer

netbeans c program build fail with tdm-gcc msys

i have recently started to use netbeans to program in c. i usually use codeblocks. i have installed tdm-gcc and msys for this purpose. the programs are getting compiled successfully. but on execution, it shows build failed(exit value 2). …
user7415094
0
votes
0 answers

Linking issues when extending Python under Windows

I am using TDM-GCC-64 for the project. Here is the minimal source code (the full source includes code for Python module initialization): // minimal.cpp #include extern "C" { static PyObject * f() { PyObject * tuple =…
Ziyuan
  • 4,215
  • 6
  • 48
  • 77
0
votes
0 answers

wxColourPickerCtrl tdm-1 gcc

After upgrading from 32 bit MinGW 4.8 to 32 bit TDM-1 GCC 5.1.0, wxColourPickerCtrl causes my program to crash regardless of whether I change color or not or click OK or cancel after the ColorPickerCtrl dialog shows. I am using wxWidgets-3.0.2…
macroland
  • 973
  • 9
  • 27
0
votes
0 answers

TDM-GCC c++ compiler (Setting up)

I'm now using TDM-GCC 64 bit compiler and have originally built all my libraries (dependencies for other libraries) and projects using this compiler to create 64 bit binaries (which is what I want). Recently I have run into some build issues where I…
Svetsi
  • 305
  • 1
  • 4
  • 12
0
votes
1 answer

GDB doesn't start

Today I have run QtCreator to make a simple console app and experienced a problem. The project builds OK, then "Launching a Debugger" starts, but, unfortunately, doesn't finish. I see console with cursor and the program is not running. Trying…
Daniel Savenkov
  • 343
  • 2
  • 11
0
votes
1 answer

Error: multiple definition of `fprint' - while using SDL_ttf

I have a custom library that utilises this code (https://www.dropbox.com/s/iwft7snjmntf160/SoASpriteFont.zip?dl=0). The linked code was written for Visual Studio; I am using CodeLite on Windows. Its has a SpriteFont.cpp that uses fprintf. The static…
berilac
  • 48
  • 1
  • 7
0
votes
1 answer

C++: ld incompatibility error when building a wxWidgets project under Msys using c++ libraries that are built with with g++ and -m32 option

I have a C++ project including foreign C++ code (CoolProp). This foreign code I have compiled as static library. Compiler is TDM-GCC Vers 5.1.0 with -m32 option. I invoke in my C++ code again using TDM-GCC Vers 5.1.0 with -m32 option. I was able to…
Robert
  • 97
  • 6
0
votes
1 answer

How to update TDM GCC on windows using the web-installer?

The feature list, states: "It has an easy-to-use single-file installer that creates a working installation with just a few clicks, and can update that installation when new packages become available." Great, but how to do the update? If I run the…
-1
votes
1 answer

Path to shell executable "d:\VsCode Projects\C\gcc" does not exist

I formated my computer yesterday and reinstalled vscode, the compiler and included it to the path, but the program doesn't generate output, here a screenshot image of the code and error) if anyone can help me fix it, it would be very helpful. I…
Eminion
  • 23
  • 6
-1
votes
2 answers

Is there any event for shapes?

I have an ellipse which is drew on a window. I want to show a message when the pointer is on it (on the ellipse). How I do it? Is there any event for shapes? Like WM_MOVE or WM_SIZE. I use TDM-GCC and C language.
Roman P
  • 5
  • 2