Created
April 5, 2012 16:59
-
-
Save andydude/2312513 to your computer and use it in GitHub Desktop.
Smallest example of a weird build error "nested/sub.Foo: undefined: nested/sub.bar"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// file: nested/foo/foo.go | |
package main | |
import "nested/sub" | |
func main() { | |
nestedsub.Foo() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// file: nested/nested.go | |
package nested | |
// theoretical stuff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// file: nested/sub/nested.c | |
#include <runtime.h> | |
void | |
nestedsub·bar() { | |
runtime·prints("hello"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// file: nested/sub/nested.go | |
package nestedsub | |
func bar() | |
func Foo() { | |
bar() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment