Closed makew0rld closed 3 years ago
I'm clear Give me some time to solve the redefine problem
More info:
If I download 6ee277f and delete the .a
files, and use that, I get this error:
➤ go build
# github.com/chunqian/go-raylib/raylib
/usr/bin/ld: cannot find -lraylib
collect2: error: ld returned 1 exit status
So it's not just a problem in .a
files I guess.
@makeworld-the-better-one I found a way to solve redefine in cgo I will probably push it tomorrow after testing Static libraries will be removed
@makeworld-the-better-one fixed remove static libraries no warnings
Can confirm 83ff695c6830 compiles on Linux with no warnings or issues. Thank you!
When trying to compile basic_window.go on Linux, using the latest commit 6ee277f768c6, I get this error output:
No binary is built.
This is the default gcc flags Go is using. I never set this myself.
I had trouble changing it to use
-fPIE
instead and gave up.The latest commit that successfully compiles on Linux is 90039dae19642319a4dacd502b7dbb9db272ecde , before any
.a
files have been added. There were some warnings, but a binary was made and it worked fine.My suggestion: Just remove the
.a
files. What is the point of having them? I'd rather just build the library myself.