*ebiten.Image causes duplicate symbols for architecture x86_64 #1541
-
Hi, when I try to use a variable with *ebiten.Image as type I get the following error:
Code usage:
I'm using:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
Apparently you are using goenv, and I'm not familiar with it. Could you try |
Beta Was this translation helpful? Give feedback.
-
I'm not sure if there is some significant difference between this example and mine, but the little shooter game I made last year has an *ebiten.Image inside every game object and built fine on macOS, also bigSur and also whatever the previous version was called. It was built with Go 1.15 and Ebiten 2.0.0. I can try it out with versions more like in OP's post it's relevant. |
Beta Was this translation helpful? Give feedback.
Apparently you are using goenv, and I'm not familiar with it. Could you try
go clean -cache -modcache
?