basic question about compiling with multiple "main" files I'm new to XCode and have a very basic question: I started a new C++ project "Command Line Tool". It provided me with folder with a few things in it including a file called "main.cpp". I changed the name "main" to something else (say "July29_1.cpp") and then went in and wrote some code. When I hit "Build and Run", everything went as expected. Then I said "save as" and changed the name to "July29_2.cpp". Now I changed the code and hit "Build and Run", but it would build and run "July29_1.cpp" and not "July29_2". How do I fix this problem? Is there anything wrong with generating many files that have the same "main" block within the same project?
Thanks.
Eric |