Big C++ / Computing Concepts with C++ Essentials
Compiler Help
How to use Doxygen
- Download and unzip into, say,
c:\doxygen-1.2.3.4.
- Add Javadoc comments to your templates, classes, and functions, for
example
/**
Scales a vector.
@param a a scalar
@param b a vector
@return the vector with each component multiplied by the scalar
*/
vector<int> operator*(int a, const vector<int>& b)
- Add a comment like this to the top of the file:
/**
CS101 Homework 1 Assignment 1.
@file assign1.cpp
@author Sally Student
*/
If you omit the @file tag, functions aren't extracted.
- From a command shell, run c:\doxygen-1.2.3.4\bin\doxygen -g
myproj.dox to generate a config file.
- Edit myproj.dox and change the following entry:
INPUT = myfile1.cpp myfile2.cpp . . .
You can change other entries if you like.
- Run c:\doxygen-1.2.3.4\bin\doxygen myproj.dox to generate the
documentation.
- Find files myfile1_cpp.html, myfile2_cpp.html, . . .
in the html subdirectory
If you don't want to fuss with the config file, you can instead use
echo "INPUT=myfile1.cpp myfile2.cpp . . ." | c:\doxygen-1.2.3.4\bin/doxygen -
(The - means “read from standard input”.)
Help with Windows and Linux