Jump to content

Home

Build errors after i addes classes in code.


jadar_koal

Recommended Posts

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 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(2149) : 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)\BuildLog.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)\BuildLog.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)\BuildLog.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!

Link to comment
Share on other sites

i don't build the botlib, i only build the jk2cgame, jk2game and the ui

the thing is that the jk2game builds succesful but the jk2cgame and the ui don't build cus of some "error LNK2019" thing.

here is what the output screen says when i try to build the jk2cgame:

 

1>------ Build started: Project: JK2cgame, Configuration: Debug(SH) Win32 ------

1>Linking...

1> Creating library .\../Debug/cgamex86.lib and object .\../Debug/cgamex86.exp

1>cg_players.obj : error LNK2019: unresolved external symbol _max referenced in function _CG_Player

1>cg_view.obj : error LNK2019: unresolved external symbol _powf referenced in function _CG_UpdateThirdPersonTargetDamp

1>..\Debug\cgamex86.dll : fatal error LNK1120: 2 unresolved externals

1>Build log was saved at "file://d:\Programing stuff\ja_sdk\ja_sdk_fixed\codemp\cgame\Debug(SH)\BuildLog.htm"

1>JK2cgame - 3 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

and when i try to build the ui gives me this:

 

1>------ Build started: Project: ui, Configuration: Debug(SH) Win32 ------

1>Linking...

1> Creating library .\../Debug/uix86.lib and object .\../Debug/uix86.exp

1>ui_main.obj : error LNK2019: unresolved external symbol _min referenced in function _Text_PaintWithCursor

1>../Debug/uix86.dll : fatal error LNK1120: 1 unresolved externals

1>Build log was saved at "file://d:\Programing stuff\ja_sdk\ja_sdk_fixed\codemp\ui\Debug(SH)\BuildLog.htm"

1>ui - 2 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Link to comment
Share on other sites

The powf one is a common error that you can find elsewhere in this section via search. The other however, I'm not sure. That sounds like something you had edited.

 

Edit: actually you might need to check the min and max defines in the q_shared file(s).

 

*I thought that it was MIN and MAX in this code and that windows sdk uses min/max.*

Link to comment
Share on other sites

i comented Text_PaintWithCursor out and succeeded to build the ui and the jk2_game but i can't do enything with the jk2_cgame

i searched for CG_Player in the cg_players.c and found this:

 

/*

===============

CG_Player

===============

*/

#include "../namespace_begin.h"

int BG_EmplacedView(vec3_t baseAngles, vec3_t angles, float *newYaw, float constraint);

#include "../namespace_end.h"

 

float CG_RadiusForCent( centity_t *cent )

{

if ( cent->currentState.eType == ET_NPC )

{

if (cent->currentState.NPC_class == CLASS_VEHICLE &&

cent->m_pVehicle &&

cent->m_pVehicle->m_pVehicleInfo->g2radius)

{ //has override

return cent->m_pVehicle->m_pVehicleInfo->g2radius;

}

else if ( cent->currentState.g2radius )

{

return cent->currentState.g2radius;

}

}

else if ( cent->currentState.g2radius )

{

return cent->currentState.g2radius;

}

return 64.0f;

}

 

i tryed to coment it out but i got more errors and didn't get rid of the actual error. this code is at line 8298 in my sdk

 

EDIT: i succeeded to handle the CG_UpdateThirdPersonTargetDamp and now the only error i have is CG_Player

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...