home home

downloads files

forum forum

docs docs

wiki wiki

faq faq

Cube & Cube 2 FORUM


Developers Corner

by Shockie on 10/19/2002 16:36, 279 messages, last message: 02/04/2006 13:50, 160531 views, last view: 05/18/2024 18:22

i would like to have this thread for development problems/ideas, and what people have done. i believe it could be quite useful!

   Board Index    Go to next 20 messagesGo to last 20 messages

#1: errors

by Shockie on 10/19/2002 16:37

i went to compile cube, after fixing the errors of includes, i got this:

--------------------Configuration: cube - Win32 Release--------------------
Compiling...
Command line warning D4002 : ignoring unknown option '/Oy'
Command line warning D4002 : ignoring unknown option '/Ob2'
host.c
list.c
memory.c
packet.c
peer.c
protocol.c
C:\W\cube\enet\peer.c(96) : warning C4761: integral size mismatch in argument; conversion supplied
C:\W\cube\enet\peer.c(118) : warning C4761: integral size mismatch in argument; conversion supplied
win32.c
C:\W\cube\enet\protocol.c(46) : warning C4761: integral size mismatch in argument; conversion supplied
client.cpp
console.cpp
don_text.cpp
fatal error C1083: Cannot open source file: 'C:\W\cube\src\don_text.cpp': No such file or directory
editing.cpp
main.cpp
md2.cpp
fatal error C1083: Cannot open source file: 'C:\W\cube\src\md2.cpp': No such file or directory
monster.cpp
physics.cpp
renderextras.cpp
rendergl.cpp
rndmap.cpp
server.cpp
weapon.cpp
world.cpp
worldio.cpp
C:\W\cube\src\worldio.cpp(397) : error C2562: 'loadgamerest' : 'void' function returning a value
C:\W\cube\src\cube.h(425) : see declaration of 'loadgamerest'
C:\W\cube\src\worldio.cpp(410) : error C2562: 'loadgamerest' : 'void' function returning a value
C:\W\cube\src\cube.h(425) : see declaration of 'loadgamerest'
worldrender.cpp
Error executing cl.exe.

cube.exe - 4 error(s), 5 warning(s)


the files that dont exist, just dont exist, not in the zip file!... please explain

reply to this message

#2: mmm

by Aardappel@home on 10/19/2002 17:11

seems like I accidentally left in an old vc6 project file... only the vc7 one is up to date.

reply to this message

#3: Re: mmm

by Shockie on 10/19/2002 17:15, refers to #2

what is the vc7? how do i open in vc6?

reply to this message

#4: rebuilt

by Shockie on 10/19/2002 17:32

i rebuilt the entire project file, and included every file that comes in the zip, here is what i get

--------------------Configuration: cube - Win32 Debug--------------------
Compiling...
worldrender.cpp
clientextras.cpp
clientgame.cpp
command.cpp
console.cpp
editing.cpp
entities.cpp
main.cpp
menus.cpp
monster.cpp
pch.cpp
physics.cpp
rendercubes.cpp
renderextras.cpp
rendergl.cpp
rendermd2.cpp
renderparticles.cpp
rendertext.cpp
rndmap.cpp
server.cpp
serverbrowser.cpp
sound.cpp
tools.cpp
weapon.cpp
world.cpp
worldio.cpp
C:\W\Cube\src\worldio.cpp(6) : warning C4005: '_WINDOWS' : macro redefinition
unknown(0) : see previous definition of '_WINDOWS'
C:\W\Cube\src\worldio.cpp(397) : error C2562: 'loadgamerest' : 'void' function returning a value
c:\w\cube\src\cube.h(425) : see declaration of 'loadgamerest'
C:\W\Cube\src\worldio.cpp(410) : error C2562: 'loadgamerest' : 'void' function returning a value
c:\w\cube\src\cube.h(425) : see declaration of 'loadgamerest'
worldlight.cpp
worldocull.cpp
client.cpp
host.c
list.c
memory.c
packet.c
peer.c
protocol.c
c:\w\cube\enet\peer.c(96) : warning C4761: integral size mismatch in argument; conversion supplied
c:\w\cube\enet\peer.c(118) : warning C4761: integral size mismatch in argument; conversion supplied
unix.c
c:\w\cube\enet\protocol.c(46) : warning C4761: integral size mismatch in argument; conversion supplied
win32.c
Error executing cl.exe.

cube.exe - 2 error(s), 4 warning(s)

reply to this message

#5: Re: rebuilt

by Aardappel@home on 10/19/2002 19:42, refers to #4

it's only for vc7... if you want to use vc6 you'll have to make your own project files. I can't be everyone's c++ tutor, if you want to use the source I expect you to atleast know c++, and how to use the tools / fix small problems etc.

reply to this message

#6: Re: rebuilt

by pushplay on 10/19/2002 19:43, refers to #4

Huh, that's weird. There is a void function returning a value.

reply to this message

#7: Re: rebuilt

by Shockie on 10/20/2002 14:29, refers to #6

exactly my thoughts...

im not used to MS VC++

reply to this message

#8: Re: rebuilt

by Shockie on 10/21/2002 12:27, refers to #7

hmm, seems as though my version of MS VC++ is really not upto the task

i get errors like:
Linking...
msvcrt.lib(MSVCRT.dll) : error LNK2005: _exit already defined in LIBCD.lib(crt0dat.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _strncpy already defined in LIBCD.lib(strncpy.obj)
msvcrt.lib(MSVCRT.dll) : error LNK2005: _fprintf already defined in LIBCD.lib(fprintf.obj)

and:
client.obj : error LNK2001: unresolved external symbol __imp__ntohs@4
win32.obj : error LNK2001: unresolved external symbol __imp__ntohs@4
protocol.obj : error LNK2001: unresolved external symbol __imp__ntohs@4
win32.obj : error LNK2001: unresolved external symbol __imp__WSACleanup@0
win32.obj : error LNK2001: unresolved external symbol __imp__WSAStartup@8
win32.obj : error LNK2001: unresolved external symbol __imp__gethostbyname@4
win32.obj : error LNK2001: unresolved external symbol __imp__gethostbyaddr@12
win32.obj : error LNK2001: unresolved external symbol __imp__closesocket@4
win32.obj : error LNK2001: unresolved external symbol __imp__bind@12
win32.obj : error LNK2001: unresolved external symbol __imp__listen@8
win32.obj : error LNK2001: unresolved external symbol __imp__setsockopt@20
win32.obj : error LNK2001: unresolved external symbol __imp__ioctlsocket@12
win32.obj : error LNK2001: unresolved external symbol __imp__socket@12
win32.obj : error LNK2001: unresolved external symbol __imp__connect@12
win32.obj : error LNK2001: unresolved external symbol __imp__accept@12



any thoughts?

reply to this message

#9: ..

by Rhaine on 10/22/2002 05:39

Unresolved external symbols are usually an issue with not having the correct libraries set up to link to or just not having the right libraries.. check your project settings and make sure your project is set up to link with the appropriate include directiories and library directories.


I got exactly the same errors as the previous message listed #1. 4 errors and 5 warnings exact same ones. at least your not alone.

lets work on this together and try to get a DSP and DSW built so we can compile :)

There seems to be a long way between being familiar with C++ and being able to write a 3d engine.. take heart.. we'll get there :)

Rhaine

reply to this message

#10: Re: ..

by Shockie on 10/22/2002 11:30, refers to #9

YAY! sum1 to code with, finaly!!!

my icq is 139758345
msn is eca_red_leader@hotmail.com
email is mharris@octane-design.biz
phone is +61 0408 932 8.. wait a sec, not on public forums...

hehe

im in australia (+8.00GMT) might be sum time difference.

im not too familiar with VC++

i just dump all lib files into my libs dir in the program root, headerfiles in the same fashion, seems to work usually heh

i remade the dsp and included the opengl32.lib, glaux.lib sdl.lib's or whatever the fuck they are!

then i got the unresoloved symbols, so im thinking i might just go look @ the old dsp file...

reply to this message

#11: now

by Shockie on 10/22/2002 11:37

i have changed the md2.cpp to rendermd2.cpp and don_text.cpp to rendertext.cpp (by deleting them and adding them to the project) now i get this error:

LINK : fatal error LNK1181: cannot open input file "SDL_net.lib"

im trying to get SDL_net.lib

reply to this message

#12: Re: now

by Shockie on 10/22/2002 12:12, refers to #11

geez, i cant find it anywhere, i have downloaded every windows file on the sdl site and looked in search engines =\

reply to this message

#13: Re: now

by Shockie on 10/22/2002 12:14, refers to #12

ok, i remove SDL_net.lib from the project and i get the link errors

reply to this message

#14: the errors as current

by Shockie on 10/22/2002 14:55

--------------------Configuration: cube - Win32 Release--------------------
Linking...
client.obj : error LNK2001: unresolved external symbol "int gamemode" (?gamemode@@3HA)
editing.obj : error LNK2001: unresolved external symbol "int gamemode" (?gamemode@@3HA)
monster.obj : error LNK2001: unresolved external symbol "int gamemode" (?gamemode@@3HA)
worldio.obj : error LNK2001: unresolved external symbol "int gamemode" (?gamemode@@3HA)
physics.obj : error LNK2001: unresolved external symbol "int __cdecl variable(char *,int,int,int,int *,void (__cdecl*)(void))" (?variable@@YAHPADHHHPAHP6AXXZ@Z)
renderextras.obj : error LNK2001: unresolved external symbol "int __cdecl variable(char *,int,int,int,int *,void (__cdecl*)(void))" (?variable@@YAHPADHHHPAHP6AXXZ@Z)
rendergl.obj : error LNK2001: unresolved external symbol "int __cdecl variable(char *,int,int,int,int *,void (__cdecl*)(void))" (?variable@@YAHPADHHHPAHP6AXXZ@Z)
worldrender.obj : error LNK2001: unresolved external symbol "int __cdecl variable(char *,int,int,int,int *,void (__cdecl*)(void))" (?variable@@YAHPADHHHPAHP6AXXZ@Z)
client.obj : error LNK2001: unresolved external symbol "int __cdecl variable(char *,int,int,int,int *,void (__cdecl*)(void))" (?variable@@YAHPADHHHPAHP6AXXZ@Z)
editing.obj : error LNK2001: unresolved external symbol "int __cdecl variable(char *,int,int,int,int *,void (__cdecl*)(void))" (?variable@@YAHPADHHHPAHP6AXXZ@Z)
main.obj : error LNK2001: unresolved external symbol "int __cdecl variable(char *,int,int,int,int *,void (__cdecl*)(void))" (?variable@@YAHPADHHHPAHP6AXXZ@Z)
monster.obj : error LNK2001: unresolved external symbol "int __cdecl variable(char *,int,int,int,int *,void (__cdecl*)(void))" (?variable@@YAHPADHHHPAHP6AXXZ@Z)
weapon.obj : error LNK2001: unresolved external symbol "struct dynent * player1" (?player1@@3PAUdynent@@A)
world.obj : error LNK2001: unresolved external symbol "struct dynent * player1" (?player1@@3PAUdynent@@A)
worldio.obj : error LNK2001: unresolved external symbol "struct dynent * player1" (?player1@@3PAUdynent@@A)
worldrender.obj : error LNK2001: unresolved external symbol "struct dynent * player1" (?player1@@3PAUdynent@@A)
physics.obj : error LNK2001: unresolved external symbol "struct dynent * player1" (?player1@@3PAUdynent@@A)
renderextras.obj : error LNK2001: unresolved external symbol "struct dynent * player1" (?player1@@3PAUdynent@@A)
rendergl.obj : error LNK2001: unresolved external symbol "struct dynent * player1" (?player1@@3PAUdynent@@A)
rendermd2.obj : error LNK2001: unresolved external symbol "struct dynent * player1" (?player1@@3PAUdynent@@A)
client.obj : error LNK2001: unresolved external symbol "struct dynent * player1" (?player1@@3PAUdynent@@A)
editing.obj : error LNK2001: unresolved external symbol "struct dynent * player1" (?player1@@3PAUdynent@@A)
main.obj : error LNK2001: unresolved external symbol "struct dynent * player1" (?player1@@3PAUdynent@@A)
monster.obj : error LNK2001: unresolved external symbol "struct dynent * player1" (?player1@@3PAUdynent@@A)
worldio.obj : error LNK2001: unresolved external symbol "bool __cdecl addcommand(char *,void (__cdecl*)(void),int)" (?addcommand@@YA_NPADP6AXXZH@Z)
renderextras.obj : error LNK2001: unresolved external symbol "bool __cdecl addcommand(char *,void (__cdecl*)(void),int)" (?addcommand@@YA_NPADP6AXXZH@Z)
rendergl.obj : error LNK2001: unresolved external symbol "bool __cdecl addcommand(char *,void (__cdecl*)(void),int)" (?addcommand@@YA_NPADP6AXXZH@Z)
weapon.obj : error LNK2001: unresolved external symbol "bool __cdecl addcommand(char *,void (__cdecl*)(void),int)" (?addcommand@@YA_NPADP6AXXZH@Z)
world.obj : error LNK2001: unresolved external symbol "bool __cdecl addcommand(char *,void (__cdecl*)(void),int)" (?addcommand@@YA_NPADP6AXXZH@Z)
client.obj : error LNK2001: unresolved external symbol "bool __cdecl addcommand(char *,void (__cdecl*)(void),int)" (?addcommand@@YA_NPADP6AXXZH@Z)
console.obj : error LNK2001: unresolved external symbol "bool __cdecl addcommand(char *,void (__cdecl*)(void),int)" (?addcommand@@YA_NPADP6AXXZH@Z)
editing.obj : error LNK2001: unresolved external symbol "bool __cdecl addcommand(char *,void (__cdecl*)(void),int)" (?addcommand@@YA_NPADP6AXXZH@Z)
main.obj : error LNK2001: unresolved external symbol "bool __cdecl addcommand(char *,void (__cdecl*)(void),int)" (?addcommand@@YA_NPADP6AXXZH@Z)
worldio.obj : error LNK2001: unresolved external symbol "int lastmillis" (?lastmillis@@3HA)
renderextras.obj : error LNK2001: unresolved external symbol "int lastmillis" (?lastmillis@@3HA)
rendergl.obj : error LNK2001: unresolved external symbol "int lastmillis" (?lastmillis@@3HA)
rendermd2.obj : error LNK2001: unresolved external symbol "int lastmillis" (?lastmillis@@3HA)
weapon.obj : error LNK2001: unresolved external symbol "int lastmillis" (?lastmillis@@3HA)
client.obj : error LNK2001: unresolved external symbol "int lastmillis" (?lastmillis@@3HA)
console.obj : error LNK2001: unresolved external symbol "int lastmillis" (?lastmillis@@3HA)
main.obj : error LNK2001: unresolved external symbol "int lastmillis" (?lastmillis@@3HA)
monster.obj : error LNK2001: unresolved external symbol "int lastmillis" (?lastmillis@@3HA)
client.obj : error LNK2001: unresolved external symbol "struct vector<struct dynent *> players" (?players@@3U?$vector@PAUdynent@@@@A)
physics.obj : error LNK2001: unresolved external symbol "struct vector<struct dynent *> players" (?players@@3U?$vector@PAUdynent@@@@A)
weapon.obj : error LNK2001: unresolved external symbol "struct vector<struct dynent *> players" (?players@@3U?$vector@PAUdynent@@@@A)
client.obj : error LNK2001: unresolved external symbol "void __cdecl addserver(char *)" (?addserver@@YAXPAD@Z)
client.obj : error LNK2001: unresolved external symbol "void __cdecl zapclient(int)" (?zapclient@@YAXH@Z)
client.obj : error LNK2001: unresolved external symbol "void __cdecl putitems(unsigned char * &)" (?putitems@@YAXAAPAE@Z)
client.obj : error LNK2001: unresolved external symbol "int nextmode" (?nextmode@@3HA)
worldio.obj : error LNK2001: unresolved external symbol "int nextmode" (?nextmode@@3HA)
client.obj : error LNK2001: unresolved external symbol "void __cdecl timeupdate(int)" (?timeupdate@@YAXH@Z)
client.obj : error LNK2001: unresolved external symbol "void __cdecl calclight(void)" (?calclight@@YAXXZ)
world.obj : error LNK2001: unresolved external symbol "void __cdecl calclight(void)" (?calclight@@YAXXZ)
worldio.obj : error LNK2001: unresolved external symbol "void __cdecl calclight(void)" (?calclight@@YAXXZ)
client.obj : error LNK2001: unresolved external symbol "void __cdecl realpickup(int,struct dynent *)" (?realpickup@@YAXHPAUdynent@@@Z)
world.obj : error LNK2001: unresolved external symbol "struct vector<struct entity> ents" (?ents@@3U?$vector@Uentity@@@@A)
worldio.obj : error LNK2001: unresolved external symbol "struct vector<struct entity> ents" (?ents@@3U?$vector@Uentity@@@@A)
client.obj : error LNK2001: unresolved external symbol "struct vector<struct entity> ents" (?ents@@3U?$vector@Uentity@@@@A)
monster.obj : error LNK2001: unresolved external symbol "struct vector<struct entity> ents" (?ents@@3U?$vector@Uentity@@@@A)
physics.obj : error LNK2001: unresolved external symbol "struct vector<struct entity> ents" (?ents@@3U?$vector@Uentity@@@@A)
renderextras.obj : error LNK2001: unresolved external symbol "struct vector<struct entity> ents" (?ents@@3U?$vector@Uentity@@@@A)
client.obj : error LNK2001: unresolved external symbol "void __cdecl spawnplayer(struct dynent *)" (?spawnplayer@@YAXPAUdynent@@@Z)
monster.obj : error LNK2001: unresolved external symbol "void __cdecl spawnplayer(struct dynent *)" (?spawnplayer@@YAXPAUdynent@@@Z)
client.obj : error LNK2001: unresolved external symbol "int __cdecl aliveothers(void)" (?aliveothers@@YAHXZ)
client.obj : error LNK2001: unresolved external symbol "void __cdecl selfdamage(int,int,struct dynent *)" (?selfdamage@@YAXHHPAUdynent@@@Z)
weapon.obj : error LNK2001: unresolved external symbol "void __cdecl selfdamage(int,int,struct dynent *)" (?selfdamage@@YAXHHPAUdynent@@@Z)
client.obj : error LNK2001: unresolved external symbol "char * __cdecl getalias(char *)" (?getalias@@YAPADPAD@Z)
client.obj : error LNK2001: unresolved external symbol "void __cdecl setspawn(int,bool)" (?setspawn@@YAXH_N@Z)
world.obj : error LNK2001: unresolved external symbol "void __cdecl setspawn(int,bool)" (?setspawn@@YAXH_N@Z)
client.obj : error LNK2001: unresolved external symbol "void __cdecl resetspawns(void)" (?resetspawns@@YAXXZ)
world.obj : error LNK2001: unresolved external symbol "void __cdecl playsound(int,struct vec *)" (?playsound@@YAXHPAUvec@@@Z)
client.obj : error LNK2001: unresolved external symbol "void __cdecl playsound(int,struct vec *)" (?playsound@@YAXHPAUvec@@@Z)
monster.obj : error LNK2001: unresolved external symbol "void __cdecl playsound(int,struct vec *)" (?playsound@@YAXHPAUvec@@@Z)
physics.obj : error LNK2001: unresolved external symbol "void __cdecl playsound(int,struct vec *)" (?playsound@@YAXHPAUvec@@@Z)
weapon.obj : error LNK2001: unresolved external symbol "void __cdecl playsound(int,struct vec *)" (?playsound@@YAXHPAUvec@@@Z)
client.obj : error LNK2001: unresolved external symbol "struct dynent * __cdecl getclient(int)" (?getclient@@YAPAUdynent@@H@Z)
client.obj : error LNK2001: unresolved external symbol "char * __cdecl getclientmap(void)" (?getclientmap@@YAPADXZ)
worldio.obj : error LNK2001: unresolved external symbol "char * __cdecl getclientmap(void)" (?getclientmap@@YAPADXZ)
console.obj : error LNK2001: unresolved external symbol "int __cdecl execute(char *,bool)" (?execute@@YAHPAD_N@Z)
world.obj : error LNK2001: unresolved external symbol "int __cdecl execute(char *,bool)" (?execute@@YAHPAD_N@Z)
console.obj : error LNK2001: unresolved external symbol "bool __cdecl menukey(int,bool)" (?menukey@@YA_NH_N@Z)
console.obj : error LNK2001: unresolved external symbol "void __cdecl complete(char *)" (?complete@@YAXPAD@Z)
console.obj : error LNK2001: unresolved external symbol "void __cdecl resetcomplete(void)" (?resetcomplete@@YAXXZ)
editing.obj : error LNK2001: unresolved external symbol "void __cdecl entinmap(struct dynent *)" (?entinmap@@YAXPAUdynent@@@Z)
monster.obj : error LNK2001: unresolved external symbol "void __cdecl entinmap(struct dynent *)" (?entinmap@@YAXPAUdynent@@@Z)
editing.obj : error LNK2001: unresolved external symbol "struct block * __cdecl blockcopy(struct block &)" (?blockcopy@@YAPAUblock@@AAU1@@Z)
editing.obj : error LNK2001: unresolved external symbol "void __cdecl blockpaste(struct block &)" (?blockpaste@@YAXAAUblock@@@Z)
main.obj : error LNK2001: unresolved external symbol "void __cdecl cleansound(void)" (?cleansound@@YAXXZ)
main.obj : error LNK2001: unresolved external symbol "void __cdecl writeservercfg(void)" (?writeservercfg@@YAXXZ)
main.obj : error LNK2001: unresolved external symbol "void __cdecl mousemove(int,int)" (?mousemove@@YAXHH@Z)
main.obj : error LNK2001: unresolved external symbol "void __cdecl computeraytable(float,float)" (?computeraytable@@YAXMM@Z)
rendergl.obj : error LNK2001: unresolved external symbol "int curtime" (?curtime@@3HA)
main.obj : error LNK2001: unresolved external symbol "int curtime" (?curtime@@3HA)
monster.obj : error LNK2001: unresolved external symbol "int curtime" (?curtime@@3HA)
physics.obj : error LNK2001: unresolved external symbol "int curtime" (?curtime@@3HA)
renderextras.obj : error LNK2001: unresolved external symbol "int curtime" (?curtime@@3HA)
main.obj : error LNK2001: unresolved external symbol "void __cdecl updateworld(int)" (?updateworld@@YAXH@Z)
main.obj : error LNK2001: unresolved external symbol "void __cdecl cleardlights(void)" (?cleardlights@@YAXXZ)
world.obj : error LNK2001: unresolved external symbol "void __cdecl cleardlights(void)" (?cleardlights@@YAXXZ)
worldio.obj : error LNK2001: unresolved external symbol "void __cdecl cleardlights(void)" (?cleardlights@@YAXXZ)
main.obj : error LNK2001: unresolved external symbol "void __cdecl initsound(void)" (?initsound@@YAXXZ)
main.obj : error LNK2001: unresolved external symbol "void __cdecl exec(char *)" (?exec@@YAXPAD@Z)
main.obj : error LNK2001: unresolved external symbol "void __cdecl newmenu(char *)" (?newmenu@@YAXPAD@Z)
main.obj : error LNK2001: unresolved external symbol "void __cdecl initclient(void)" (?initclient@@YAXXZ)
main.obj : error LNK2001: unresolved external symbol "bool nogore" (?nogore@@3_NA)
monster.obj : error LNK2001: unresolved external symbol "struct dynent * __cdecl newdynent(void)" (?newdynent@@YAPAUdynent@@XZ)
monster.obj : error LNK2001: unresolved external symbol "void __cdecl teleport(int,struct dynent *)" (?teleport@@YAXHPAUdynent@@@Z)
monster.obj : error LNK2001: unresolved external symbol "void __cdecl renderclient(struct dynent *,bool,int,float)" (?renderclient@@YAXPAUdynent@@_NHM@Z)
physics.obj : error LNK2001: unresolved external symbol "void __cdecl playsoundc(int)" (?playsoundc@@YAXH@Z)
weapon.obj : error LNK2001: unresolved external symbol "void __cdecl playsoundc(int)" (?playsoundc@@YAXH@Z)
renderextras.obj : error LNK2001: unresolved external symbol "int __cdecl getvar(char *)" (?getvar@@YAHPAD@Z)
world.obj : error LNK2001: unresolved external symbol "int __cdecl getvar(char *)" (?getvar@@YAHPAD@Z)
renderextras.obj : error LNK2001: unresolved external symbol "void __cdecl particle_splash(int,int,int,struct vec &)" (?particle_splash@@YAXHHHAAUvec@@@Z)
weapon.obj : error LNK2001: unresolved external symbol "void __cdecl particle_splash(int,int,int,struct vec &)" (?particle_splash@@YAXHHHAAUvec@@@Z)
renderextras.obj : error LNK2001: unresolved external symbol "void __cdecl setorient(struct vec &,struct vec &)" (?setorient@@YAXAAUvec@@0@Z)
renderextras.obj : error LNK2001: unresolved external symbol "bool __cdecl rendermenu(void)" (?rendermenu@@YA_NXZ)
renderextras.obj : error LNK2001: unresolved external symbol "void __cdecl renderscores(void)" (?renderscores@@YAXXZ)
rendergl.obj : error LNK2001: unresolved external symbol "struct vertex * verts" (?verts@@3PAUvertex@@A)
rendergl.obj : error LNK2001: unresolved external symbol "int __cdecl renderwater(float)" (?renderwater@@YAHM@Z)
rendergl.obj : error LNK2001: unresolved external symbol "void __cdecl render_particles(int)" (?render_particles@@YAXH@Z)
rendergl.obj : error LNK2001: unresolved external symbol "void __cdecl renderentities(void)" (?renderentities@@YAXXZ)
rendergl.obj : error LNK2001: unresolved external symbol "void __cdecl renderclients(void)" (?renderclients@@YAXXZ)
rendergl.obj : error LNK2001: unresolved external symbol "void __cdecl finishstrips(void)" (?finishstrips@@YAXXZ)
rendergl.obj : error LNK2001: unresolved external symbol "int curvert" (?curvert@@3HA)
rendergl.obj : error LNK2001: unresolved external symbol "void __cdecl resetcubes(void)" (?resetcubes@@YAXXZ)
rendermd2.obj : error LNK2001: unresolved external symbol "int __cdecl isoccluded(float,float,float,float,float)" (?isoccluded@@YAHMMMMM@Z)
worldrender.obj : error LNK2001: unresolved external symbol "int __cdecl isoccluded(float,float,float,float,float)" (?isoccluded@@YAHMMMMM@Z)
weapon.obj : error LNK2001: unresolved external symbol "void __cdecl dodynlight(struct vec &,struct vec &,int,int,struct dynent *)" (?dodynlight@@YAXAAUvec@@0HHPAUdynent@@@Z)
weapon.obj : error LNK2001: unresolved external symbol "void __cdecl particle_trail(int,int,struct vec &,struct vec &)" (?particle_trail@@YAXHHAAUvec@@0@Z)
world.obj : error LNK2001: unresolved external symbol "bool __cdecl identexists(char *)" (?identexists@@YA_NPAD@Z)
worldio.obj : error LNK2001: unresolved external symbol "bool __cdecl identexists(char *)" (?identexists@@YA_NPAD@Z)
world.obj : error LNK2001: unresolved external symbol "void __cdecl startmap(char *)" (?startmap@@YAXPAD@Z)
worldio.obj : error LNK2001: unresolved external symbol "void __cdecl startmap(char *)" (?startmap@@YAXPAD@Z)
worldio.obj : error LNK2001: unresolved external symbol _gzclose
worldio.obj : error LNK2001: unresolved external symbol _gzputc
worldio.obj : error LNK2001: unresolved external symbol _gzwrite
worldio.obj : error LNK2001: unresolved external symbol _gzopen
worldio.obj : error LNK2001: unresolved external symbol "bool __cdecl execfile(char *)" (?execfile@@YA_NPAD@Z)
worldio.obj : error LNK2001: unresolved external symbol "void __cdecl alias(char *,char *)" (?alias@@YAXPAD0@Z)
worldio.obj : error LNK2001: unresolved external symbol _gzgetc
worldio.obj : error LNK2001: unresolved external symbol _gzread
worldrender.obj : error LNK2001: unresolved external symbol "void __cdecl render_square(int,float,float,float,float,int,int,int,int,int,struct sqr *,struct sqr *,bool)" (?render_square@@YAXHMMMMHHHHHPAUsqr@@0_N@Z)
worldrender.obj : error LNK2001: unresolved external symbol "void __cdecl render_tris(int,int,int,bool,struct sqr *,struct sqr *,struct sqr *,struct sqr *,struct sqr *,struct sqr *)" (?render_tris@@YAXHHH_NPAUsqr@@11111@Z)
worldrender.obj : error LNK2001: unresolved external symbol "void __cdecl addwaterquad(int,int,int)" (?addwaterquad@@YAXHHH@Z)
worldrender.obj : error LNK2001: unresolved external symbol "void __cdecl render_flatdelta(int,int,int,int,float,float,float,float,struct sqr *,struct sqr *,struct sqr *,struct sqr *,bool)" (?render_flatdelta@@YAXHHHHMMMMPAUsqr@@000_N@Z)
worldrender.obj : error LNK2001: unresolved external symbol "void __cdecl render_flat(int,int,int,int,int,struct sqr *,struct sqr *,struct sqr *,struct sqr *,bool)" (?render_flat@@YAXHHHHHPAUsqr@@000_N@Z)
worldrender.obj : error LNK2001: unresolved external symbol "void __cdecl mipstats(int,int,int)" (?mipstats@@YAXHHH@Z)
../cube/bin/cube.exe : fatal error LNK1120: 78 unresolved externals
Error executing link.exe.

cube.exe - 148 error(s), 0 warning(s)


OUCH!

reply to this message

#15: Re: the errors as current

by Shockie on 10/22/2002 14:58, refers to #14

heh, sorry about that, didnt think it was quite that long...

how would one fix this

PLEASE AARD!!! PLEASE!!!

reply to this message

#16: Re: the errors as current

by Piglet on 10/22/2002 18:12, refers to #15

how i would solve it is give up and let somone who knows how to do it, do it :)

reply to this message

#17: Re: the errors as current

by oyoaha on 10/22/2002 22:55, refers to #16

ok there is the solution for vc++6.0

first to avoid any further complication unzip the cube archive in "C:\w\cube\" and unzip the source zip in the same folder

now open the "old" dsw file found in vcpp("C:\w\cube\vcpp\cube.dsw")

in vc++ go to project/setting
select Setting for "all configuration" (to avoid to do the job twice, for the release and the debug setting)

in Debug tab:
change
W:\cube\cube\bin\cube.exe
by
c:\w\cube\bin\cube.exe

and
W:\cube\cube
by
c:\w\cube

in C/C++
choose the Preprocessor category
and add
c:\w\cube\include,c:\w\cube\enet\include
in the "Additional include directories" field

in the Link tab
in the General category
change the Ouput file name by:
../bin/cube.exe

always in the Link tab
choose the Input category
and add
c:\w\cube\lib
in the Additional library path

close the Setting dialog

in the File view delete the
md2.cpp and the don_text.cpp
and add rendermd2.cpp and rendertext.cpp
to the project

now for the lib problem (missing the SDL_net.lib)

the SDL net library can be find here:
http://www.libsdl.org/projects/SDL_net

download the net-devel-1.2.4-VC6.zip
http://www.libsdl.org/projects/SDL_net/release/SDL_net-devel-1.2.4-VC6.zip

unzip it and copy the SDL_net.lib in your C:\w\cube\lib directory

hope that help!

reply to this message

#18: Re: the errors as current

by Shockie on 10/23/2002 02:03, refers to #17

i had pretty much already done this, i still get the same errors, see post #14

piglet:
we are trying to do it ourselves for a challange. if everybody waited for sum1 else to do what was needed, nothing would be done... ever.

reply to this message

#19: Re: the errors as current

by oyoaha on 10/23/2002 07:21, refers to #18

that's work for me :-\
i can now compiling and linking without any problem.
hum have you still removed the SDL_net.lib? like you said in the post 13?
if you continue to have problem i can post somewhere my updated dsw file?

reply to this message

#20: Re: the errors as current

by Shockie on 10/23/2002 07:24, refers to #19

i have sdl_net in there still

i would luv it if u could zip up the entire source code dir =)

reply to this message

   Board Index    Go to next 20 messagesGo to last 20 messages


Unvalidated accounts can only reply to the 'Permanent Threads' section!


content by Aardappel & eihrul © 2001-2024
website by SleepwalkR © 2001-2024
54037561 visitors requested 71817771 pages
page created in 0.036 seconds using 9 queries
hosted by Boost Digital