![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
A full build typically comprises three steps: preprocessing to handle preprocessor directives, compilation to compile the preprocessed source file (which results in object files), and linking to link the various object files and produce an executable. The compile step generally automatically includes the preprocessing step. Thus, you need to compile and then you need to link. If you'd like to automate the process, you can write a makefile and invoke "make" (or whatever "make" is called for your particular tool set). If you use something like Dev-C++, which is an IDE, the makefile will be automatically generated and run. You only need to set up the properties.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#12 |
|
Newbie
Join Date: May 2005
Location: Colorful Colorado
Posts: 25
Rep Power: 0
![]() |
if you have one source file named mygame.cpp, then you compile with the command:
g++ mygame.cpp -o mygame.exe
__________________
How to ask questions the smart way |
|
|
|
|
|
#13 | |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
Quote:
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
|
|
|
#14 | |
|
Newbie
Join Date: May 2005
Location: Colorful Colorado
Posts: 25
Rep Power: 0
![]() |
There are no challenging problems to be solved on this forum and it is quite boring. Most posters could solve their problems if they just read the goddamn message. How simple can it be? You cannot use -o and -c at the same time! You cannot use -o and -S at the same time! The solution I provided was nothing more than reiterating what the moron had already written in his question!
Quote:
__________________
How to ask questions the smart way |
|
|
|
|
|
|
#15 |
|
Programmer
Join Date: Feb 2005
Location: Limbo
Posts: 39
Rep Power: 0
![]() |
Um, jubitzu, that was a little uncalled-for. The purpose here is to ask and learn... and not get flamed at.
__________________
The meek will inherit the earth. -WDaquell |
|
|
|
|
|
#16 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
jubitzu you might be right about no challenging problems here, maybe that leaves you with more time of your own so you can learn even more than you already do. Would you mind the cursing bit though, I don't mind the f word or the last part of what you said, but the God part bothers me. Thnx.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
|
|
#17 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
In my limited forum experience, the number of challenging problems is a very small percentage of the number of posts. The only way to have more challenging problems to solve is to a) attract more audience to this forum; or, b) find a forum with lots of traffic. I'm hoping for a). Along the way one has to deal with the uninformed and with those that don't know how to ask a question (and don't read any guidelines). Those of you who know me know that I'm impatient with the latter, since asking a sensible question isn't all that difficult, given forethought. As for the uninformed, that's what the forum is for. HOWEVER, the uninformed SHOULD turn to their own resources initially (documentation for the compiler and for functions used, etc.), then ask when they can't find a solution. Prolly notta gonna happen to a great extent, though.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#18 |
|
Expert Programmer
Join Date: Dec 2004
Posts: 794
Rep Power: 4
![]() |
Throw away that book right now. I've read it before, and it is one of the worst programming books in the land. You can get a free C++ ebook called "Thinking in C++", try that. Anything is better than C++ for Dummies.
|
|
|
|
|
|
#19 | |
|
Professional Programmer
Join Date: May 2005
Location: Bad Nauheim, Germany
Posts: 436
Rep Power: 4
![]() |
Quote:
)
__________________
-Steven "Is this a piece of your brain?" - Basil Fawlty |
|
|
|
|
|
|
#20 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
I'll definitely second the Bruce Eckel books, "Thinking in C++", mentioned by Uman. Both volumes. They are, as mentioned in another post, legally free for download.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|