1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
// to compile, using an absolute link:
// gm -c -isystem /home/frank/src/annotations/yo/modules/examples/locallib/hdrs main.cc
// the absolute location may contain links to the actual locations of the .h
// and .h.gcm files
// there must be a link in gcm.cache to the initial part(s) of the
// desitnation, e.g., gcm.cache/home -> /home
// if a shortcut link is defined, e.g., in /home/frank:
// ln -s /home/frank/src/annotations/yo/modules/examples/mylib/hdrs libhdrs
// then
// gm -c -isystem /home/frank/libhdrs main.cc
// also works
import "base.h";
import "middle.h";
import "top.h";
int main()
{
Base base;
Middle middle;
Top top;
}
|