I am working with this Solidity example, using geth console and/or Mist's compiler:
contract InfoFeed {
function info() payable returns (uint ret) { return 42; }
}
contract Consumer {
InfoFeed feed;
function setFeed(address addr) { feed = InfoFeed(addr); }
function callFeed() { attribut = feed.info.value(10).gas(800); }
}
If, in the Mist compiler, I only include:
contract Consumer {
InfoFeed feed;
function setFeed(address addr) { feed = InfoFeed(addr); }
function callFeed() { attribut = feed.info.value(10).gas(800); }
}
which would make sense if e.g., I were to rely on someone else to (have) provide(d) the code for InfoFeed, I get the following compilation error msg:
Identifier not found or not unique.
InfoFeed feed;
^------^
How to compile Consumer in isolation please? The tutorials I looked at contains code bits of interdependent contracts, but don't tell me how to go about compiling them.