Replies: 2 comments 4 replies
-
没加 add_packages? |
Beta Was this translation helpful? Give feedback.
2 replies
-
target 里面缺少 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
新手遇到问题望解答
我的xmake.lua如下
add_requires("cryptopp")
add_rules("mode.debug", "mode.release")
target("test")
set_kind("binary")
add_files("src/*.cpp")
我的cpp文件如下
#include
#include <cryptopp/cryptlib.h>
#include <cryptopp/hex.h>
using namespace std;
int main(int argc, char** argv)
{
cout << "hello world!" << endl;
return 0;
}
PS E:\dWork\test\xmake\test> xmake
checking for Microsoft Visual Studio (x64) version ... 2019
[ 25%]: compiling.release src\main.cpp
error: main.cpp
src\main.cpp(2): fatal error C1083: 无法打开包括文件: “cryptopp/cryptlib.h”: No such file or directory
xmake编译提示找不到头文件,我觉得很奇怪,因为代码cryptopp的库已经下载下来了,路径上也有,头文件也有
C:\Users\Administrator\AppData\Local.xmake\packages\c\cryptopp\8.7.0\a8c8af43ddfd46a2aff900c28da0b6d7
这个路径已经有文件
bin/
include/
lib/
share/
manifest.txt
references.txt
其中include/cryptopp/cryptlib.h 这个文件是存在的
现在不知道怎么整了。
Beta Was this translation helpful? Give feedback.
All reactions