Hi all, i'm kinda new around here, cus i don't have eny posts but i browsed this forum for help in coding but now i couldn't find the answer for this.
I used this tutorial (
http://www.mt-wudan.com/wu_tut.php?t=jk2_classes) to add classes to my mod but when i try to build it it gives me some "unresolved external symbol" error and i could only build the jampgamex86.dll. Here is what the output screen shows me:
1>------ Build started: Project: botlib, Configuration: Debug(SH) Win32 ------ 2>------ Build started: Project: JK2game, Configuration: Debug(SH) Win32 ------ 1>Compiling... 2>Compiling... 1>l_precomp.cpp 2>g_cmds.c 1>c:\program files\microsoft visual studio 8\vc\include\stddef.h(200) : error C2371: 'size_t' : redefinition; different basic types 1> d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\predefined c++ types (compiler internal)(19) : see declaration of 'size_t' 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(105) : error C2440: 'initializing' : cannot convert from 'void *' to 'define_t **' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(265) : error C2440: 'return' : cannot convert from 'void *' to 'token_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(269) : error C2440: '=' : cannot convert from 'void *' to 'token_s *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(368) : error C2440: '=' : cannot convert from 'void *' to 'token_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(389) : error C2440: '=' : cannot convert from 'void *' to 'token_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(391) : error C2440: '=' : cannot convert from 'void *' to 'token_t *' 2>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\game\g_cmds.c(214 9) : warning C4101: 'i' : unreferenced local variable 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(434) : error C2440: '=' : cannot convert from 'void *' to 'token_s *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(455) : error C2440: '=' : cannot convert from 'void *' to 'char *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(456) : error C2440: '=' : cannot convert from 'void *' to 'char *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(595) : error C2440: 'return' : cannot convert from 'void *' to 'define_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(612) : error C2440: 'return' : cannot convert from 'void *' to 'define_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 2>g_client.c 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(679) : error C2440: 'initializing' : cannot convert from 'void *' to 'char *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(739) : error C2664: 'time' : cannot convert parameter 1 from 'void *' to 'time_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(754) : error C2664: 'time' : cannot convert parameter 1 from 'void *' to 'time_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(769) : error C2440: '=' : cannot convert from 'void *' to 'token_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(770) : error C2440: '=' : cannot convert from 'void *' to 'token_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(810) : error C2440: '=' : cannot convert from 'void *' to 'token_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(811) : error C2440: '=' : cannot convert from 'void *' to 'token_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(828) : error C2440: '=' : cannot convert from 'void *' to 'token_s *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(866) : error C2440: '=' : cannot convert from 'void *' to 'token_s *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(1098) : error C2440: '=' : cannot convert from 'void *' to 'char *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(1099) : error C2440: '=' : cannot convert from 'void *' to 'char *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(1130) : error C2440: '=' : cannot convert from 'void *' to 'define_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(1240) : error C2440: '=' : cannot convert from 'void *' to 'token_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(1265) : error C2440: '=' : cannot convert from 'void *' to 'token_s *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(1289) : error C2440: '=' : cannot convert from 'void *' to 'token_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(1299) : error C2440: '=' : cannot convert from 'void *' to 'token_s *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(1350) : error C2440: '=' : cannot convert from 'void *' to 'define_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(1373) : error C2440: 'return' : cannot convert from 'void *' to 'define_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(1492) : error C2440: '=' : cannot convert from 'void *' to 'define_s *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(1493) : error C2440: '=' : cannot convert from 'void *' to 'define_s *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(1495) : error C2440: '=' : cannot convert from 'void *' to 'token_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 2>Generating Code... 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(1496) : error C2440: '=' : cannot convert from 'void *' to 'token_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(1499) : error C2440: '=' : cannot convert from 'void *' to 'token_s *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(1505) : error C2440: '=' : cannot convert from 'void *' to 'token_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(1506) : error C2440: '=' : cannot convert from 'void *' to 'token_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(1509) : error C2440: '=' : cannot convert from 'void *' to 'token_s *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(1533) : error C2440: '=' : cannot convert from 'void *' to 'define_s *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(1751) : error C2440: '=' : cannot convert from 'void *' to 'operator_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(1752) : error C2440: '=' : cannot convert from 'void *' to 'value_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(1802) : error C2440: '=' : cannot convert from 'void *' to 'value_s *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(1843) : error C2440: '=' : cannot convert from 'void *' to 'value_s *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(1965) : error C2440: '=' : cannot convert from 'void *' to 'operator_s *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(2200) : error C2440: '=' : cannot convert from 'void *' to 'token_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(2201) : error C2440: '=' : cannot convert from 'void *' to 'token_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(2211) : error C2440: '=' : cannot convert from 'void *' to 'token_s *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(2220) : error C2440: '=' : cannot convert from 'void *' to 'token_s *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(2245) : error C2440: '=' : cannot convert from 'void *' to 'token_s *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(2305) : error C2440: '=' : cannot convert from 'void *' to 'token_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(2306) : error C2440: '=' : cannot convert from 'void *' to 'token_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(2316) : error C2440: '=' : cannot convert from 'void *' to 'token_s *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(2325) : error C2440: '=' : cannot convert from 'void *' to 'token_s *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(2353) : error C2440: '=' : cannot convert from 'void *' to 'token_s *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(2402) : error C2664: 'PC_Evaluate' : cannot convert parameter 3 from 'void *' to 'double *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(2418) : error C2664: 'PC_Evaluate' : cannot convert parameter 3 from 'void *' to 'double *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(2493) : error C2664: 'PC_Evaluate' : cannot convert parameter 3 from 'void *' to 'double *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(2517) : error C2664: 'PC_Evaluate' : cannot convert parameter 2 from 'void *' to 'long *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 2>Linking... 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(2551) : error C2440: 'initializing' : cannot convert from 'void *' to 'char *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(2551) : error C2440: 'initializing' : cannot convert from 'void *' to 'int (__cdecl *)(source_t *)' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(2598) : error C2664: 'PC_DollarEvaluate' : cannot convert parameter 3 from 'void *' to 'double *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(2626) : error C2664: 'PC_DollarEvaluate' : cannot convert parameter 2 from 'void *' to 'long *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(2652) : error C2440: 'initializing' : cannot convert from 'void *' to 'char *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(2652) : error C2440: 'initializing' : cannot convert from 'void *' to 'int (__cdecl *)(source_t *)' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(3054) : error C2440: 'return' : cannot convert from 'void *' to 'source_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(3056) : error C2440: '=' : cannot convert from 'void *' to 'script_s *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(3063) : error C2440: '=' : cannot convert from 'void *' to 'token_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(3064) : error C2440: '=' : cannot convert from 'void *' to 'define_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(3065) : error C2440: '=' : cannot convert from 'void *' to 'indent_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(3088) : error C2440: 'return' : cannot convert from 'void *' to 'source_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(3089) : error C2440: '=' : cannot convert from 'void *' to 'script_s *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(3096) : error C2440: '=' : cannot convert from 'void *' to 'token_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(3097) : error C2440: '=' : cannot convert from 'void *' to 'define_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(3098) : error C2440: '=' : cannot convert from 'void *' to 'indent_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(3153) : error C2440: '=' : cannot convert from 'void *' to 'define_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>d:\programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\l_precomp. cpp(3222) : error C2440: '=' : cannot convert from 'void *' to 'source_t *' 1> Conversion from 'void*' to pointer to non-'void' requires an explicit cast 1>Creating browse information file... 1>Microsoft Browse Information Maintenance Utility Version 8.00.50727 1>Copyright (C) Microsoft Corporation. All rights reserved. 1>Build log was saved at "file://d:\Programing stuff\ja_sdk\ja_sdk_fixed\codemp\botlib\Debug(SH)\ BuildLog.htm" 1>botlib - 76 error(s), 0 warning(s) 2>Embedding manifest... 2>Creating browse information file... 3>------ Build started: Project: JK2cgame, Configuration: Debug(SH) Win32 ------ 3>Linking... 2>Microsoft Browse Information Maintenance Utility Version 8.00.50727 2>Copyright (C) Microsoft Corporation. All rights reserved. 2>Build log was saved at "file://d:\Programing stuff\ja_sdk\ja_sdk_fixed\codemp\game\Debug(SH)\Bu ildLog.htm" 2>JK2game - 0 error(s), 1 warning(s) 4>------ Build started: Project: ui, Configuration: Debug(SH) Win32 ------ 4>Linking... 4> Creating library .\../Debug/uix86.lib and object .\../Debug/uix86.exp 4>ui_main.obj : error LNK2019: unresolved external symbol _min referenced in function _Text_PaintWithCursor 4>../Debug/uix86.dll : fatal error LNK1120: 1 unresolved externals 4>Build log was saved at "file://d:\Programing stuff\ja_sdk\ja_sdk_fixed\codemp\ui\Debug(SH)\Buil dLog.htm" 4>ui - 2 error(s), 0 warning(s) 3> Creating library .\../Debug/cgamex86.lib and object .\../Debug/cgamex86.exp 3>cg_players.obj : error LNK2019: unresolved external symbol _max referenced in function _CG_Player 3>cg_view.obj : error LNK2019: unresolved external symbol _powf referenced in function _CG_UpdateThirdPersonTargetDamp 3>..\Debug\cgamex86.dll : fatal error LNK1120: 2 unresolved externals 3>Build log was saved at "file://d:\Programing stuff\ja_sdk\ja_sdk_fixed\codemp\cgame\Debug(SH)\B uildLog.htm" 3>JK2cgame - 3 error(s), 0 warning(s) ========== Build: 1 succeeded, 3 failed, 0 up-to-date, 0 skipped ==========
and this is what woun't let me build:
4> Creating library .\../Debug/uix86.lib and object .\../Debug/uix86.exp 4>ui_main.obj : error LNK2019: unresolved external symbol _min referenced in function _Text_PaintWithCursor 4>../Debug/uix86.dll : fatal error LNK1120: 1 unresolved externals
3> Creating library .\../Debug/cgamex86.lib and object .\../Debug/cgamex86.exp 3>cg_players.obj : error LNK2019: unresolved external symbol _max referenced in function _CG_Player 3>cg_view.obj : error LNK2019: unresolved external symbol _powf referenced in function _CG_UpdateThirdPersonTargetDamp 3>..\Debug\cgamex86.dll : fatal error LNK1120: 2 unresolved externals
Here are the build logs:
www.freewebs.com/home-rpglegend/buildlog.htm)
Please help!