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
xmake project -k vsxmake -m "Debug" -a "x64"checking for Debug.x64 ...checking for Microsoft Visual Studio (x64) version ... 2022checking for cstddef ... okchecking for cstddef ... okchecking for FileOperation ... okchecking for array ... okchecking for string ... okchecking for iostream ... okchecking for ostream ... okchecking for istream ... okchecking for POSIX_API ... nochecking for fstream ... okchecking for concepts ... okchecking for concepts ... okchecking for stdint.h ... okchecking for c++ ... nochecking for msvcrt ... okchecking for stdint.h ... okchecking for MyStdHaveBasicHeaders ... okchecking for msvcrtd ... okerror: no suitable linker for headeronly.{}
描述问题
我在Windows下尝试着把一个用xmake构建的headeronly项目转换成vs2022的项目,
我试着这么做:
config过程一切正常,xmake build也可在正常执行。但在执行xmake project时出现了错误
error: no suitable linker for headeronly.{}
显然,一个只有头文件的库不需要链接器才对。
期待的结果
vs2022是支持共享项目的。这一类headeronly的模板库应该变成C++的共享项目,以便获得正确的结果。
错误信息
相关环境
其他信息
我是这么配置target的
同时在headeronly的target里并没有添加ldflags,只是有一些宏定义与扩展指令集的使用。
The text was updated successfully, but these errors were encountered: