Permalink
Browse files

mention the manual in the --help output

  • Loading branch information...
1 parent 2f0a245 commit edec43c913f635a7aa4a8aadc81e1a870b3db980 @danmar committed Aug 29, 2010
Showing with 12 additions and 10 deletions.
  1. +4 −1 lib/cppcheck.cpp
  2. +8 −9 readme.txt
View
5 lib/cppcheck.cpp
@@ -649,7 +649,10 @@ bool CppCheck::parseFromArgs(int argc, const char* const argv[])
" # Check only files one.cpp and two.cpp and give all information there is:\n"
" cppcheck -v -s one.cpp two.cpp\n"
" # Check f.cpp and search include files from inc1/ and inc2/:\n"
- " cppcheck -I inc1/ -I inc2/ f.cpp\n";
+ " cppcheck -I inc1/ -I inc2/ f.cpp\n"
+ "\n"
+ "For more information:\n"
+ " http://cppcheck.sf.net/manual.pdf\n";
reportOut(oss.str());
}
else if (_filenames.empty())
View
17 readme.txt
@@ -7,6 +7,10 @@ About
The original name of this program is "C++check" but it was later changed to "cppcheck".
+Manual
+
+ A manual is available online:
+ http://cppcheck.sf.net/manual.pdf
Compiling
@@ -20,41 +24,36 @@ Compiling
* gnu make
* g++
-
qmake
=====
You can use the gui/gui.pro file to build the gui.
cd gui
qmake
make
-
Visual Studio
=============
Use the cppcheck.sln file.
-
gnu make
========
- make
-
+ make
g++ (for experts)
=================
If you just want to build Cppcheck then you can use this command:
g++ -o cppcheck -Ilib cli/*.cpp lib/*.cpp
+ mingw
+ =====
+ make LDFLAGS=-lshlwapi
Cross compiling Win32 (CLI) version of Cppcheck in Linux
sudo apt-get install mingw32
make CXX=i586-mingw32msvc-g++ LDFLAGS="-lshlwapi"
mv cppcheck cppcheck.exe
-Usage
-
- A manual is available online: http://cppcheck.sf.net/manual.pdf
-
Webpage
http://www.sf.net/projects/cppcheck

0 comments on commit edec43c

Please sign in to comment.