SWIG can generate interface for other languages to call C++ functions. If C++ codes are separeted to mutiple directories, we may have some trouble.
- Prepare directories like this.
- invoke
- invoke.cpp
| miles@frege:~$ ./shapeless.sh | |
| Loading... | |
| Welcome to the Ammonite Repl 0.5.2 | |
| (Scala 2.11.7 Java 1.8.0_51) | |
| @ val l = 23 :: "foo" :: true :: HNil | |
| l: Int :: String :: Boolean :: HNil = ::(23, ::("foo", ::(true, HNil))) | |
| @ |