Skip to content
New issue

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

Error while building #154

Open
IslamMachido opened this issue May 2, 2023 · 4 comments
Open

Error while building #154

IslamMachido opened this issue May 2, 2023 · 4 comments

Comments

@IslamMachido
Copy link

I tried to compile script for GTA 3 with Visual Studio 2019 but i have problem

Error LNK1181 cannot open input file 'plugin_iii.lib'

Although I followed steps to run plugin-sdk by Visual Studio 2019

@abumsd7
Copy link

abumsd7 commented Jul 7, 2023

you have to build the plugin_iii project first in plugin.sln

@dewxo
Copy link

dewxo commented Jun 27, 2024

you have to build the plugin_iii project first in plugin.sln

Thanks for helping me I didn't know that as well, im just starting in this world

@nathan130200
Copy link

nathan130200 commented Jul 15, 2024

Broken too.

D:\GTAPluginSDK\safetyhook\safetyhook.hpp(136,24): error C2039: 'expected': is not a member of 'std'
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(136,32): error C2143: syntax error: missing ';' before '<'
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(136,24): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(136,6): warning C4869: 'nodiscard' may only be applied to classes, enumerations, and functions
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(136,73): error C2238: unexpected token(s) preceding ';'
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(143,24): error C2039: 'expected': is not a member of 'std'
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(143,32): error C2143: syntax error: missing ';' before '<'
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(143,24): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(143,6): warning C4869: 'nodiscard' may only be applied to classes, enumerations, and functions
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(144,104): error C2238: unexpected token(s) preceding ';'
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(171,24): error C2039: 'expected': is not a member of 'std'
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(171,32): error C2143: syntax error: missing ';' before '<'
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(171,24): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(171,6): warning C4869: 'nodiscard' may only be applied to classes, enumerations, and functions
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(172,104): error C2238: unexpected token(s) preceding ';'
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(176,31): error C2039: 'expected': is not a member of 'std'
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(176,39): error C2143: syntax error: missing ';' before '<'
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(176,31): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(176,6): warning C4869: 'nodiscard' may only be applied to classes, enumerations, and functions
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(177,90): error C2238: unexpected token(s) preceding ';'
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(204,9): error C2061: syntax error: identifier 'FnPtr'
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(204,31): error C2143: syntax error: missing ';' before '{'
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(204,31): error C2447: '{': missing function header (old-style formal list?)
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(228,20): error C2039: 'optional': is not a member of 'std'
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(228,28): error C2988: unrecognizable template declaration/definition
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(228,28): error C2143: syntax error: missing ';' before '<'
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(228,28): error C2059: syntax error: '<'
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(601,37): error C2955: 'safetyhook::Context32': use of class template requires template argument list
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(891,26): error C2955: 'safetyhook::InlineHook': use of class template requires template argument list
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(897,40): error C2065: 'FnPtr': undeclared identifier
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(897,46): error C2062: type 'auto' unexpected
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(897,83): error C2143: syntax error: missing ';' before '{'
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(897,83): error C3837: attributes are not allowed in this context
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(897,83): error C2447: '{': missing function header (old-style formal list?)
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(905,58): error C2955: 'safetyhook::Context32': use of class template requires template argument list
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(905,23): error C2955: 'safetyhook::MidHook': use of class template requires template argument list
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(911,34): error C2065: 'FnPtr': undeclared identifier
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(911,40): error C2062: type 'auto' unexpected
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(911,76): error C2143: syntax error: missing ';' before '{'
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(911,76): error C3837: attributes are not allowed in this context
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(911,76): error C2447: '{': missing function header (old-style formal list?)
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(918,23): error C2955: 'safetyhook::VmtHook': use of class template requires template argument list
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(925,41): error C2955: 'safetyhook::VmtHook': use of class template requires template argument list
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(925,60): error C2061: syntax error: identifier 'FnPtr'
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(925,22): error C2955: 'safetyhook::VmHook': use of class template requires template argument list
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(925,22): error C2027: use of undefined type 'safetyhook::VmHook'
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(925,22): error C2079: 'safetyhook::create_vm' uses undefined class 'safetyhook::VmHook'
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(926,21): error C2027: use of undefined type 'safetyhook::VmtHook'
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(926,44): error C2065: 'destination': undeclared identifier
1>D:\GTAPluginSDK\safetyhook\safetyhook.hpp(927,21): error C2672: 'std::move': no matching overloaded function found
1>D:\GTAPluginSDK\injector\assembly.hpp(17,40): error C2955: 'safetyhook::Context32': use of class template requires template argument list
1>C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\include\numbers(11): warning STL4038: The contents of <numbers> are available only with C++20 or later.
1>D:\GTAPluginSDK\shared\Patch.h(125,80): error C2955: 'safetyhook::Context32': use of class template requires template argument list
1>D:\GTAPluginSDK\shared\Patch.h(125,73): error C2955: 'safetyhook::Context32': use of class template requires template argument list
1>D:\GTAPluginSDK\shared\Patch.h(125,67): error C2955: 'safetyhook::Context32': use of class template requires template argument list
1>D:\GTAPluginSDK\shared\Patch.h(127,33): error C2955: 'safetyhook::Context32': use of class template requires template argument list
1>D:\GTAPluginSDK\shared\Patch.h(127,26): error C2955: 'safetyhook::Context32': use of class template requires template argument list
1>D:\GTAPluginSDK\shared\Patch.h(127,20): error C2955: 'safetyhook::Context32': use of class template requires template argument list
1>D:\GTAPluginSDK\shared\Patch.h(129,40): error C2955: 'safetyhook::Context32': use of class template requires template argument list
1>D:\GTAPluginSDK\shared\Patch.h(129,33): error C2955: 'safetyhook::Context32': use of class template requires template argument list
1>D:\GTAPluginSDK\shared\Patch.h(129,30): error C2955: 'safetyhook::Context32': use of class template requires template argument list
1>D:\GTAPluginSDK\shared\Patch.h(131,38): error C2955: 'safetyhook::Context32': use of class template requires template argument list

Even setting c++/std version to preview its unable to compile.

@Alkimical
Copy link

you have to build the plugin_iii project first in plugin.sln

Do you mean build plugin_iii in solution explorer first and THEN use menu for building: Build > Build solution as the guide say?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants