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 refrence to '_imp___wassert' #1828

Closed
PointThink opened this issue Jun 13, 2021 · 2 comments
Closed

undefined refrence to '_imp___wassert' #1828

PointThink opened this issue Jun 13, 2021 · 2 comments

Comments

@PointThink
Copy link

Whenever i compile the program using this command
g++ -std=c++11 main.cpp -lraylib -lopengl32 -lgdi32 -lwinmm

I get these messages from the compiler
C:/Users/User/Crap/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib/libraylib.a(rglfw.o):rglfw.c:(.text+0x2cd1): undefined reference to '_imp___wassert' C:/Users/User/Crap/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib/libraylib.a(rglfw.o):rglfw.c:(.text+0x2e76): undefined reference to '_imp___wassert' C:/Users/User/Crap/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib/libraylib.a(rglfw.o):rglfw.c:(.text+0x2ec1): undefined reference to '_imp___wassert' C:/Users/User/Crap/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib/libraylib.a(rglfw.o):rglfw.c:(.text+0x2f53): undefined reference to '_imp___wassert' C:/Users/User/Crap/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib/libraylib.a(rglfw.o):rglfw.c:(.text+0x2f93): undefined reference to '_imp___wassert' C:/Users/User/Crap/mingw-w64/i686-8.1.0-posix-dwarf-rt_v6-rev0/mingw32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/lib/../lib/libraylib.a(rglfw.o):rglfw.c:(.text+0x38af): more undefined references to '_imp___wassert' follow collect2.exe: error: ld returned 1 exit status

What could be causing the issue?
I use mingw i686 8.1.0 posix dwarf rt_v6 rev0
The compiler provided with the installer works just fine with the command i used

@raysan5
Copy link
Owner

raysan5 commented Jun 13, 2021

@PointThink No idea... but it seems this issue could be related to this: rust-lang/rust#60912 In any case, it does not seem an issue with raylib but with the MinGW-w64 compiler.

@raysan5 raysan5 closed this as completed Jun 13, 2021
@darzaccaro
Copy link

FWIW, I had this same issue when using the pre-compiled binary, but everything works fine when building from source.

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