Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Not sure if I downloaded the mingw file compiler correctly. I corrected the envi

ID: 3742776 • Letter: N

Question

Not sure if I downloaded the mingw file compiler correctly. I corrected the environment pathway to the bin in the file name you see below. I was tasked with using g++ to turn a lab1program.cpp file into an object code using "g++ -o lab1program1.cpp" command. Then i was to compile it with "g++ -c lab1program1.cpp" command. I used cd to desktopTDM-GCC-64in then used the commands mentioned above. I get getting a fatal error no such file directory prompt. Any help on how to execute this task would be greatly appreciated.

Home Share View New item Open Select al W-Copy path Select none Pin to Quick Copy Paste Move Copy Delete Rename New Paste shortcut to- to Invert selection Organize Open Select LThis PCDesktopTDM-GCC-64 bin vSearch bin TDM-GCC-64 OneDrive labiprograml 9/4/2018 1:33 PMSource File

Explanation / Answer

use this format (works for me):

explanation:

g++ is the compiler

-o is a command that creates an output file

Note: you missed out on defining output file which is causing the error

Hope this helps you.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote