diff options
Diffstat (limited to 'hello')
-rw-r--r-- | hello/buildfile | 5 | ||||
-rw-r--r-- | hello/hello.cxx | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/hello/buildfile b/hello/buildfile index 4903a33..c18fa98 100644 --- a/hello/buildfile +++ b/hello/buildfile @@ -1,4 +1,7 @@ -lib{hello}: {hxx cxx}{hello} +import libs = libformat%lib{format} +import libs += libprint%lib{print} + +lib{hello}: {hxx cxx}{hello} $libs cxx.poptions += -I$src_root lib{hello}: cxx.export.poptions = -I$src_root diff --git a/hello/hello.cxx b/hello/hello.cxx index 65d0aa7..46d9f6e 100644 --- a/hello/hello.cxx +++ b/hello/hello.cxx @@ -2,7 +2,8 @@ #include <hello/hello> -#include <iostream> +#include <format/format> +#include <print/print> using namespace std; @@ -11,6 +12,6 @@ namespace hello void say (const string& n) { - cout << "Hello, " << n << '!' << endl; + print (format ("Hello", n)); } } |