Game Development Community

anyone know what this error is (form the compus tut)

by Ace · in Torque Game Engine · 03/01/2002 (6:47 am) · 10 replies

and how would i correct it

Linking...
guiCompassCtrl.obj : error LNK2001: unresolved external symbol "void __cdecl dglDrawBitmapRotated(class TextureObject *,class RectI const &,class RectI const &,unsigned int,float)" (?dglDrawBitmapRotated@@YAXPAVTextureObject@@ABVRectI@@1IM@Z)
../example/torqueDemo.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

#1
03/01/2002 (7:12 am)
What this means is you have a file callled guiCompassCtrl.cc that calls a function called dglDrawBitmapRotated( ... ) that likely has a prototype in some header but is not defined anywhere resulting in the unresolved external.

Maybe you forgot to add a .cc file to your project/makefile?

OR the function name is misspelled.

--Rick
#2
03/01/2002 (5:39 pm)
hey it appears ther is somthing[edit]i dont understarnd[/edit] with the compus tut i got from
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2270

i dbbl checked spelling and made sure all was added to the project

so i removed it and added in a different version

[edited]reworded below[/edited]

thanks
#3
03/01/2002 (5:56 pm)
Nothings wrong with that, it's obviously your fault. Sorry, I guess I just didn't like your tone :P At least 10 other people have added it and thanked me for it... so I know it isn't a problem with the zip file.

The problem you're having has to do with dgl.cc and dgl.h

Dgl.cc and dgl.h contain the function that draws a rotated bitmap. Make sure you have extracted those files over the existing dgl.cc and dgl.h

So next time, don't think "it can't be me!" because it probably is... especially when others have used it and not recieved the same problem. I suggest reading this because your post really isn't conducive toward convincing others in this forum to share what they've done because they might get a response like yours.

Remember. It can be you, and not the tutorial.
#4
03/01/2002 (6:29 pm)
well ,heh, i did that , and i check everthing several times be fore i post, i am no newbie at following tuts and or learning from them or even modifiying them to my likeing,,,

when i took out the dlg files and put back the original one an add and earlyer cumpus tut and then the fix they had for it it work perfect and on the first try,,,so i'll say it gain (in nicer words that you will like) ther is somthing i dont understand with first compass tut that i did , so i had to resort to useing a diferent on.

Sorry i dint mean to rile you , but if i cant get somthing to work, then i wont be the only one, and refering me to some idots on an irc channel was raelly hitting below the belt.
#5
03/01/2002 (6:39 pm)
No, I didn't mean that part. I just meant you weren't giving much info and you kept using pretty annoying word abbreviations (I don't know why, but that just really pisses me off. I guess cause it's like saying "You know what? My time is too important to even waste time typing a few extra letters in some words, so help me. I'll be doing something else while I wait for you to do it")

Extract the gui .cc and .h into the /gui folder, and the dgl.h and dgl.cc file to the /dgl folder.

There's no reason this shouldn't work, and even more is the error you reported. It's claiming it can't find the dglRotatedBitmap function, and it's there... it's in the dgl.cc file.

Make sure you have dgl.h included in the guiCompassCtrl.cc (it should be there though) in order to access the draw functions.

All I'm saying is you're the first person to run into these problems out of a lot of people. that alone should imply it's not the code, and possibly it's related to what you've done with it (or not done)
#6
03/01/2002 (6:52 pm)
thats the part i didnt get (everthing did seem to be there)

as for my typing and spelling it cant be helped when most kids were in school learning i was more woried about eating so i worked and brought home food instead of knowlge

no biggie dude! i have a compass working ,,,and your radar installd just have to do the f10 thing for it, cuz it compiled no problem :)

thanks
#7
03/01/2002 (7:08 pm)
I'm only 19, so I understand... I guess it's just a foible that I get annoyed with abbreviations.

I dislike it the most when people use "pls" instead of "please"... ugh. So being polite is too much time for you? Well... then you don't get help :)

Enjoy the radar hehe.
#8
03/01/2002 (8:09 pm)
hmm.. What does "pry" stand for. =P, Seriously you came down on the abbreviations a little hard. Yes they are annoying but remember everyone does it to some extent. Look at mister and mountain for example. I am probably bugged just as much or more then you by pls,thx,u and the many other annoying little abbreviations that make the posts hard to read because people don't want to type out full words.

You are right though, It is much easier to help people when they are clear in what they are asking.
#9
03/01/2002 (8:09 pm)
im 43 btw,
great job with the radar , i combined it with the compus, now that they are both working i will be able to modify them even further :) thanks again
www.planetquake.com/noescape/dev/comrad.jpg
#10
03/01/2002 (11:49 pm)
Nah, I'm not denying I over-reacted. I guess it's just a wierd trait of mine. "pls" and the like just piss me off than it should.

I am wierd... and damn proud of it.