We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
4.0.x
BIT7Z_AUTO_FORMAT
v23.01
7z.dll / 7z.so
MSVC
MSVC2015
x86
Windows
Windows10
Build a dll link bit7z.lib with BIT7Z_AUTO_FORMAT then show link error
16:21:57:379 2>bit7z.lib(bitinputarchive.obj) : error LNK2001: 无法解析的外部符号 "class bit7z::BitInFormat const & __cdecl bit7z::detect_format_from_extension(class ghc::filesystem::path const &)" (?detect_format_from_extension@bit7z@@YAABVBitInFormat@1@ABVpath@filesystem@ghc@@@z) 16:21:57:379 2>bit7z.lib(bitinputarchive.obj) : error LNK2001: 无法解析的外部符号 "class bit7z::BitInFormat const & __cdecl bit7z::detect_format_from_signature(struct IInStream *)" (?detect_format_from_signature@bit7z@@YAABVBitInFormat@1@PAUIInStream@@@z) fatal error LNK1120: 2 个无法解析的外部命令
No response
internal/formatdetect.cpp:
#ifdef BIT7Z_AUTO_FORMAT #include #include "internal/formatdetect.hpp"
change to
#include "internal/formatdetect.hpp" #ifdef BIT7Z_AUTO_FORMAT #include
then build success. THANKS.
The text was updated successfully, but these errors were encountered:
Fix manually linking bit7z when enabling BIT7Z_AUTO_FORMAT
9fd6793
Close issue #173
Hi! Thank you for reporting the issue! Yesterday, I pushed a fix to the develop branch. I'll release a new version of bit7z with the fix soon.
develop
Sorry, something went wrong.
Fixed in v4.0.4.
rikyoz
No branches or pull requests
bit7z version
4.0.x
Compilation options
BIT7Z_AUTO_FORMAT
7-zip version
v23.01
7-zip shared library used
7z.dll / 7z.so
Compilers
MSVC
Compiler versions
MSVC2015
Architecture
x86
Operating system
Windows
Operating system versions
Windows10
Bug description
Build a dll link bit7z.lib with BIT7Z_AUTO_FORMAT then show link error
16:21:57:379 2>bit7z.lib(bitinputarchive.obj) : error LNK2001: 无法解析的外部符号 "class bit7z::BitInFormat const & __cdecl bit7z::detect_format_from_extension(class ghc::filesystem::path const &)" (?detect_format_from_extension@bit7z@@YAABVBitInFormat@1@ABVpath@filesystem@ghc@@@z)
16:21:57:379 2>bit7z.lib(bitinputarchive.obj) : error LNK2001: 无法解析的外部符号 "class bit7z::BitInFormat const & __cdecl bit7z::detect_format_from_signature(struct IInStream *)" (?detect_format_from_signature@bit7z@@YAABVBitInFormat@1@PAUIInStream@@@z)
fatal error LNK1120: 2 个无法解析的外部命令
Steps to reproduce
No response
Expected behavior
internal/formatdetect.cpp:
#ifdef BIT7Z_AUTO_FORMAT
#include
#include "internal/formatdetect.hpp"
change to
#include "internal/formatdetect.hpp"
#ifdef BIT7Z_AUTO_FORMAT
#include
then build success.
THANKS.
Relevant compilation output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: