You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently with flexlink, if you have a C++ binding and want to link it statically in your executable to avoid having to carry the dll around the only option that works is to manually set the name for the archive file like this (with MinGW):
-l:libstdc++.a -l:libpthread.a -Wl,-static
It would be nice if something like -lstdc++ -static was a thing so that flexlink can find the correct archive file as by default -lstdc++ -Wl,-static will use libstdc++.dll.a which is the shared version of libstdc++ and not the static one.
The text was updated successfully, but these errors were encountered:
Currently with flexlink, if you have a C++ binding and want to link it statically in your executable to avoid having to carry the dll around the only option that works is to manually set the name for the archive file like this (with MinGW):
It would be nice if something like
-lstdc++ -static
was a thing so that flexlink can find the correct archive file as by default-lstdc++ -Wl,-static
will uselibstdc++.dll.a
which is the shared version of libstdc++ and not the static one.The text was updated successfully, but these errors were encountered: