C++ 在Ubuntu上使用Mingw-w64交叉编译时包括库

C++ 在Ubuntu上使用Mingw-w64交叉编译时包括库,c++,mingw-w64,C++,Mingw W64,我正在尝试使用以下库交叉编译程序: #include <iostream> #include <string> #include <curl/curl.h> #include <bits/stdc++.h> #include <gmp.h> #include <fcntl.h> #include <unistd.h> #include <vector> 如果没有#include,#include将失

我正在尝试使用以下库交叉编译程序:

#include <iostream>
#include <string>
#include <curl/curl.h>
#include <bits/stdc++.h>
#include <gmp.h>
#include <fcntl.h>
#include <unistd.h>
#include <vector>
如果没有
#include
#include
将失败

查看
/usr/x86_64-w64-mingw32/include
,这些库都不存在。如何将其他库添加到
mingw-w64

轻松日

下载源代码tarball。摘录:

tar zxvf mylibrary.tar.gz

cd-mylibrary

/configure--target x86_64-w64-mingw32--prefix/usr/x86_64-w64-mingw32

汇编:

x86_64-w64-mingw32-g++myprogram.cpp-o myprogram.exe-std=c++11-静态

api_1.cpp:3:10: fatal error: curl/curl.h: No such file or directory
 #include <curl/curl.h>
      ^~~~~~~~~~~~~
compilation terminated.