-
-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Fail to build imguidemo.go
with cimgui-go
- cimgui.a:*.c
: multiple definition of <func>; <go_path>/pkg/mod/github.com/!allen!dang/imgui-go@<ver>/*.cpp
: first defined here
#762
Comments
cimgui.a:*.c
: multiple definition of <func>; <go_path>/pkg/mod/github.com/!allen!dang/imgui-go@<ver>/*.cpp
: first defined herecimgui.a:*.c
: multiple definition of <func>; <go_path>/pkg/mod/github.com/!allen!dang/imgui-go@<ver>/*.cpp
: first defined here
cimgui.a:*.c
: multiple definition of <func>; <go_path>/pkg/mod/github.com/!allen!dang/imgui-go@<ver>/*.cpp
: first defined herecimgui.a:*.c
: multiple definition of <func>; <go_path>/pkg/mod/github.com/!allen!dang/imgui-go@<ver>/*.cpp
: first defined here
cimgui.a:*.c
: multiple definition of <func>; <go_path>/pkg/mod/github.com/!allen!dang/imgui-go@<ver>/*.cpp
: first defined heregiu/imguidemo.go
- cimgui.a:*.c
: multiple definition of <func>; <go_path>/pkg/mod/github.com/!allen!dang/imgui-go@<ver>/*.cpp
: first defined here
giu/imguidemo.go
- cimgui.a:*.c
: multiple definition of <func>; <go_path>/pkg/mod/github.com/!allen!dang/imgui-go@<ver>/*.cpp
: first defined hereimguidemo.go
with cimgui-go
- cimgui.a:*.c
: multiple definition of <func>; <go_path>/pkg/mod/github.com/!allen!dang/imgui-go@<ver>/*.cpp
: first defined here
Is it possible to resolve conflict through |
Helped adding How much threat does this posses to the giu universe?🤭 |
This comment was marked as outdated.
This comment was marked as outdated.
ok I've just read your comment, its useful sometimes 😄 So, my answer is similar: If you don't want to migrate your project ot cimgui-go (this shouldn't be hard to do) you could theoritically fork this repo and generate it for older Dear ImGui (this from imgui-go). |
This comment was marked as outdated.
This comment was marked as outdated.
Now I get it! Your hidden comment is the most valuable one :)
exactly! Thank You @gucio321! Did not expected such a surprise from How to Upgrade and Downgrade Dependencies
|
☝️ |
nope, master
package main
import (
"fmt"
"github.com/AllenDang/giu"
)
func main() {
fmt.Println("Hello World! by: giu")
wnd = giu.NewMasterWindow("ImGui widgets demo", 800, 600, 0)
wnd.Run(loop)
}
func loop() {
fmt.Print("+")
}
|
thats the problem.. your code works for me... |
on Windows 10? |
On fedora linux |
Before major version release it going to be tested on shWindows anyway (yes?), so if this is a case - we are prepared mentally. Or I just boiled it in the wrong way 🤷 somehow. Not in a hurry for the solution, was playing with golang and imgui binding. Now I'm ready to go back to good old c++ with native imgui 😮💨 |
well, you can always use working version with imgui-go. |
also, here is an issue for this: #735 |
What happend?
Fail to build
giu/imguidemo.go
, even aftergo clean -cache
Code example
main.go
go.mod
build output
To Reproduce
go build -v -x -gcflags='all=-N -l' -ldflags '-extldflags=-static' ./cmd/bplan/
Context: testing in my own project, no other
.go
source files` presentLooks like
imgui-go
conflicting withcimgui-go
, is it possible to put these lizards in one jar as in example?It was changed in "migration commit" here:
Before
gofmt
automatically assignedimgui
namespace toimgui-go
library and it was building fine (after feeding bool param to ShowDemo func), but after manual change tocimgui-go
it broke :(Version
master
OS
Windows 10
The text was updated successfully, but these errors were encountered: