Let compiler handle cyclic dependencies
See original GitHub issueIf I have two contracts like so
import "./pong.sol"
contract ping
{
pong p;
}
and
import "./ping.sol"
contract pong
{
ping p;
}
I get a cyclic dependency error when compiling. I was under the impression this shouldn’t happen as they only have each other as members in the contracts, not inherit from each other.
Issue Analytics
- State:
- Created 7 years ago
- Comments:18 (9 by maintainers)
Top Results From Across the Web
Resolve build errors due to circular dependency amongst ...
The reason this fix is bad is because the next person to #include "A.h" will have to declare B before they can use...
Read more >Circular Dependencies in C++ - pvigier's blog
Its goal is to draw the “include” dependencies between classes in a C++ project. In particular, it allows to detect circular dependencies ......
Read more >Compiler Linking: How to handle circular references?
I'm currently writing a compiler for a new language and I'm struggling with the linking aspect of new Types when there exists a...
Read more >Do we really need circular dependencies in a C compiler ...
Simple circular inclusion of files won't work in any C compiler. The problem to solve is exactly the same as recursivity inclusion needs...
Read more >Cyclic dependencies are evil · F# for Fun and Profit - swlaschin
Cyclic dependencies : Part 1. ... The F# compiler should handle all type resolution matters automatically, independent of ... Let's start with detection....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This has been fixed in
truffle-compile
, v1.1.1. You should be able to get this update if you uninstall and reinstall Truffle, if on Truffle 3.x. Thanks for the reports!Ran into same issue, and hopefully looking to have solc handle this.