Please I Need Help With C++ - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › Please I Need Help With C++ (1342 Views)
| Please I Need Help With C++ by princehassan(op): 1:54pm On Oct 06, 2017 |
Please am trying to compile a program using gcc but its giving me fatal error.i need help please drop me your facebook link let me add you asap pls |
| Re: Please I Need Help With C++ by Nobody: 6:01pm On Oct 06, 2017 |
depending on the IDE you are using! but if your are using code::block IDE, save the source file with .cpp, delete the initial file that save with .c extension and build if there is no syntax error. it will run. |
| Re: Please I Need Help With C++ by WhiZTiM(m): 8:34pm On Oct 06, 2017*. Modified: 9:15pm On Oct 06, 2017 |
laskilala:Wow. I am stunned by your advice. What in the name of Bjarne Stroustrup is this? ![]() I really wish I had a horse whip to whop you throughout the weekend.. ![]() ----------------------------- ...if there is no syntax error. it will runI find this kinda cute... ![]() |
| Re: Please I Need Help With C++ by Nobody: 8:37pm On Oct 06, 2017 |
Lol you have to say what the error is, there's no way we can guess post it here if you want help, though I see whiz timm so you are in good hands. |
| Re: Please I Need Help With C++ by WhiZTiM(m): 9:16pm On Oct 06, 2017 |
laskilala:Ok, coming off the horse now. Assuming the OP didn't post a very vague question, Compiler error's shouldn't depend on IDEs. I suspect you may have had a problem using Codeblocks before, and you resolved that problem by doing what you prescribed to the OP; fine. Codeblocks actually invokes your compiler toolchain using options from its "build system", or options specific to the active project. The invocation of the "gcc" or "g++" compiler is just an abstraction of the real deal. For GCC, calling "g++" or "gcc" doesn't do the compilation; those programs are known as "Compiler Drivers"; a different program does the compilation. For GCC, its another program called "cc1plus" that does the compilation for C++ programs. The drivers are "somewhat" smart; they can invoke the appropriate language compiler simply examining the file extension. Hence I can write a c++ source file, save it as ".mp3" and compile it - however, the g++ compiler driver will be unable to deduce the target language, hence I will need to specify the language with the "-x" flag. The drivers do other things apart from simply invoking the appropriate compiler. ---------------------- @OP princehassan:1. You don't need anyone's Facebook to solve this problem... we are here for you. Ok? 2. What's the error? Can you post your build log? 3. Also post the source code for the program you are trying to compile. (I hope its really small) |
| Re: Please I Need Help With C++ by BlueMagnificent(m): 2:34pm On Oct 07, 2017 |
princehassan:Are you for real? Hello!! There are no magicians here. You'll need to paste at least the error message for us to know how to help out Cheers |
| Re: Please I Need Help With C++ by HottestFire: 2:49pm On Oct 07, 2017 |
Don't ask me why I am laughing @OP. How will somebody solve a problem he doesn't even know. ![]() |
| Re: Please I Need Help With C++ by Elitecoderng: 3:22pm On Oct 12, 2017 |
seriously? no screenshot, no source or hint? smh |
Learn Game Development With C++ • Help With C# Programming And Omnisharp. • E Commerce Site With C# Mvc • 2 • 3 • 4
React Native Gurus, Please Help Me Out • Python Q|A Ask Any Question?? || Or Drop A Python Tip... • How On-demand App Development Is Transforming Businesses


