lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, Dec 16, 2010 at 6:02 AM, Cosmin Apreutesei wrote:

>Not sure which is the best way to deal with these C libraries in Windows.



This worked for me on a different project, your mileage may vary...

If you remove (or hide) these files from your mingw installation:
  libstdc++-6.dll
  libstdc++.dll.a
  libstdc++.la

It will force the linker to use the remaining static lib:
  libstdc++.a


You might also need to pass the -static-libgcc linker option to gcc.


 - Jeff