473,385 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

C++ will not "build"

1
I recently loaded GNU C++ on my computer, the CD came with a book on programming. I loaded it, typed it, compiled, and ran a few simple programs and all was well. I few days later, I typed in a few more examples and noticed I could compile the code, and the message said that it compiled. But no executable file was created, nor were the other files created as well. It seems now the program will not "build". As far as I know, nothing has changed on my computer. Should I just re-load the CD?
Sep 11 '07 #1
4 1137
r035198x
13,262 8TB
I recently loaded GNU C++ on my computer, the CD came with a book on programming. I loaded it, typed it, compiled, and ran a few simple programs and all was well. I few days later, I typed in a few more examples and noticed I could compile the code, and the message said that it compiled. But no executable file was created, nor were the other files created as well. It seems now the program will not "build". As far as I know, nothing has changed on my computer. Should I just re-load the CD?
Moved to c++ forum
Sep 11 '07 #2
arnaudk
424 256MB
Try to compile from the command line using "g++ -o program.exe program.cpp". That should definitely create an executable in the current directory.
Sep 11 '07 #3
sicarie
4,677 Expert Mod 4TB
Try to compile from the command line using "g++ -o program.exe program.cpp". That should definitely create an executable in the current directory.
Unless you're on Linux, in which case it's

g++ -o program.out program.cpp
Sep 11 '07 #4
weaknessforcats
9,208 Expert Mod 8TB
And you should use -pedantic to disable non-ANSI C++ extensions.
Sep 11 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Keith Smith | last post by:
What is the difference between "build" and "rebuild" when building a project?
2
by: Axel Dahmen | last post by:
Hi, when applying changes to the code and hitting to debug, a MessageBox pops up asking me if I want to build before debugging. Of course I want, that's why I've changed the code... Is there a...
3
by: Steve Franks | last post by:
I'm using Visual Studio 2005 RC and cannot figure out how to produce a "release" build. Am I doing something wrong? I'm wondering if perhaps MS locked out the ability to produce a release build...
4
by: Simon Verona | last post by:
I'm looking to build a "kiosk" style of application in vb.net (using winforms)... Writing the application itself is no problem. What I want to do though is have the PC set so that the...
0
by: Diffident | last post by:
Hello All, I am trying to do a "build" of all files of my web app on my local machine. I know that there is an "aspnet_wp.exe" running forever on my machine and to my knowledge each web app is...
0
by: Ubergeek | last post by:
I noticed this bug ever since I installed VC7.1 on the same machine as VC6. Sometimes when I am working with VC6, when I do a build, after the build finishes, the various menu items/toolbars remain...
1
by: mac | last post by:
I just put C# express editiion on my son's computer so he can learn how to code, and we've run into a weird problem. Whenever he makes a change to his code and hits F6 (build) the IDE reports...
8
by: Bruce | last post by:
I am using VB in Vs2005. Am I missing something or does VB not have the concept of "builds" (release/debug) like in VC? I wrote an assembly and I would like to have a debug version of the DLL...
1
by: John Dalberg | last post by:
The "Build Web Site" build option seems to do a complete build even when no changes have been made. Is there a way to do a build only when a source file has changed? This is a web site app. John...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.