aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/examples/GNUmakefile4
-rw-r--r--doc/examples/cms_dec.cpp2
-rw-r--r--doc/examples/package.cpp2
3 files changed, 4 insertions, 4 deletions
diff --git a/doc/examples/GNUmakefile b/doc/examples/GNUmakefile
index d854c81d8..44fcfeea5 100644
--- a/doc/examples/GNUmakefile
+++ b/doc/examples/GNUmakefile
@@ -2,8 +2,8 @@
BOTAN_CONFIG = botan-config
CXX = g++
-CFLAGS = -O2 -ansi -W -Wall $(shell $(BOTAN_CONFIG) --cflags)
-LIBS = $(shell $(BOTAN_CONFIG) --libs)
+CFLAGS = -O2 -ansi -W -Wall -I../../build/include
+LIBS = -L../.. -lbotan
SRCS=$(wildcard *.cpp)
diff --git a/doc/examples/cms_dec.cpp b/doc/examples/cms_dec.cpp
index 3fa285395..de4d732f0 100644
--- a/doc/examples/cms_dec.cpp
+++ b/doc/examples/cms_dec.cpp
@@ -10,7 +10,7 @@ int main(int argc, char* argv[])
{
if(argc != 2)
{
- printf("Usage: %s <filename>\n", argv[0]);
+ std::cout << "Usage: " << argv[0] << " <filename>\n";
return 1;
}
diff --git a/doc/examples/package.cpp b/doc/examples/package.cpp
index 981abaa31..866dd7e96 100644
--- a/doc/examples/package.cpp
+++ b/doc/examples/package.cpp
@@ -55,7 +55,7 @@ int main(int argc, char* argv[])
&unpackage_output[0]);
if(unpackage_output == input)
- std::cout << Package/unpackage worked\n";
+ std::cout << "Package/unpackage worked\n";
else
std::cout << "Something went wrong :(\n";
}