raysan5 / raygui

A simple and easy-to-use immediate-mode gui library
zlib License
3.36k stars 289 forks source link

error in build raygui with windows + gcc #332

Closed jsbsan closed 11 months ago

jsbsan commented 11 months ago

Hello, when I execute the following line (for building raygui): copy src/raygui.h src/raygui.c gcc -o src/raygui.dll src/raygui.c -shared -DRAYGUI_IMPLEMENTATION -DBUILD_LIBTYPE_SHARED -static-libgcc -lopengl32 -lgdi32 -lwinmm -Wl,--out-implib,src/librayguidll.a

I get the following error: En línea: 1 Carácter: 136

It seems that the error is in the way the parameters are set: -Wl,--out-implib,src/librayguidll.a

could you check it?

Thank you

raysan5 commented 11 months ago

@jsbsan Just built raygui.dll successfully with (MinGW - GCC 12.0.1) using:

gcc -o raygui.dll raygui.c -shared -DRAYGUI_IMPLEMENTATION -DBUILD_LIBTYPE_SHARED -static-libgcc -lraylib -lopengl32 -lgdi32 -lwinmm -Wl,--out-implib,libraygui.dll.a
n-92 commented 3 months ago

Does not work for me

image image