Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > C++ Programming
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old July 31st, 2005, 09:51 AM
Registered User
 
Join Date: Jul 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default New programmer - Compiling problems

Hello, I'm trying to learn C or C++. It would be my first language.

(Please refrain from telling me that it's too hard for a starting language ... I believe that whether something is easy or difficult is only a matter of perception. I hear that simpler languages teach bad habits. In addition, I strongly believe I am capable of grasping the concepts.)

Anyway, I'm trying to learn by tutorials. I'll probably get a book some time down the road. The tutorials compile fine... probably because they rarely do anything terribly demanding. Sometimes I've tried compiling open source code, to try and learn by example (Sourceforge comes in handy for things like that). However, almost nothing will compile. I frequently encounter innumerable errors and/or warnings. I believe that some of the problem is that I don't have some header files, but I also get errors when I know I have the required header files. Still, I'm extremely green in the field and I admit that at this point I don't really know what I'm doing, so I could be way off.

I am using the Dev-C++ 5 beta IDE. I can post examples of errors I get or post links to source that I'd like to try compiling.

Oh... 2 minor things. What exactly is a makefile? Also, in IDEs you can save "project" files. How important is it to use a "project" file? I would imagine it's possible to get by without them, but that the "projects" simplify things.
Reply With Quote
  #2 (permalink)  
Old November 6th, 2005, 08:30 PM
Authorized User
 
Join Date: Nov 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Paramesh
Default

Hi,
Quote:
quote:
I frequently encounter innumerable errors and/or warnings. I believe that some of the problem is that I don't have some header files, but I also get errors when I know I have the required header files
Many use different libraries and header files for their programs.
So the better thing is stick to your book.
Learn all the basics and then go to sourceforge.

Look at the project documentation for more information about the project.

Quote:
quote:
Oh... 2 minor things. What exactly is a makefile? Also, in IDEs you can save "project" files. How important is it to use a "project" file? I would imagine it's possible to get by without them, but that the "projects" simplify things.
A description file that defines the relationships or dependencies between applications and functions; it simplifies the development process by automatically performing tasks necessary to rebuild an application when you modify code.
You can google it for more information.

A project file is a file maintained by the dev c++ or an IDE to keep track of the various files and libraries included in the project.
For example, if you have 10 C++ files, 5 lib files and 4 header files, you can store it as a project. If you compile, all the files will be compiled.

Yes.It is possible to go without project files but that would be difficult in an IDE.
Most of the IDEs compile only if we create a project.

Regards,:)
Paramesh.
Reply With Quote
  #3 (permalink)  
Old November 6th, 2005, 10:40 PM
Authorized User
 
Join Date: Nov 2005
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

http://www.mindview.net/Books/TICPP/...ngInCPP2e.html

Reply With Quote





Similar Threads
Thread Thread Starter Forum Replies Last Post
I am having problems compiling Hello World program jch BOOK Beginning Linux Programming, 3rd Edition 5 August 26th, 2008 10:33 AM
New Programmer misty5 SQL Language 3 September 2nd, 2007 02:30 PM
Being a C++ programmer michaelbao C++ Programming 0 September 23rd, 2006 07:07 PM
New to Java, problems compiling Kyle Colyer JSP Basics 3 September 6th, 2003 04:58 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.