On Wed, Jan 28, 2009 at 06:39:12PM -0700, Max Jonathan Spaulding wrote:
> Hi all,
> 
> I am having a problems running an application cross compiled on fedora with 
> mingw that uses boost regex.  There appear to only be import libraries for 
> boost installed and I can't find libboost_regex.dll after spending an hour or 
> two googling.  Does anyone have this working?  Or can anyone point me in a 
> direction here?

As Erik said, DLLs are installed in %{_mingw32_bindir}[1] (because
Windows likes to find its DLLs on the current PATH).

But for linking, this should work:

  i686-pc-mingw32-g++ foo.cpp -lboost_regex

In the current implementation this will statically link against the
implib (in .../lib/libboost_regex.dll.a) and the implib contains the
machinery to dynamically link with the DLL at runtime.

Rich.

[1] You can get the value of RPM macros by doing:

  rpm --showrc | less

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
_______________________________________________
fedora-mingw mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/fedora-mingw

Reply via email to