Skip to content
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

undefined reference to `__assert_func' #319

Closed
zandercodes opened this issue May 28, 2021 · 2 comments
Closed

undefined reference to `__assert_func' #319

zandercodes opened this issue May 28, 2021 · 2 comments

Comments

@zandercodes
Copy link

zandercodes commented May 28, 2021

I don't know why?

System Windows

C:\Program Files\Go\pkg\tool\windows_amd64\link.exe: running gcc failed: exit status 1
c:/programdata/chocolatey/lib/winlibs/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Julian\AppData\Local\Temp\go-link-918797227\000002.o: in function `glfwSetCursor':
C:\Go\pkg\mod\github.com\go-gl\glfw\v3.3\glfw@v0.0.0-20210410170116-ea3d685f79fb/glfw/src/input.c:820: undefined reference to `__assert_func'
c:/programdata/chocolatey/lib/winlibs/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Julian\AppData\Local\Temp\go-link-918797227\000002.o: in function `glfwSwapBuffers':
C:\Go\pkg\mod\github.com\go-gl\glfw\v3.3\glfw@v0.0.0-20210410170116-ea3d685f79fb/glfw/src/context.c:646: undefined reference to `__assert_func'
c:/programdata/chocolatey/lib/winlibs/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Julian\AppData\Local\Temp\go-link-918797227\000002.o: in function `glfwExtensionSupported':
C:\Go\pkg\mod\github.com\go-gl\glfw\v3.3\glfw@v0.0.0-20210410170116-ea3d685f79fb/glfw/src/context.c:680: undefined reference to `__assert_func'
c:/programdata/chocolatey/lib/winlibs/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Julian\AppData\Local\Temp\go-link-918797227\000002.o: in function `glfwGetProcAddress':
C:\Go\pkg\mod\github.com\go-gl\glfw\v3.3\glfw@v0.0.0-20210410170116-ea3d685f79fb/glfw/src/context.c:746: undefined reference to `__assert_func'
c:/programdata/chocolatey/lib/winlibs/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Julian\AppData\Local\Temp\go-link-918797227\000002.o: in function `glfwGetInputMode':
C:\Go\pkg\mod\github.com\go-gl\glfw\v3.3\glfw@v0.0.0-20210410170116-ea3d685f79fb/glfw/src/input.c:476: undefined reference to `__assert_func'
c:/programdata/chocolatey/lib/winlibs/tools/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Julian\AppData\Local\Temp\go-link-918797227\000002.o:C:\Go\pkg\mod\github.com\go-gl\glfw\v3.3\glfw@v0.0.0-20210410170116-ea3d685f79fb/glfw/src/input.c:501: more undefined references to `__assert_func' follow
collect2.exe: error: ld returned 1 exit status
@tapir
Copy link
Member

tapir commented May 28, 2021

There is another issue where people were able to fix it by deleting C:\Users\name\AppData\Local\go-build.

@zandercodes
Copy link
Author

Oh nice, Thanks.
Problem Solved

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

2 participants