Missing include in osdialog_win.c?
MarcBoule opened this issue · 1 comments
MarcBoule commented
Platfrom WIN10
Commit: 06d7e42
When I clone and make ARCH=win
, I get an error on this line:
https://github.com/AndrewBelt/osdialog/blob/master/osdialog_win.c#L38
(output shown below)
Would osdialog_win.c
need to include <assert.h>
? Or perhaps my compiler is not up to date. In any case, feel free to close if this looks like a problem on my end only.
$ make ARCH=win
cc -std=c99 -Wall -g -o test test.c osdialog.c osdialog_win.c -lcomdlg32
osdialog_win.c: In function 'osdialog_prompt':
osdialog_win.c:38:2: warning: implicit declaration of function 'assert'; did you mean 'accept'? [-Wimplicit-function-declaration]
assert(0);
^~~~~~
accept
C:\msys64\tmp\ccBh2Lny.o: In function `osdialog_prompt':
C:\msys64\home\Admin\Rack\rdev\osdialog/osdialog_win.c:38: undefined reference to `assert'
collect2.exe: error: ld returned 1 exit status
make: *** [Makefile:29: test] Error 1