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
{{ message }}
This repository was archived by the owner on Jan 12, 2022. It is now read-only.
The emcc linker property page contains an Additional Library Directories property, just like the Win32 link property page. Unfortunately this property is not useful with the emcc linker (gcc link) because -L directives (which is how these directories are passed) are only used to search for libraries specified with -l directives. vs-tool does not use -l. It simply appends the libraries specified in the "Additional Dependencies" property to the end of the link command. This is the same way the corresponding Win32 properties are handled but in that case the linker searches the /L directories.
I propose that vs-tool specify the Additional Dependencies using -l directives. This does mean the library name will have to be changed, removing any 'lib' prefix and '.lib' extension. The extension likely has to be changed to .bc anyway so this is probably not too big an issue.
Currently you have to change the library name anyway to add its relative path from the MSVS project file otherwise it will not be found in an Emscripten config generated from a Win32 config that uses Additional Library Directories.