When I try to compile a GMod module I get (only) this error.
[code]error LNK2001: unresolved external symbol "void * (__cdecl*__cdecl Sys_GetFactory(char const *))(char const *,int *)" (?Sys_GetFactory@@YAP6APAXPBDPAH@Z0@Z)[/code]
Any ideas why?
Thanks.
Post the code? I've done "some" modules and know some C++ and may be able to help.
You need to link against tier0 and tier1 for that method.
[QUOTE=TehBigA;15945506]Post the code? I've done "some" modules and know some C++ and may be able to help.[/QUOTE]
Nice Avatar.
You have a missing .lib file(s). Look at [url=http://wiki.garrysmod.com/?title=Microsoft_Visual_C]this[/url].
I had a problem after linking against those libs. I had to add MSVCRT.lib to the Ignore Specific Library field. Only then it would compile.
I have the same problem and I did everything as on this tutorial: [url]http://wiki.garrysmod.com/?title=Microsoft_Visual_C[/url]
Any ideas why?
Also make sure you're compiling in Release mode with Multi-Byte characters, that also solves a couple of problems.
[QUOTE=dakerArt;15957812]I have the same problem and I did everything as on this tutorial: [url]http://wiki.garrysmod.com/?title=Microsoft_Visual_C[/url]
Any ideas why?[/QUOTE]
-snip-
BUMP FOR BLACK LIVES MATTER
Sorry, you need to Log In to post a reply to this thread.