ANN: wxWidgets 2.7.2 released - linking problem with MSYS (mingw) on Windows XP

Vadim Zeitlin vadim at wxwindows.org
Thu Nov 9 05:09:08 PST 2006


On Thu, 09 Nov 2006 12:52:04 +0000 chris elliott <biol75 at york.ac.uk> wrote:

ce> several points on this:
ce> 
ce> 1) configure puts version-script in the directory that make will be run 
ce> in, so one working solution is to change
ce> 
ce> EXTRALIBS =  -mthreads 
ce> -Wl,--version-script,$(wx_top_builddir)/version-script -lrpcrt4 ...
ce> 
ce> to
ce> EXTRALIBS =  -mthreads -Wl,--version-script,./version-script -lrpcrt4 ...
ce> 
ce> 2) we also need to fix utils/wxrc/Makefile

 This is the same problem. It's due to a change in bakefile 0.2.1 but I
think it is a mingw32 bug:

https://sf.net/tracker/index.php?func=detail&aid=1593307&group_id=2435&atid=102435

ce> 3) I read 
ce> http://sourceware.org/binutils/docs-2.17/ld/Options.html#index-g_t_002d_002dversion_002dscript_003d_0040var_007bversion_002dscriptfile_007d-219 
ce> that version-script was only useful on ELF platforms

 Yes, I've just disabled its use for Win32.

ce> 4) I think the introduction of ${wx_top_builddir} has later problems:
ce> Can't open .lib file: /c/wx/wxWidgets.cje2/mymsys/lib/libwx_based-2.7.dll.a
ce> collect2: ld returned 1 exit status

 This was just fixed in bakefile itself. It does mean that bakefile >
0.2.1-pre1 needs to be used for makefile generation for now.

ce> Is using a relative path of wx_top_builddir
ce> wx_top_builddir = ./
ce> in Makefile possible; it seems to fix builds done in wxWidgets/mymsys

 This would work for top level Makefile only but not for the makefiles in
the samples which would get the wrong wx_top_builddir then (just passing on
Vaclav's explanation...).

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list