LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 06-10-2003, 12:14 PM   #1
zetsui
Member
 
Registered: Jun 2003
Location: Jersey City, NJ
Distribution: Mandrake 9.1 is sooooo easy that patrick starr could use it
Posts: 217

Rep: Reputation: 30
g++


hey guys i bought a very recent book on ASCII C++, because its multi-platformed, my first few source files were compiling nicely in the command line, but whenever i try to compile them again or any other source file no result comes up I restarted my computer, yet still no change, know whats wrong?
 
Old 06-10-2003, 12:22 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Could you copy the output? Try to compile anything and post the result.
 
Old 06-10-2003, 12:44 PM   #3
zetsui
Member
 
Registered: Jun 2003
Location: Jersey City, NJ
Distribution: Mandrake 9.1 is sooooo easy that patrick starr could use it
Posts: 217

Original Poster
Rep: Reputation: 30
#root: g++ Day0101.cpp
#root:

there is no output i have no idea what happend, i am using mandrake 9.1
 
Old 06-10-2003, 01:25 PM   #4
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Is there a file called a.out in the directory now?
 
Old 06-10-2003, 02:14 PM   #5
zetsui
Member
 
Registered: Jun 2003
Location: Jersey City, NJ
Distribution: Mandrake 9.1 is sooooo easy that patrick starr could use it
Posts: 217

Original Poster
Rep: Reputation: 30
yes even when i delete it and try to compile again nothing happens, but continue
 
Old 06-10-2003, 02:34 PM   #6
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
a.out will be the compiled program

You've got to give the compiler a different name to output to or it will always be a.out:


g++ myprogram.cpp -o name_for_my_compiled_program
 
  


Reply



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 Off
HTML code is Off



LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration