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'

Postby stephanbrunker » Sep 30, 2017 22:02

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/raw/master/patch/fb%20105%20patch.zip

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

Re: undefined reference to `LoadIconMetric'

Postby stephanbrunker » Oct 04, 2017 19:07

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.

Return to “Libraries”

Who is online

Users browsing this forum: No registered users and 2 guests