Recitation - Jan 10, 2011
Submissions
- Class Homepage
- http://www.cs.fsu.edu/~myers/cop3330/
- Submission Page
- No emails asking for confirmation of files submitted.
- No valid submissions through email.
- Username
- Username is your FSU SN
- FSU SN can be obtained through blackboard campus.fsu.edu
- Submission username is FSU SN with dashes (Example: AB3-45-6789)
- Not your social security number.
- Password
- Handed out in recitation.
- This password will be needed all semester.
- Files
- Text files only (Ex: *.cpp, *.h).
- No binary files (Ex: *.zip). Binary files will be corrupted by submission software.
- Files may be resubmitted up till the due date.
- One late day allowed (with letter grade deduction).
- No submissions after late period. Submission page will not accept submissions after the late period.
- Practice submission
- Open program submission page and try to submit a file or two for Assignment 0.
- Ensure that you are able to submit a file.
- This practice will not be graded.
Review
On the notes pages for our course, the link to the COP 3014 taught in the summer of 2010:
This is for students to use as a reference any time they need it.
You can help clarify any of the topics from this list that the students
may have questions on. Some topics that would be worth looking at:
Creating an executable
Make and Makefiles
The following is known as a rule:
----------
target(s): prerequisite(s) (dependencies) (dependency list)
command(s) (sometimes called recipes)
----------
target(s): prerequisite(s) (dependencies) (dependency list)
command_1
command_2
command_3
.
.
.
command_n
target ... : dependency ...
command
...
...
...
Example:
----------
.PHONY : all clean
all: hello_world
hello_world: hello.cpp hello.h
g++ hello.cpp -o hello_world
# delete everything execpt source files
clean:
rm hello_world
rm *.o
A makefile consists of one or more Rules. Rules tell when and how to rebuild target(s).
The targets are sometimes called the goal of the rule.
make ultimately ensures that the goal(s) of the makefile are up-to-date.
Phony (Psuedo) Targets - target that does not have a real, corresponding file (file that we want to create).
all and clean are pseudo targets.
The pseudo targets will no longer work if a file with the
corresponding name really exists. Therefore, pseudo targets should be
explicitely stated in the Makefile.
To explicitely define a Psuedo Target, use the special, built-in
target name, .PHONY. (for other special built-in targets, see Special
Built-in Target Names).
To call a phony target, invoke make with the psuedo target name as the argument (e.g. make clean).
If no argument is specified, the first target (excluding targets
starting with a period) will be the default goal.
If no dependency is listed, then corresponding command(s) for that rule will always be executed.
To be safe, header files that are included in a given source file
should be listed as dependencies when compiling the given source file.
Bob Myers's howto makefiles
GNU make reference
Automatic variables
Operators in C++
Followups
- If having problems opening file transfer in SSH Secure Shell program,
execute mesg on command line. If this outputs is n, then check
if your .bashrc has mesg n and comment/delete it.