xboxscene.org forums

Author Topic: Why Do I Keep Getting This Error In Vs 2005?  (Read 116 times)

cloudboy

  • Archived User
  • Newbie
  • *
  • Posts: 35
Why Do I Keep Getting This Error In Vs 2005?
« on: February 02, 2020, 06:28:00 PM »

CODE
error LNK2001: unresolved external symbol "public: __cdecl ATG::Console::~Console(void)" (??1Console@ATG@@QAA@XZ)
HelloWorld.obj : error LNK2001: unresolved external symbol "public: long __cdecl ATG::Console::Create(char const *,unsigned long,unsigned long,unsigned int)" (?Create@Console@ATG@@QAAJPBDKKI@Z)
HelloWorld.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl ATG::Console::Format(char const *,...)" (?Format@Console@ATG@@UAAXPBDZZ)


I included AtgConsole.h and did

CODE
console.Create("game:\\Arial.ttf", 0xFFFF0000, 0x0000FFF0);
console.Format("hello world");


but for some reason it gives me these errors when linking?
Logged

rulevoid

  • Archived User
  • Newbie
  • *
  • Posts: 43
Why Do I Keep Getting This Error In Vs 2005?
« Reply #1 on: February 03, 2020, 07:15:00 AM »

And you added  #include "AtgConsole.h" in the cpp correct? NM of course you did, it compiled.

EDIT: Actually, just post up your entire CPP and people will be able to help you out better.

This post has been edited by rulevoid: Yesterday, 03:18 PM
Logged

lantus

  • Archived User
  • Sr. Member
  • *
  • Posts: 297
Why Do I Keep Getting This Error In Vs 2005?
« Reply #2 on: February 03, 2020, 08:51:00 AM »

you need to link to the ATG library (ie in your linker options)
Logged

cloudboy

  • Archived User
  • Newbie
  • *
  • Posts: 35
Why Do I Keep Getting This Error In Vs 2005?
« Reply #3 on: February 11, 2010, 11:37:00 AM »

QUOTE(lantus @ Feb 11 2010, 04:51 PM) View Post

you need to link to the ATG library (ie in your linker options)


I tried but I get this whenever I try to click on 'linker':

IPB Image

I opened the cmd as admin, navigated to c/program files/windows visual studio 8/common7/ide

typed devenv /setup and devenv /resetskippkgs

nothing helps!
Logged

cloudboy

  • Archived User
  • Newbie
  • *
  • Posts: 35
Why Do I Keep Getting This Error In Vs 2005?
« Reply #4 on: February 03, 2020, 07:08:00 PM »

*bump* why can't i access the linker?
Logged