coral-xyz / anchor-book

The Anchor Book
https://book.anchor-lang.com
Apache License 2.0
97 stars 59 forks source link

Splitting program into multiple files failed #96

Closed oulaoba closed 8 months ago

oulaoba commented 8 months ago

I am success in this tic_tac_toe project,But when i try to split program into multiple files. the program doesn't work. the error message is unresolved import crate,but i think my program is same to this example.

image
acheroncrypto commented 8 months ago

You can check out multiple file example with anchor init example --template multiple or anchor new example --template multiple.

Please use Solana StackExchange or Anchor Discord to ask questions instead.