dev-c++

Header files in dev-C++

I'm trying to add an header file to dev-C++ but when I compile it it doesn't work. Here are my exact steps (for my example, I'm trying to get mysql.h to work): copy "mysql.h" into c:\dev-c++\includes check that in dev-C++ tools > compiler options > directories > c includes and c++ includes have the path to "c:\dev-c++\includes" include...

Dev C++ to compile C source file

How can I use Dev C++ to compile C source file. I thought it would automatically do it, but for some reason it compiles with several errors and I think its because you have to make changes for it to compile a C file. Example test code: #include <stdio.h> main () { int i,j; double x,x_plus_one(); char ch; i = 0; x = 0; pr...

how to use Linux lib such as timeval in windows

how to use Linux lib such as timeval in windows I have installed cygwin and dev c++ I don't like compliling in cygwin compliling under dev c++ always erro like `gettimeofday' undeclared (first use this function) unfortunately, I don't have enough harddisk space to install a linux or any vitual machine thanks a lot ...

DevC++ (Mingw) Stack Limit

Is it possible to set the stack limit in DevC++? Basically the same as "ulimit -s" would do on linux. ...

OpenGL v2.0 Shaders with Dev-C++ and SDL?

I was about to rebuild my library in Dev-C++, under Windows; however, the shader functionality I've added in the meantime is not supported, the compiler could not find the related functions (::glCreateShader(), ::glCreateProgram(), etc.) Digging around the internet and the Dev-C++ folder, I've found that the OpenGL implementation (gl.h)...

Using Common Header Files in eVC++ 3

Hello, I'm learning C++ and i have the eVT(eMbedded Visual Tools) installed in my computer, because of the eVB 3(eMbedded Visual Basic) for my VB pocket programs, but i'm learning C++, then i want to use the eVC++ 3 for develop some command line aplications, then only to test i created an HelloWorld aplication, just for test, but when i...

C : Code still runs without any includes (Bloodshed's Dev-C++)

I am currently learning and experimenting with C and am using Bloodshed's DEV-C++ as an IDE. Now, I just realized that the following piece of code (as it is...no includes or nothing) compiles and runs : main () { printf("%d", strlen("hello")); } Now, if I'm not mistaken, shouldn't two header files be included in this source fo...

how to create a header file in dev c++

Hi, I am creating header file for the fist time in dev c++ I have created add.h and add.cpp according to proper format. I don't know where to store them and when I am using header, it is showing many errors ...

Why does this compile with the Dev-C++ compiler and not Visual Studio's one ?

Why does the following code compile with the Dev-C++ compiler and not with Visual Studio? Any idea? Here is the code: #include<stdio.h> main(){ int n,i; scanf("%d",&n); int arr[n]; for(i= 0 ; i <n ; i++) { //Do something with the array } fflush(stdin); getchar(); } Here are the errors: ...

Multiple files in Dev-C++, Linker Error. Templates.

I apologise for what I'm pretty sure is a fairly stupid question, but I can't get it to work! I'm also not sure what information is too much information so I probably won't give enough info so sorry for that too - just ask. I began writing a class within main.cpp, and it got large so I decided to shift it to a different source file. I'...

NTL library in Dev-C++

Hi, I want to write a program which use NTL library under Dev-C++. Could tell me how to add NTL libraries to Dev-C++? I tried to compile (as it was said in NTL tutorial) all the files form src catalog in Dev-C++, but I got such a communicate: [Bulid Error] [Project1.exe] Error 255 That's why I cannot get ntl.a file... ...

How to make a Web Browser toolbar ?

How do I make a Web Browser toolbar in C++. in dev-C++ for I.E with no addon libraries? ...

integrating new library in dev cpp

can anyone help me on how to integrate new library in dev cpp? i want to have a haru library to my compiler! ...

Cygwin gcc compiled fails in IDE complaining about 'exit' undeclared

When I compile a program using just gcc code.c There are no messages, and an output file is generated successfully. The outputted file works. However, when I try to the same cygwin installation's gcc compiler in an IDE (I've tried Netbeans and Dev-C++), I get the following errors main.cpp:27: error: `exit' undeclared (first use this ...

Using OpenCV 2.0.0a with dev c++

OpenCV 2.0.0a is very different to the older version of OpenCV and so is very different to setup. I have tried to set it up for Visual C++ Express 2008 but to no avail so I wanted to ask whether anyone has got it to work on Dev C++ and if yes can they tell me how. ...

How can I see an the output of my C programs using Dev-C++?

Hi, I'm looking to follow along with The C Programming Language (Second Addition) on a machine running Vista. So far, I've found Dev-C++ the easiest IDE to do this in. However, I still have one problem. Whenever I run my compiled code, for example: a simple hello world program, it runs, but the console window just flickers on the screen...

Using Crypt32 with Dev-Cpp - Unable to link to CryptUnprotectData

Original Question While trying to compile the example code from 'Example C Program: Using CryptProtectData' I ran into a roadblock; The linker cannot find CryptUnprotectData. Here is the console output: Compiler: Default compiler Building Makefile: "C:\Dev-Cpp\test\Makefile.win" Executing make... make.exe -f "C:\Dev-Cpp\test\Makefile...

GetLongPathName Undeclared

When I try to compile my code with the function GetLongPathName(), the compiler tells me that the function is undeclared. I have already read the MSDN documentation located @ http://msdn.microsoft.com/en-us/library/aa364980%28VS.85%29.aspx. But, even though I included those header files, I am still getting the undeclared function error....

Dev-C++ Run Program in Background without GUI

I recently began learning C++ in order to reach people w/o .net. I need to run my program in the background(without any visual indication to the user so no window or cmd). I know there a various methods to do this In C#, but I don't know how to do this in C++ (specifically Dev-C++). Any help is greatly appreciated. ...

Invalid function declaration. DevC++

Why do I get invalid function declaration when I compile the code in DevC++ in Windows, but when I compile it in CodeBlocks on Linux it works fine. #include <iostream> #include <vector> using namespace std; //structure to hold item information struct item{ string name; double price; }; //define sandwich, chips, and drink str...