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 :)
Put the three files into a workspace, and build the workspace. The IDE handles the linking for you.
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.
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.