diff options
author | lloyd <[email protected]> | 2009-10-14 22:33:14 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-10-14 22:33:14 +0000 |
commit | 28f875732c6379531e28c12091c44031941e0dff (patch) | |
tree | e144c77e73691a8ada070e6052688377c73ad44b /doc/examples | |
parent | 0b23f4071f21564fb63d7b11768070658c4b8f77 (diff) |
Fix some minor compilation issues in the examples
Diffstat (limited to 'doc/examples')
-rw-r--r-- | doc/examples/GNUmakefile | 4 | ||||
-rw-r--r-- | doc/examples/cms_dec.cpp | 2 | ||||
-rw-r--r-- | doc/examples/package.cpp | 2 |
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"; } |