Fix linking error

This commit is contained in:
Tindy X committed 2020-11-03 20:01:15 +08:00
1 parent f7352abe17
commit 069d1c00f6
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@ set -xe
git clone https://github.com/curl/curl --depth=1 git clone https://github.com/curl/curl --depth=1
cd curl cd curl
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_USE_LIBSSH2=OFF -DHTTP_ONLY=ON -DCMAKE_USE_SCHANNEL=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_CURL_EXE=OFF -DCMAKE_INSTALL_PREFIX="$MINGW_PREFIX" -G "Unix Makefiles" . cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_USE_LIBSSH2=OFF -DHTTP_ONLY=ON -DCMAKE_USE_SCHANNEL=ON -DBUILD_SHARED_LIBS=OFF -DBUILD_CURL_EXE=OFF -DCMAKE_INSTALL_PREFIX="$MINGW_PREFIX" -G "Unix Makefiles" -DHAVE_LIBIDN2=OFF .
make install -j4 make install -j4
cd .. cd ..
@@ -36,5 +36,5 @@ cd ..
cmake -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" . cmake -DCMAKE_BUILD_TYPE=Release -G "Unix Makefiles" .
make -j4 make -j4
rm subconverter.exe rm subconverter.exe
g++ $(find CMakeFiles/subconverter.dir/src -name "*.obj") curl/lib/libcurl.a -o base/subconverter.exe -static -levent -lpcre2-8 -lduktape -lduktape_module -lyaml-cpp -lidn2 -lunistring -liconv -liphlpapi -lcrypt32 -lws2_32 -lwsock32 -lz -s g++ $(find CMakeFiles/subconverter.dir/src -name "*.obj") curl/lib/libcurl.a -o base/subconverter.exe -static -levent -lpcre2-8 -lduktape -lduktape_module -lyaml-cpp -liphlpapi -lcrypt32 -lws2_32 -lwsock32 -lz -s
mv base subconverter mv base subconverter
+1 -1
View File
@@ -5,11 +5,11 @@
#include <iosfwd> #include <iosfwd>
#include <iostream> #include <iostream>
#include <cstdio> #include <cstdio>
#include <cstdlib>
//#include <filesystem> //#include <filesystem>
#include <unistd.h> #include <unistd.h>
#include <stdarg.h> #include <stdarg.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <cstdlib>
/* /*
#ifdef USE_STD_REGEX #ifdef USE_STD_REGEX