Elitist Jerks
Register
Blogs
Forums


Go Back   Elitist Jerks » The Dung Heap » The Banhammer

 
 
LinkBack Thread Tools
Old 09/12/09, 5:52 AM   #1
• Aldriana
Mike Tyson
 
Night Elf Rogue
 
Doomhammer
Warning for Tauran: 9. Do not sign your posts.

Post: FeralbyNight (Cat & Bear simulation tool)
User: Tauran
Infraction: 9. Do not sign your posts.
Points: 0

Administrative Note:

Message to User:
Please don't sign your posts.
Original Post:
Having some issues compiling FBN. For those of you who are here for the dps discussions skip this post. If your a decent programmer some help would be much appreciated.

I'm trying to compile using two different compilers. Borland's free command line tools and microsoft's free version of visual C++.

I have never compiled a program before so I'm a super noob and don't assume I know anything (like with borland i might just be not inputing a switch or something). With both i get many warnings about conversion from double to integer, which shouldnt be a problem i dont think. Just loss of accuracy not program breaking right?

However the errors are.

for borland:
C:\FBN>bcc32 FeralbyNightv3_2_beta.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
FeralbyNightv3_2_beta.cpp:
Warning W8004 FeralbyNightv3_2_beta.cpp 10527: 'sigmatp' is assigned a value tha
t is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 10527: 'sigma' is assigned a value that
is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 10527: 'avgcycletime' is assigned a valu
e that is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 10558: 'shredMODIF_damage' is assigned a
 value that is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 10558: 'enrage_buff' is assigned a value
 that is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 10558: 'FeralFairieFirexcycle' is assign
ed a value that is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 10558: 'swipexcycle' is assigned a value
 that is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 10558: 'maulxcycle' is assigned a value
that is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 10558: 'laceratexcycle' is assigned a va
lue that is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 10558: 'manglebxcycle' is assigned a val
ue that is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 10558: 'bear_damage' is assigned a value
 that is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 10558: 'IDOL_MUT' is assigned a value th
at is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 10558: 'maxhit' is assigned a value that
 is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 10558: 'maxap' is assigned a value that
is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 10558: 'maxarpen' is assigned a value th
at is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 10558: 'maxhaste' is assigned a value th
at is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 10558: 'maxcrit' is assigned a value tha
t is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 10558: 'move_mode' is assigned a value t
hat is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 10558: 'pw_t' is assigned a value that i
s never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 10558: 'use_mangle_for_sr' is assigned a
 value that is never used in function main(int,char * const * const)
Warning W8057 FeralbyNightv3_2_beta.cpp 10558: Parameter 'argc' is never used in
 function main(int,char * const * const)
Warning W8057 FeralbyNightv3_2_beta.cpp 10558: Parameter 'argv' is never used in
 function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 9666: 'ooc_proc' is assigned a value tha
t is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 8967: 'is_critted' is assigned a value t
hat is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 8966: 'is_hitted' is assigned a value th
at is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 8601: 'att' is assigned a value that is
never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 7933: 'dmg' is assigned a value that is
never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 4472: 'shield_up' is assigned a value th
at is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 4458: 'enrage_mod' is assigned a value t
hat is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 4450: 'l_timer' is assigned a value that
 is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 4441: 'cp_rip' is assigned a value that
is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 4429: 'rage_tot' is assigned a value tha
t is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 4423: 'gcd' is assigned a value that is
never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 4422: 'sr_timer' is assigned a value tha
t is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 4421: 'sr' is assigned a value that is n
ever used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 4416: 'koj_timer' is assigned a value th
at is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 4411: 'rake_timer' is assigned a value t
hat is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 4410: 'rip_timer' is assigned a value th
at is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 4408: 'bdebuff' is assigned a value that
 is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 4407: 'damage' is assigned a value that
is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 4404: 'mdebuff_timer' is assigned a valu
e that is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 4403: 'mdebuff' is assigned a value that
 is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 4195: 'ydamage' is assigned a value that
 is never used in function main(int,char * const * const)
Warning W8004 FeralbyNightv3_2_beta.cpp 4147: 'is_dotted' is assigned a value th
at is never used in function main(int,char * const * const)
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external 'MTRand_int32::p' referenced from C:\FBN\FERALBYNIGHT
V3_2_BETA.OBJ
Error: Unresolved external 'MTRand_int32::seed(unsigned long)' referenced from C
:\FBN\FERALBYNIGHTV3_2_BETA.OBJ
Error: Unresolved external 'MTRand_int32::init' referenced from C:\FBN\FERALBYNI
GHTV3_2_BETA.OBJ
Error: Unresolved external 'MTRand_int32::gen_state()' referenced from C:\FBN\FE
RALBYNIGHTV3_2_BETA.OBJ
Error: Unresolved external 'MTRand_int32::state' referenced from C:\FBN\FERALBYN
IGHTV3_2_BETA.OBJ

C:\FBN>
for Visual C++

1>------ Build started: Project: FBN5, Configuration: Debug Win32 ------
1>Compiling...
1>FeralbyNightv3_2_beta.cpp
1>c:\fbn\mtrand.h(165) : error C2065: 'M_PI' : undeclared identifier
1>c:\fbn\feralbynightv3_2_beta.cpp(4335) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(4428) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(4439) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(4440) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(4628) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(4737) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(4738) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(4756) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(4757) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(4996) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(4997) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(5380) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(5480) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(5489) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(5702) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(5710) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(5737) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(5740) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(5916) : warning C4244: '+=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(5917) : warning C4244: '+=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(6508) : warning C4804: '>=' : unsafe use of type 'bool' in operation
1>c:\fbn\feralbynightv3_2_beta.cpp(6819) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(6842) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(7081) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(7185) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(7208) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(7395) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(7412) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(7498) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(7501) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(7565) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(7574) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(7595) : warning C4244: 'initializing' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(7961) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(7962) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(8346) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(8446) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(8455) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(8668) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(8676) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(8703) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(8706) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(8882) : warning C4244: '+=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(8883) : warning C4244: '+=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(9476) : warning C4804: '>=' : unsafe use of type 'bool' in operation
1>c:\fbn\feralbynightv3_2_beta.cpp(9788) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(9811) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(10050) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(10155) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(10178) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(10365) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(10382) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(10458) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>c:\fbn\feralbynightv3_2_beta.cpp(10461) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
1>fstream.cc
1>c:\borland\bcc55\include\fstream.cc(3) : warning C4068: unknown pragma
1>c:\borland\bcc55\include\fstream.cc(61) : error C2143: syntax error : missing ';' before '<'
1>c:\borland\bcc55\include\fstream.cc(61) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\borland\bcc55\include\fstream.cc(61) : error C2988: unrecognizable template declaration/definition
1>c:\borland\bcc55\include\fstream.cc(61) : error C2059: syntax error : '<'
1>c:\borland\bcc55\include\fstream.cc(61) : error C2039: 'basic_filebuf' : is not a member of '`global namespace''
1>c:\borland\bcc55\include\fstream.cc(80) : error C2039: 'basic_filebuf' : is not a member of '`global namespace''
1>c:\borland\bcc55\include\fstream.cc(81) : error C2143: syntax error : missing ';' before '<'
1>c:\borland\bcc55\include\fstream.cc(88) : error C2143: syntax error : missing ';' before '{'
1>c:\borland\bcc55\include\fstream.cc(88) : error C2447: '{' : missing function header (old-style formal list?)
1>c:\borland\bcc55\include\fstream.cc(117) : error C2143: syntax error : missing ';' before '<'
1>c:\borland\bcc55\include\fstream.cc(117) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\borland\bcc55\include\fstream.cc(117) : error C2086: 'int std::basic_filebuf' : redefinition
1>        c:\borland\bcc55\include\fstream.cc(61) : see declaration of 'std::basic_filebuf'
1>c:\borland\bcc55\include\fstream.cc(117) : error C2988: unrecognizable template declaration/definition
1>c:\borland\bcc55\include\fstream.cc(117) : error C2059: syntax error : '<'
1>c:\borland\bcc55\include\fstream.cc(117) : error C2588: '::~basic_filebuf' : illegal global destructor
1>c:\borland\bcc55\include\fstream.cc(117) : fatal error C1903: unable to recover from previous error(s); stopping compilation
1>MTRand.cpp
1>c:\borland\bcc55\include\mtrand.h(165) : error C2065: 'M_PI' : undeclared identifier
1>Generating Code...
1>Build log was saved at "file://c:\Users\Fraz\Documents\Visual Studio 2008\Projects\FBN5\FBN5\Debug\BuildLog.htm"
1>FBN5 - 18 error(s), 55 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Since the borland compiler already had MTRand.h and MTRand.cpp in its include directory I didn't need include them in the same directory as FBN I still included a copy in the FBN sim source directory.

In visual C++ I included all of the required files under the "header files" folder in the project window. I jsut added them from the Corland folder assuming it could just reference them from there.

System info:
Windows Vista Buisness 64bit Service Pack 2 (could this be the problem?)
Core2 DUO 6600
4 gigs of ram

cant really think of anything else that would matter.

Thanks in advance for the help.

Taurann

Offline
 

Go Back   Elitist Jerks » The Dung Heap » The Banhammer

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning for Zenthia: 9. Do not sign your posts. Aldriana The Banhammer 0 09/01/09 5:28 AM
Warning for and: 9. Do not sign your posts. Chicken The Banhammer 0 08/24/09 2:13 PM
Warning for Foxx33: 9. Do not sign your posts. Aldriana The Banhammer 0 02/18/09 1:37 PM
Warning for Asmoddia: 9. Do not sign your posts. Aldriana The Banhammer 0 02/18/09 1:34 PM
Warning for Daowna: 9. Do not sign your posts. Vulajin The Banhammer 0 02/07/09 6:21 PM