Report C2371 slash LNK1181 in Help and Support Posted October 6, 2018 I have been having big issues with CMAKE but have been having good luck with going to Property Pages / Linker / Input / Additional Dependencies This is the last page I have with errors. -------------------------------------This is my Details in it. ---------------------- ..\shared\Release\shared.lib ..\database\Release\database.lib C:\Program Files\MySQL\MySQL Server 8.0\lib\libmysql.lib ..\proto\Release\proto.lib ..\..\common\Release\common.lib C:\local\boost_1_66_0\lib64-msvc-14.1\libboost_system-vc141-mt-x64-1_66.lib C:\local\boost_1_66_0\lib64-msvc-14.1\libboost_filesystem-vc141-mt-x64-1_66.lib C:\local\boost_1_66_0\lib64-msvc-14.1\libboost_thread-vc141-mt-x64-1_66.lib C:\local\boost_1_66_0\lib64-msvc-14.1\libboost_program_options-vc141-mt-x64-1_66.lib C:\local\boost_1_66_0\lib64-msvc-14.1\libboost_iostreams-vc141-mt-x64-1_66.lib ..\..\..\dep\fmt\Release\fmt.lib ..\..\..\dep\g3dlite\Release\g3dlib.lib ..\..\..\dep\recastnavigation\Detour\Release\Detour.lib ..\..\..\dep\protobuf\Release\protobuf.lib ..\..\..\dep\zlib\Release\zlib.lib ..\..\..\dep\gsoap\Release\gsoap.lib C:\Program Files\OpenSSL-Win64\lib\VC\libcrypto64MD.lib C:\Program Files\OpenSSL-Win64\lib\VC\libcrypto64MT.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib --------------------------------------------------------------------------------------- 1>------ Build started: Project: revision_data.h, Configuration: Release x64 ------ 2>------ Build started: Project: database, Configuration: Release x64 ------ 2>AdhocStatement.cpp 2>c:\program files\mysql\mysql server 8.0\include\mysql\client_plugin.h(108): error C2371: 'MYSQL': redefinition; different basic types 2>c:\legion\source\src\server\database\database\databaseenvfwd.h(48): note: see declaration of 'MYSQL' 2>c:\program files\mysql\mysql server 8.0\include\mysql.h(121): error C2371: 'MYSQL_FIELD': redefinition; different basic types 2>c:\legion\source\src\server\database\database\databaseenvfwd.h(50): note: see declaration of 'MYSQL_FIELD' 2>c:\program files\mysql\mysql server 8.0\include\mysql.h(291): error C2371: 'MYSQL_STMT': redefinition; different basic types 2>c:\legion\source\src\server\database\database\databaseenvfwd.h(52): note: see declaration of 'MYSQL_STMT' 2>c:\program files\mysql\mysql server 8.0\include\mysql.h(333): error C2371: 'MYSQL_RES': redefinition; different basic types 2>c:\legion\source\src\server\database\database\databaseenvfwd.h(49): note: see declaration of 'MYSQL_RES' 2>c:\program files\mysql\mysql server 8.0\include\mysql.h(619): error C2371: 'MYSQL_BIND': redefinition; different basic types 2>c:\legion\source\src\server\database\database\databaseenvfwd.h(51): note: see declaration of 'MYSQL_BIND' 2>Done building project "database.vcxproj" -- FAILED. 3>------ Build started: Project: bnetserver, Configuration: Release x64 ------ 3>LINK : fatal error LNK1181: cannot open input file '..\database\Release\database.lib' 3>Done building project "bnetserver.vcxproj" -- FAILED. ========== Build: 1 succeeded, 2 failed, 10 up-to-date, 0 skipped ========== 64 Bit version. This is my error report. Cmake says I am good. But i had a bunch of mishaps in linking the ssl part I have manually gone through and fixed those. Visual Studios 2017 MYSQL 8.0.12 32/64 CMAKE 3.12.3 OpenSSL 64 Current 32 as well installed. BOOST 1.66.0 Any form of help would be greatly appreciated.
C2371 slash LNK1181
in Help and Support
Posted
I have been having big issues with CMAKE but have been having good luck with going to
Property Pages / Linker / Input / Additional Dependencies
This is the last page I have with errors.
-------------------------------------This is my Details in it. ----------------------
..\shared\Release\shared.lib
..\database\Release\database.lib
C:\Program Files\MySQL\MySQL Server 8.0\lib\libmysql.lib
..\proto\Release\proto.lib
..\..\common\Release\common.lib
C:\local\boost_1_66_0\lib64-msvc-14.1\libboost_system-vc141-mt-x64-1_66.lib
C:\local\boost_1_66_0\lib64-msvc-14.1\libboost_filesystem-vc141-mt-x64-1_66.lib
C:\local\boost_1_66_0\lib64-msvc-14.1\libboost_thread-vc141-mt-x64-1_66.lib
C:\local\boost_1_66_0\lib64-msvc-14.1\libboost_program_options-vc141-mt-x64-1_66.lib
C:\local\boost_1_66_0\lib64-msvc-14.1\libboost_iostreams-vc141-mt-x64-1_66.lib
..\..\..\dep\fmt\Release\fmt.lib
..\..\..\dep\g3dlite\Release\g3dlib.lib
..\..\..\dep\recastnavigation\Detour\Release\Detour.lib
..\..\..\dep\protobuf\Release\protobuf.lib
..\..\..\dep\zlib\Release\zlib.lib
..\..\..\dep\gsoap\Release\gsoap.lib
C:\Program Files\OpenSSL-Win64\lib\VC\libcrypto64MD.lib
C:\Program Files\OpenSSL-Win64\lib\VC\libcrypto64MT.lib
kernel32.lib
user32.lib
gdi32.lib
winspool.lib
shell32.lib
ole32.lib
oleaut32.lib
uuid.lib
comdlg32.lib
advapi32.lib
---------------------------------------------------------------------------------------
1>------ Build started: Project: revision_data.h, Configuration: Release x64 ------
2>------ Build started: Project: database, Configuration: Release x64 ------
2>AdhocStatement.cpp
2>c:\program files\mysql\mysql server 8.0\include\mysql\client_plugin.h(108): error C2371: 'MYSQL': redefinition; different basic types
2>c:\legion\source\src\server\database\database\databaseenvfwd.h(48): note: see declaration of 'MYSQL'
2>c:\program files\mysql\mysql server 8.0\include\mysql.h(121): error C2371: 'MYSQL_FIELD': redefinition; different basic types
2>c:\legion\source\src\server\database\database\databaseenvfwd.h(50): note: see declaration of 'MYSQL_FIELD'
2>c:\program files\mysql\mysql server 8.0\include\mysql.h(291): error C2371: 'MYSQL_STMT': redefinition; different basic types
2>c:\legion\source\src\server\database\database\databaseenvfwd.h(52): note: see declaration of 'MYSQL_STMT'
2>c:\program files\mysql\mysql server 8.0\include\mysql.h(333): error C2371: 'MYSQL_RES': redefinition; different basic types
2>c:\legion\source\src\server\database\database\databaseenvfwd.h(49): note: see declaration of 'MYSQL_RES'
2>c:\program files\mysql\mysql server 8.0\include\mysql.h(619): error C2371: 'MYSQL_BIND': redefinition; different basic types
2>c:\legion\source\src\server\database\database\databaseenvfwd.h(51): note: see declaration of 'MYSQL_BIND'
2>Done building project "database.vcxproj" -- FAILED.
3>------ Build started: Project: bnetserver, Configuration: Release x64 ------
3>LINK : fatal error LNK1181: cannot open input file '..\database\Release\database.lib'
3>Done building project "bnetserver.vcxproj" -- FAILED.
========== Build: 1 succeeded, 2 failed, 10 up-to-date, 0 skipped ==========
64 Bit version.
This is my error report.
Cmake says I am good. But i had a bunch of mishaps in linking the ssl part I have manually gone through and fixed those.
Visual Studios 2017
MYSQL 8.0.12 32/64
CMAKE 3.12.3
OpenSSL 64 Current 32 as well installed.
BOOST 1.66.0
Any form of help would be greatly appreciated.