bmx-ng / bmk

The enhanced BlitzMax build program.
zlib License
28 stars 13 forks source link

[SharedLibs] Spaces in directories lead to linker errors #74

Closed GWRon closed 5 years ago

GWRon commented 5 years ago

When trying to build a shared library in a directory with spaces you might run into trouble.

Reason? Missing quotation marks.

"C:/Tools/BlitzMaxNG/MinGW32x86/bin/g++.exe" -Wl,--stack,4194304 -s -mthreads -shared -static-libgcc -o "C:/Projects/Dir with space/file.dll" C:/Projects/Dir with space/file.def -Wl,--out-implib,C:/Projects/Dir with space/file.a "C:/Tools/BlitzMaxNG/tmp/ld.tmp"

So both: .def and .a files need quotation marks

GWRon commented 5 years ago

Changes are in "bmk_util.bmx"

Lines 340, 344, 349 need some CQuote() wraps sb.Append(" ").Append(CQuote(def))