ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
AWBOT & TC 3.0 (Sdk)
AWBOT & TC 3.0 // SdkplatinusOct 30, 1998, 6:10pm
I work with Turbo C++ 3.0 but i can't build the exe-pgm with the simple1 source.
Ok i'm not a C or C++ guru but now on the way to learn it :) If i try to build the awbot.exe i get 5 warnings like this: Warning AWBOT.C 19: Possibly incorrect assignment line19 are: "if ( rc = aw_init (AW_BUILD))" and 13 errors like this: Linker Error: Undefined symbol _aw_string in module AWBOT.C Did anyone know where i have to set the environment right or i have to change the source code?? Thanks Plati edward sumerfieldOct 30, 1998, 7:17pm
Change it to
rc = aw_init... if (rc == 0) { life is good The single equals is an assignment whereas the double equals is a comparison. The compiler is just fussy really. Most compilers will let that one go. The unresolved reference is because you are not including the aw.lib in your link stage. Its probably a parameter in one of your configuration menues. Edward Sumerfield. [View Quote] > I work with Turbo C++ 3.0 but i can't build the exe-pgm with the simple1 source. > Ok i'm not a C or C++ guru but now on the way to learn it :) > > If i try to build the awbot.exe i get 5 warnings like this: > Warning AWBOT.C 19: Possibly incorrect assignment > line19 are: "if ( rc = aw_init (AW_BUILD))" > and 13 errors like this: > Linker Error: Undefined symbol _aw_string in module AWBOT.C > > Did anyone know where i have to set the environment right or i have to change > the source code?? > > Thanks Plati dthknightOct 30, 1998, 8:15pm
FYI, [Borland's] Turbo C++ 3.0 is a DOS, not Win32, compiler (although it can do
32-bit apps I believe), so I'm not sure if you could write an SDK app using it. [View Quote] > Change it to > > rc = aw_init... > if (rc == 0) { > life is good > > The single equals is an assignment whereas the double equals is a comparison. The > compiler is just fussy really. Most compilers will let that one go. > > The unresolved reference is because you are not including the aw.lib in your link > stage. Its probably a parameter in one of your configuration menues. > > Edward Sumerfield. > [View Quote] |