Thread

Building the example source that comes with the SDK27 archive(14 errors) (Sdk)

Building the example source that comes with the SDK27 archive(14 errors) // Sdk

1  |  

talisan

Aug 23, 2002, 6:20pm
How do I get a clean build from the demo source that comes with the SDK?

Here is what I did. I unzipped sdk27 into c:\sdk27 then copied and renamed
cpp1.cpp to babybot.cpp for lack of a better name. I then opened babybot.cpp
into Visual C++ 6 and selected build, VC++6 made a project, compiled the
source with no problem, but the linker issued the following errors:

--------------------Configuration: babybot - Win32 Debug--------------------
Linking...
babybot.obj : error LNK2001: unresolved external symbol __imp__aw_term
babybot.obj : error LNK2001: unresolved external symbol __imp__aw_destroy
babybot.obj : error LNK2001: unresolved external symbol __imp__aw_wait
babybot.obj : error LNK2001: unresolved external symbol
__imp__aw_state_change
babybot.obj : error LNK2001: unresolved external symbol __imp__aw_enter
babybot.obj : error LNK2001: unresolved external symbol __imp__aw_login
babybot.obj : error LNK2001: unresolved external symbol __imp__aw_string_set
babybot.obj : error LNK2001: unresolved external symbol __imp__aw_int_set
babybot.obj : error LNK2001: unresolved external symbol __imp__aw_create
babybot.obj : error LNK2001: unresolved external symbol __imp__aw_event_set
babybot.obj : error LNK2001: unresolved external symbol __imp__aw_init
babybot.obj : error LNK2001: unresolved external symbol __imp__aw_say
babybot.obj : error LNK2001: unresolved external symbol __imp__aw_string
Debug/babybot.exe : fatal error LNK1120: 13 unresolved externals
Error executing link.exe.

babybot.exe - 14 error(s), 0 warning(s)

How can I resolve this?

bowen

Aug 23, 2002, 7:18pm
Doesn't look like you've included aw.dll. Either that or you forgot to
compile it with it.

--Bowen--

[View Quote]

lord fett

Aug 23, 2002, 7:20pm
Did you link the aw_static.lib to the project?

Projects | Settings | Links tab

add aw_static.lib to the end of the Objects\library modules text box

talisan

Aug 23, 2002, 7:30pm
the aw.dll is in the same folder. Perhaps I was assuming VC++ would take
care of the reference for me. I shouldn't assume.
Thanks for the reply.
[View Quote]

talisan

Aug 23, 2002, 7:30pm
Thank you, that helped! It now builds, with no errors. I added aw.lib to the
links tab.

[View Quote]

bowen

Aug 23, 2002, 7:41pm
Aw.lib that's what I meant. Glad it works for you now. :)

--Bowen--

[View Quote]

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2021. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn