Dev C++ In File Included From

  1. In file included from dev c. Ask Question. I try to gave the complete file path for the header files. I have tried almost all the options available on stack.
  2. I can do graphics in Dev- C. I am using Dev-C.:). Just follow the instructions carefully and do not forget to put linkers. You can't do a graphics by making a new source file. You need to do a new project to put linkers. Yes, but you are not using the 16-bit functions that are in graphics.h that is supplied with Turbo C.

Example explained. Line 1: #include is a header file library that lets us work with input and output objects, such as cout (used in line 5). Header files add functionality to C programs. Line 2: using namespace std means that we can use names for objects and variables from the standard library.

Hi pals,
I am a Newbie in C++ Programming field. I plan to add graphics.h header class in
Dev -C++ Version 4.9.9.2 from Bloodshed which is come along with Borland Compiler.
I follow the Steps in URL : http://www.uniqueness-template.com/devcpp/#step2

Dev C++ In File Included From India

But I Got Error in the Sample code which test the Working , Please Help me
to get away from this problem . I am waiting to hear from you.

Regards
Anes P.A:'(

  • 13 Contributors
  • forum 14 Replies
  • 19,631 Views
  • 5 Years Discussion Span
  • commentLatest Postby leonesaLatest Post

WaltP2,905

C++

You can't. graphics.h is not compatible with Dev-C++

Dev C In File Included From A File

P: n/a
On 2006-05-26 13:47, Christian Kirsch wrote:
Hi folks,
i use dev-c++ as my favourite development environment but i have some
little problems. I wrote a include file called ppmimage.h and now i
tried to implement it into the main file the following way:
#include 'ppmimage.h'
When i start to compile the program i get the error: 1 'included from
main.cpp'
It doesn't work when I leave the .h, too. Then I get the message 'No
such file or directory'
The second way to include the file with < >, also returns the same
messages. All the paths are correct in the project-options, i also
added the project directory to the include paths, the error remains...

Could you paste the code (or parts of it) and the full error message?
It seems to me that the message is something like 'error in file
included from main.cpp' which would mean the there is something wrong
with your .h-file.
The correct way to include a file is just as you have done #include
'file.h', using the < and > is for including parts of the standard library.
Erik Wikström
--
'I have always wished for my computer to be as easy to use as my
telephone; my wish has come true because I can no longer figure
out how to use my telephone' -- Bjarne Stroustrup