Skip to content

Installation error #251

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

Closed
MuuNU opened this issue Nov 11, 2017 · 7 comments
Closed

Installation error #251

MuuNU opened this issue Nov 11, 2017 · 7 comments

Comments

@MuuNU
Copy link

MuuNU commented Nov 11, 2017

On comand go get github.com/andlabs/ui my windows 7 got it:

C:\Users\admin>go get github.com/andlabs/ui

github.com/andlabs/ui

C:/Users/admin/go/src/github.com/andlabs/ui/libui_windows_amd64.a(stddialogs.cpp.obj): In functionmsgbox': E:/github.com/andlabs/libui/windows/stddialogs.cpp:113: undefined reference to __imp_TaskDialog'collect2.exe: error: ld returned 1 exit status

I have installed MinGW w64, but it's not work anyway

@andlabs
Copy link
Owner

andlabs commented Nov 11, 2017

What version of MinGW-w64 do you have? You will need a recent version; I forget exactly which version number.

@jessebarton
Copy link

I did a go get github.com/andlabs/ui on windows 10 and then tried to do a go run main.go, getting the same.
C:/Users/user/Documents/go_workspace/src/github.com/andlabs/ui/libui_windows_amd64.a(stddialogs.cpp.obj): In function msgbox': E:/github.com/andlabs/libui/windows/stddialogs.cpp:113: undefined reference to __imp_TaskDialog'
collect2.exe: error: ld returned 1 exit status

@MuuNU
Copy link
Author

MuuNU commented Nov 14, 2017

I have mingw w64 v5.0.3
It's latest version
But it librart anyway not install in my Windows 7

github.com/andlabs/ui

C:/Users/admin/go/src/github.com/andlabs/ui/libui_windows_amd64.a(stddialogs.cpp.obj): In functionmsgbox': E:/github.com/andlabs/libui/windows/stddialogs.cpp:113: undefined reference to __imp_TaskDialog'
collect2.exe: error: ld returned 1 exit status

@andlabs
Copy link
Owner

andlabs commented Nov 14, 2017

Do you have more than one MinGW installation? Try using go get -x -v and seeing which gcc command it's using.

@MuuNU
Copy link
Author

MuuNU commented Nov 19, 2017

I got linux, and succesfull install this library, but in compilation, it get

[denis@manjaro UITest]$ go build main.go
# command-line-arguments
/usr/bin/ld: /home/denis/go/src/github.com/andlabs/ui/libui_linux_amd64.a(libui-combined.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with-fPIC
/usr/bin/ld: final link failed: Section unrepresentable to output
collect2: error: ld execution completed with return code 1

@andlabs
Copy link
Owner

andlabs commented Mar 26, 2018

@MuuNU that is #230; unrelated to this.

@andlabs
Copy link
Owner

andlabs commented Mar 26, 2018

Merged with #279.

@andlabs andlabs closed this as completed Mar 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants