Xcode Using a Test Driver (.a) Library for Main()
up vote
0
down vote
favorite
Is there a way to use a test driver for a main() program? My professor has instructions for us to use with CodeBlocks on windows. But I dislike having to use Remote Desktop etc..
Here are the instructions with CodeBlocks that I am trying to do with Xcode..
Since you will not be submitting the main() function, You will be compiling your program by doing the following:
- Type your program code into Code::Blocks
- Save the linkable testdriver smfnMain.a file
- In Code::Blocks, go to the Settings menu, and select Compiler to bring up a dialog box.
- Make sure the Global Compiler Settings is selected on the left, then click on the Linker Settings tab.
- Just below the Link libraries box, click the Add button, then navigate to where you saved smfnMain.a.
Click Ok to close the library selection dialog box, and then Ok to close the Global Compiler Settings
You can now Compile and Run your program using the test driver. If your program does not compile, then you probably have not defined your function correctly, or forgot to include all appropriate header files.
c++ xcode codeblocks
add a comment |
up vote
0
down vote
favorite
Is there a way to use a test driver for a main() program? My professor has instructions for us to use with CodeBlocks on windows. But I dislike having to use Remote Desktop etc..
Here are the instructions with CodeBlocks that I am trying to do with Xcode..
Since you will not be submitting the main() function, You will be compiling your program by doing the following:
- Type your program code into Code::Blocks
- Save the linkable testdriver smfnMain.a file
- In Code::Blocks, go to the Settings menu, and select Compiler to bring up a dialog box.
- Make sure the Global Compiler Settings is selected on the left, then click on the Linker Settings tab.
- Just below the Link libraries box, click the Add button, then navigate to where you saved smfnMain.a.
Click Ok to close the library selection dialog box, and then Ok to close the Global Compiler Settings
You can now Compile and Run your program using the test driver. If your program does not compile, then you probably have not defined your function correctly, or forgot to include all appropriate header files.
c++ xcode codeblocks
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Is there a way to use a test driver for a main() program? My professor has instructions for us to use with CodeBlocks on windows. But I dislike having to use Remote Desktop etc..
Here are the instructions with CodeBlocks that I am trying to do with Xcode..
Since you will not be submitting the main() function, You will be compiling your program by doing the following:
- Type your program code into Code::Blocks
- Save the linkable testdriver smfnMain.a file
- In Code::Blocks, go to the Settings menu, and select Compiler to bring up a dialog box.
- Make sure the Global Compiler Settings is selected on the left, then click on the Linker Settings tab.
- Just below the Link libraries box, click the Add button, then navigate to where you saved smfnMain.a.
Click Ok to close the library selection dialog box, and then Ok to close the Global Compiler Settings
You can now Compile and Run your program using the test driver. If your program does not compile, then you probably have not defined your function correctly, or forgot to include all appropriate header files.
c++ xcode codeblocks
Is there a way to use a test driver for a main() program? My professor has instructions for us to use with CodeBlocks on windows. But I dislike having to use Remote Desktop etc..
Here are the instructions with CodeBlocks that I am trying to do with Xcode..
Since you will not be submitting the main() function, You will be compiling your program by doing the following:
- Type your program code into Code::Blocks
- Save the linkable testdriver smfnMain.a file
- In Code::Blocks, go to the Settings menu, and select Compiler to bring up a dialog box.
- Make sure the Global Compiler Settings is selected on the left, then click on the Linker Settings tab.
- Just below the Link libraries box, click the Add button, then navigate to where you saved smfnMain.a.
Click Ok to close the library selection dialog box, and then Ok to close the Global Compiler Settings
You can now Compile and Run your program using the test driver. If your program does not compile, then you probably have not defined your function correctly, or forgot to include all appropriate header files.
c++ xcode codeblocks
c++ xcode codeblocks
edited Nov 19 at 9:59
Cœur
17k9102140
17k9102140
asked Nov 18 at 1:21
bzret
44
44
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53357096%2fxcode-using-a-test-driver-a-library-for-main%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown