Thread: is this right g++ -c helloWorld.cpp hello.cpp

  1. #1
    Registered User
    Join Date
    Sep 2014
    Posts
    19

    is this right g++ -c helloWorld.cpp hello.cpp

    **** this posting is for Linux Debian ***

    Which is the one you start with and the one you are try to make, it does not seem to work
    g++ -c helloWorld.cpp hello.cpp


    Why does it all have to be hello
    Of if the book said something like g++ -c read.cpp object.cpp

    then you need to go from object to executable

  2. #2
    Registered User
    Join Date
    Sep 2014
    Posts
    19
    It does not work I tried different combinations, it does not work, the book information does not work, information on internet does not work, nobody know,

  3. #3
    Registered User
    Join Date
    Sep 2014
    Posts
    19
    I was trying to make a posting I got so frustrated, and the half story wen up lets start again
    It does not work I tried different combinations, it does not work, the book information does not work, information on internet does not work, nobody knows, how I am so confused I should go and do something else, I think I got confused with all these hellos

  4. #4
    Registered User
    Join Date
    Sep 2014
    Posts
    19
    It is alright sorry

    After I "switch off" I found the answer, (due to lack of stress)

    g++ first.cpp -o second

    Where first.cpp is the C++ code you write in a text editor
    And second is the name of the file you want made.

    You do not need to use the words first and second in the file names (but it does work) , but for a tutorial it could be easier than seeing hello hello everywhere/

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. The helloworld code. yes i'm a newbie.
    By Jonathan Yaniv in forum C++ Programming
    Replies: 11
    Last Post: 05-23-2012, 01:17 PM
  2. Running The HelloWorld App in Windows
    By kwikness in forum C Programming
    Replies: 4
    Last Post: 07-29-2006, 01:44 PM

Tags for this Thread