undefined reference to `WinMain' : When using Cygwin, SDL2 and Netbeans

前端 未结 2 1588
一生所求
一生所求 2021-01-22 05:32

any help here would be appreciated. Ive really racked my brains at this, sooo.

I have installed cygwin, and Netbeans and have been successfully deving, compiling and run

2条回答
  •  情话喂你
    2021-01-22 05:58

    For a library that I just built with Cygwin, I added the following compiler flags:

     -shared -Wl,--out-implib,lib$(LIB_NAME).dll.a
    

    This allowed me to build my library without the dreaded, "missing WinMain," error message.

提交回复
热议问题