undefined reference to `LoadIconMetric'

External libraries (GTK, GSL, SDL, Allegro, OpenGL, etc) questions.
stephanbrunker
Posts: 62
Joined: Nov 02, 2013 14:57

Re: undefined reference to `LoadIconMetric'

Post by stephanbrunker »

I made a pull request on github. I created a new folder "patch" in the repository and put the changed source files into that (definition files and headers). I also put there an ZIP archive with the files the users have to replace, means the header files and the compiled import libraries.

The fixes are:
Changed definition files:
def\comctl32.def: added LoadIconMetric
def\user32.def: added CalculatePopupWindowPosition

Changed Headers:
inc\win\commctrl.bi: changed _WIN32_WINNT value for LoadIconMetric
inc\win\shellapi.bi: changed ShellNotifyIcon

until then, the patch is in my fork for download: https://github.com/stephanbrunker/fbc/r ... 0patch.zip

should have removed the spaces in the file name ...
stephanbrunker
Posts: 62
Joined: Nov 02, 2013 14:57

Re: undefined reference to `LoadIconMetric'

Post by stephanbrunker »

The current repository guidelines interdict adding patches for existing versions. So, i moved the patch into another location:

https://github.com/stephanbrunker/fbc_105_patch

I'm going to fix the lib / header issues I'm stumbling about and add them. And anyone is invited to contribute in that format (dll.a and bi files). I think it provides an easy-to-use, quick fix (simply replace the affected files) until the next version comes out, and because some of the issues are related to wrong _win32_winnt values, they won't be probably fixed in the next release.

Perhaps not the perfect solution (that would be fixing the automatic translation and the mingw files), but one that works now.
Post Reply