Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 11th, 2005, 12:15 PM   #11
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Jun 11th, 2005, 1:21 PM   #12
jubitzu
Newbie
 
Join Date: May 2005
Location: Colorful Colorado
Posts: 25
Rep Power: 0 jubitzu is on a distinguished road
if you have one source file named mygame.cpp, then you compile with the command:
g++ mygame.cpp -o mygame.exe
jubitzu is offline   Reply With Quote
Old Jun 11th, 2005, 1:56 PM   #13
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
Quote:
Originally Posted by jubitzu
This problem has nothing to do with code.
But it does - he was trying to do a whole lot of things that weren't possible, helped him with that though and if it doesn't compile with my given code then his compiler is not working or he needs to invoke his compiler with the right options.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for."
-- Socrates
nnxion is offline   Reply With Quote
Old Jun 11th, 2005, 2:10 PM   #14
jubitzu
Newbie
 
Join Date: May 2005
Location: Colorful Colorado
Posts: 25
Rep Power: 0 jubitzu is on a distinguished road
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:
Originally Posted by ands122
Cannot specify -o with -c or -S and multiple compilations.
jubitzu is offline   Reply With Quote
Old Jun 11th, 2005, 2:38 PM   #15
Wraith Daquell
Programmer
 
Join Date: Feb 2005
Location: Limbo
Posts: 39
Rep Power: 0 Wraith Daquell is on a distinguished road
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
Wraith Daquell is offline   Reply With Quote
Old Jun 11th, 2005, 5:23 PM   #16
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
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
nnxion is offline   Reply With Quote
Old Jun 11th, 2005, 5:51 PM   #17
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Old Jun 11th, 2005, 6:18 PM   #18
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
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.
uman is offline   Reply With Quote
Old Jun 11th, 2005, 7:58 PM   #19
stevengs
Professional Programmer
 
stevengs's Avatar
 
Join Date: May 2005
Location: Bad Nauheim, Germany
Posts: 436
Rep Power: 4 stevengs is on a distinguished road
Quote:
Originally Posted by uman
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.
That is certainly sound advice. That book really is trash. I like Stroustrup, but must admit it is not necessarily the easiest to read on the first go. K&R should not be missing in any set of C/C++ references, even if you intend to develop object orientedly ( )
__________________
-Steven
"Is this a piece of your brain?" - Basil Fawlty
stevengs is offline   Reply With Quote
Old Jun 11th, 2005, 9:21 PM   #20
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:23 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC