Intermediate C++ l: Lesson 13 error LNK2001: unresolved ext

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
NaturalDemon
Posts: 97
Joined: October 28th, 2012, 8:28 pm

Intermediate C++ l: Lesson 13 error LNK2001: unresolved ext

Post by NaturalDemon » June 4th, 2014, 8:55 am

i got a anoying error ...

Code: Select all

1>Game.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall PlayerStanding::OnCtrlRightdown(void)" (?OnCtrlRightdown@PlayerStanding@@UAEXXZ)
1>Game.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall PlayerStanding::OnUpdate(void)" (?OnUpdate@PlayerStanding@@UAEXXZ)
i ran the video like tree times .. trying to spot it myself .. but after 4 hours watching the same video ... i still can't find the error.
:twisted:
Attachments
Intermediate 12.zip
(107.82 KiB) Downloaded 173 times

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Intermediate C++ l: Lesson 13 error LNK2001: unresolved

Post by chili » June 4th, 2014, 2:03 pm

I'll take a look at this tomorrow demon if nobody else scoops it first.
Chili

NaturalDemon
Posts: 97
Joined: October 28th, 2012, 8:28 pm

Re: Intermediate C++ l: Lesson 13 error LNK2001: unresolved

Post by NaturalDemon » June 4th, 2014, 4:42 pm

Thnx
By the way i'm using vs2012 ultimate and you used vs2010.

User avatar
LuisR14
Posts: 1248
Joined: May 23rd, 2013, 3:52 pm
Location: USA
Contact:

Re: Intermediate C++ l: Lesson 13 error LNK2001: unresolved

Post by LuisR14 » June 4th, 2014, 7:48 pm

you forgot to remote OnUpdate function in PlayerStanding.h (just like chili had done in video)
also, you have PlayerStanding.cpp in the Header files section of the project when it should be in the Source files section
always available, always on, about ~10 years c/c++, java[script], win32/directx api, [x]html/css/php/some asp/sql experience. (all self taught)
Knows English, Spanish and Japanese.
[url=irc://irc.freenode.net/#pchili]irc://irc.freenode.net/#pchili[/url] [url=irc://luisr14.no-ip.org/#pchili]alt[/url] -- join up if ever want real-time help or to just chat :mrgreen: --

NaturalDemon
Posts: 97
Joined: October 28th, 2012, 8:28 pm

Re: Intermediate C++ l: Lesson 13 error LNK2001: unresolved

Post by NaturalDemon » June 4th, 2014, 8:32 pm

i still can´t find the error
what did i forget to remote?


PlayerStanding.cpp in the header section?
it seams 2 fucked up!
yet all the files are in the right folder.
Attachments
lesson 13 2.png
(144.86 KiB) Not downloaded yet
lesson 13.png
(104.91 KiB) Not downloaded yet

User avatar
LuisR14
Posts: 1248
Joined: May 23rd, 2013, 3:52 pm
Location: USA
Contact:

Re: Intermediate C++ l: Lesson 13 error LNK2001: unresolved

Post by LuisR14 » June 5th, 2014, 2:14 am

heh yea, the .filters file is giving the right representation to the project yet it's in the wrong place inside of the .vcxproj and .filters file, so i've uploaded the fixed files, just replace them
Attachments
Fixed Project.rar
(2.33 KiB) Downloaded 162 times
always available, always on, about ~10 years c/c++, java[script], win32/directx api, [x]html/css/php/some asp/sql experience. (all self taught)
Knows English, Spanish and Japanese.
[url=irc://irc.freenode.net/#pchili]irc://irc.freenode.net/#pchili[/url] [url=irc://luisr14.no-ip.org/#pchili]alt[/url] -- join up if ever want real-time help or to just chat :mrgreen: --

NaturalDemon
Posts: 97
Joined: October 28th, 2012, 8:28 pm

Re: Intermediate C++ l: Lesson 13 error LNK2001: unresolved

Post by NaturalDemon » June 5th, 2014, 2:39 am

lol

excluded file from project and rejoined it again, problem fixed!

wierd!
i did a search yesterday and i knew what error was.
about definition and the implementacion of the method.
apparantly the implementacion was hidden ... out of view!


i scratched head several times over ...

but now it worked right away with the walking animation ... so my fingers are still reliable.

Post Reply