dev-c++

Getting a Dev-C++ built program to output UNICODE characters to the Windows command line

只愿长相守 提交于 2019-12-12 11:31:28
问题 If you can answer any of my questions, that would be awesome. Here's the scoop: I'm teaching an intro to programming class in Thailand to 11th graders. It's been going great so far, their level of English is high enough that I can teach in English and have them write programs in English and everything is fine and dandy. However, as speakers of a language with non-Latin characters, I feel that they should at least learn what UNICODE is. I won't test them on it or bog them down with

Why does AVG(antivirus) detect an executable produced from Dev-C++ as a virus?

情到浓时终转凉″ 提交于 2019-12-12 08:34:25
问题 I created a default Dev-C++ project and instead of the usual return 0; , it had return EXIT_SUCCESS; and upon compiling and running it, I was alerted by my antivirus that the executable was a virus. I tried the same code with Visual C++, Eclipse and Codeblocks and they all compiled it successfully … so I am a bit confused here.. — Why does AVG detect executables produced from Dev-C++ with the line return EXIT_SUCCESS; as a virus when other similar macros work perfectly fine? 回答1: Why is AVG

C++ “File format not recognized”?

拜拜、爱过 提交于 2019-12-12 05:45:33
问题 I'm trying to run the code located here: http://r3dux.org/2010/11/single-call-opengl-texture-loader-in-devil/ And it requires me to use DevIL, so I installed it to my c:\usr\ folder using the Win32 installer. I'm positive my environment is setup to read from the proper \lib folder as well. My linker looks like this: -lglfw -gluw32 -lopengl32 -lglu32 -ldevil Everything else loads fine, but when it gets to "ldevil", the compiler (Dev-C++) throws the error: File format not recognized. 回答1: Most

How to increase stack size in Bloodshed Dev-C++?

你离开我真会死。 提交于 2019-12-12 03:11:16
问题 We are using Blodshed Dev-C++ to in an image processing project. We are implementing connected component labelling on a video frame. We have to use a recursive function which recurses so many times that we get a stackoverflow. How can we have a larger stack size? Is it possible to change it through some linker parameters or anything similar? void componentLabel(int i,int j,IplImage *img){ // blueFrame = img->imageData[i*3*width+j*3]; // greenFrame = img->imageData[i*3*width+j*3+1]; //

Compiler Error in DEV-C++

对着背影说爱祢 提交于 2019-12-11 20:39:40
问题 I compiled the following code which is declared with #include <strsafe.h> in my C code and I am getting the following compiler errors in DEV-C++. I guess there should be some option in compiler to solve this. Can somebody help to solve this. The below is my sample code which is taken from MSDN site : #include <windows.h> #include <strsafe.h> void ErrorExit(LPTSTR lpszFunction) { // Retrieve the system error message for the last-error code LPVOID lpMsgBuf; LPVOID lpDisplayBuf; DWORD dw =

gets() & puts() not declared in scope in dev c++

帅比萌擦擦* 提交于 2019-12-11 03:39:17
问题 This is my simple code for a bookshop There is nothing wrong with the code. I am using DevC++ to run the code and after compling it gives out an error which says 'gets' was not declared in this scope & the same error for puts. Please help me. #include<iostream> #include<conio.h> #include<stdlib.h> #include<iomanip> #include<cstring> using namespace std; class Book { char *title,*author,*publisher,ans; int price,quant,quant_ent; public: Book() { title = new char[50]; author = new char[50];

Mac: What is the best way to have multiple c++/c files in a project and be able run/debug them individually in Mac

时光总嘲笑我的痴心妄想 提交于 2019-12-11 03:23:52
问题 I have tried eclipse cdt, but again it has got gdb problems with osx yosemite and it doesn't suppoort lldb. In xcode I can run a single file. since it builds the whole project. I am looking for something like c-free, dev-c++ etc. 来源: https://stackoverflow.com/questions/32604251/mac-what-is-the-best-way-to-have-multiple-c-c-files-in-a-project-and-be-able

Code::Blocks/ Dev-c++: error: iostream: No such file or directory

不想你离开。 提交于 2019-12-08 00:05:53
问题 I downloaded Code::Blocks from here: http://www.codeblocks.org/downloads/26 I'm learning c programming. When I run the following program, I get error: iostream: No such file or directory error: syntax error before "namespace" warning: type defaults to `int' in declaration of `std' warning: data definition has no type or storage class In function `main': error: `cout' undeclared (first use in this function) error: (Each undeclared identifier is reported only once error: for each function it

Win32 API Functions not Found

馋奶兔 提交于 2019-12-07 22:32:25
问题 I am usign DevC++ on Windows 7 Ultimate 32 bit and have included windows.h and psapi.h in my program. All the Windows APIs I've used so far ar working except for GetProcessId and DebugActiveProcessStop. The compiler returns in both cases that the specified function is undeclared. However, when I look in winbase.h, I can clearly see that GetProcessId is declared. Even when I hover the mouse over the function, information on the structure is displayed. So, why can't the compiler seem to

dev c. failed to execute .exe error 193: %1 not a valid win32 application

試著忘記壹切 提交于 2019-12-07 09:46:02
问题 so I was trying to test run my dev c++ as usual and it said failed to execute location/name.exe error 193: %1 is not a valid win 32 application. I have not used the compiler for anything complex yet. #include<stdio.h> #include<math.h> #define PI 3.14 int main() { int r = 3; float area = PI*pow(r,2); printf("the area of the circle is %f",area); return 0; } I'm using Dev c++ GCC (MinGW) compiler. it compiles properly but when I try to run, it get this error message Failed to execute "C:\Users