lfnetwork.com mark read register faq members calendar

Thread: Build errors after i addes classes in code.
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 01-07-2008, 04:17 PM   #1
jadar_koal
Lurker
 
Join Date: Jan 2008
Posts: 4
Build errors after i addes classes in code.

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:

Code:
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:

Code:
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
Code:
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!


jadar_koal is offline   you may: quote & reply,
Old 01-07-2008, 04:55 PM   #2
DarthDie
Junior Member
 
DarthDie's Avatar
 
Join Date: May 2005
Location: The Matrix
Posts: 407
Means it cant find those functions. Make sure they are in a place those area's can access.


OJP Sponsors and websites

"...and what about all those screenshots in there of DarthDie with a swastika of demo charges."
DarthDie is offline   you may: quote & reply,
Old 01-08-2008, 02:08 AM   #3
jadar_koal
Lurker
 
Join Date: Jan 2008
Posts: 4
Well i repaired some minor errors in the classes code but still it won't build. I didn't do enything in these files: cg_players.c cg_view.c ui_main.c i only worked in these files: g_client.c g_cmds.c cg_consolecmds.c g_local.h bg_public.h


jadar_koal is offline   you may: quote & reply,
Old 01-08-2008, 02:21 AM   #4
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
Well for 1, you don't need to build the botlib at all.

Also might be more helpful if you pasted a better formatted build log as its very hard to read when its all on 1 line even when copying and pasting it from our end.


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Old 01-08-2008, 01:45 PM   #5
jadar_koal
Lurker
 
Join Date: Jan 2008
Posts: 4
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)\B uildLog.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)\Buil dLog.htm"
1>ui - 2 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


jadar_koal is offline   you may: quote & reply,
Old 01-08-2008, 07:25 PM   #6
ensiform
The Stig
 
ensiform's Avatar
 
Join Date: Nov 2004
Location: Sawtooth Cauldron
Posts: 1,241
Current Game: Borderlands 2
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.*


iojamp project lead / coder
ensiform is offline   you may: quote & reply,
Old 01-09-2008, 01:09 PM   #7
jadar_koal
Lurker
 
Join Date: Jan 2008
Posts: 4
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



Last edited by jadar_koal; 01-09-2008 at 01:34 PM.
jadar_koal is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > JediKnight Series > Editing Central > JA Coding > Build errors after i addes classes in code.

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:34 AM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.