Easy Question

This is a discussion on Easy Question within the C++ Programming forums, part of the General Programming Boards category; Hi, I am very newbie at this and would really appreciate if anyone can help me out here. The question ...

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    7

    Easy Question

    Hi, I am very newbie at this and would really appreciate if anyone can help me out here. The question deals with linking several .cpp files together under MS Visual C++ to make an executeable. The following command line is what I type out at school on the Unix machines:

    g++ -o test test.cpp file1.cpp file2.cpp

    is there an equivalent command or procedure that I can do under MS Visual C++ 6.0 to create the test executeables while linking at 3 .cpp files together?

    Thanks in advance

  2. #2
    geek SilentStrike's Avatar
    Join Date
    Aug 2001
    Location
    NJ
    Posts
    1,141
    Put the three files into a workspace, and build the workspace. The IDE handles the linking for you.
    Prove you can code in C++ or C# at TopCoder, referrer rrenaud
    Read my livejournal

  3. #3
    Registered User
    Join Date
    Sep 2002
    Posts
    7
    tks silentstrike. However i am still very green with ms C++. When I go to file->new-> Blank Workspace

    and enter the name of the new workspace -- test for example. I then try to add files to the workspace under "Project -> Add to project" but the file selection is all greyed out. I know I am prolly missing something really simple here but its driving me nuts. can ya help me even further.

    thanks

  4. #4
    Just a Member ammar's Avatar
    Join Date
    Jun 2002
    Posts
    953
    You can Do to File->New->(Choose the type of projects)
    when you want to add a file you can do this
    File->New->(make sure the check box add to projects is selected->specify the type of file you are adding and that's it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. easy Vector contructor question
    By noodle24 in forum C++ Programming
    Replies: 5
    Last Post: 04-21-2006, 07:43 PM
  2. Another Embarassingly Easy Question
    By almo89 in forum C Programming
    Replies: 2
    Last Post: 02-11-2006, 03:59 PM
  3. This is hopefully an extremely easy question...
    By rachaelvictoria in forum C Programming
    Replies: 2
    Last Post: 11-07-2005, 12:36 AM
  4. 4 easy question
    By Zeratulsdomain in forum C++ Programming
    Replies: 2
    Last Post: 10-15-2005, 10:43 PM
  5. Easy Question
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 08-12-2002, 12:19 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21