Quantcast

Maximum PC

It is currently Wed Oct 22, 2014 2:25 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Newbie Dev-C++ question
PostPosted: Thu Mar 13, 2008 9:46 pm 
Klamath
Klamath

Joined: Sat Jul 07, 2007 7:50 pm
Posts: 213
I'm using C++ Essentials from Cay Horstmann to learn C++ and need to add this to Dev-C++ (ccc_win.h). When I try to compile a program using this preprocessor directive I get this error
\Dev-Cpp\Untitled2.cpp E:\Dev-Cpp\E ccc_win.h: No such file or directory.
11 E:\Dev-Cpp\Untitled2.cpp `Point' undeclared (first use this function) .
All I'm trying to do is draw a circle on the screen.
I'm very new at C++ programming(I'm decent at Qbasic) and don't understand a lot of what I'm doing so please keep answers simple and understand that I want to keep using Dev-C++ since it's a portable IDE and has a very (for me) intuitive interface.
Here is my code.
#include "ccc_win.h"

int ccc_win_main()
{
Point p(1, 3);
cwin << p << Circle(p, 2.5);

return 0;
}


Top
  Profile  
 
 Post subject:
PostPosted: Mon Mar 24, 2008 5:07 am 
Java Junkie
Java Junkie
User avatar

Joined: Mon Jun 14, 2004 10:23 am
Posts: 24226
Location: Granite Heaven
Code:
\Dev-Cpp\Untitled2.cpp E:\Dev-Cpp\E ccc_win.h: No such file or directory.


Your compiler can't find 'ccc_win.h'


Top
  Profile  
 
 Post subject:
PostPosted: Sun Mar 30, 2008 10:03 pm 
Team Member Top 100
Team Member Top 100

Joined: Fri Sep 17, 2004 5:35 pm
Posts: 1176
Your compiler can't find it because you don't have the Horstmann Big-C++ library. You're probably reading that book.
http://www.horstmann.com/ccc/ccc3e.zip

Unzip everything to the same directory as your code file and add the .cpp files to your project, then compile.


Top
  Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

© 2014 Future US, Inc. All rights reserved.