Thread: error LNK2019

Results 1 to 10 of 10
  1. #1
    tstert's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    25
    Reputation
    10
    Thanks
    5

    error LNK2019

    Hey guys, I'm using gellins base, and whenever I compile, I get these 3 errors.

    1. error LNK2019: unresolved external symbol "public: void __cdecl cDirectx:: DrawString(int,int,unsigned long,struct ID3DXFont *,char const *,...)" (?DrawString@cDirectx@@QAAXHHKPAUID3DXFont@@PBDZZ) referenced in function "public: void __thiscall cMenu::RenderMenu(void)" (?RenderMenu@cMenu@@QAEXXZ)

    2. error LNK2001: unresolved external symbol "class cDirectx Directx" (?Directx@@3VcDirectx@@A)

    3.fatal error LNK1120: 2 unresolved externals


    And yes, I have everything linked. And have all my lib and included files.

  2. #2
    scimmyboy's Avatar
    Join Date
    Jan 2008
    Gender
    male
    Location
    http://mpgh.net MPGHCash: $442,596,199
    Posts
    5,649
    Reputation
    26
    Thanks
    894
    My Mood
    Happy
    ur calling a function thats not there

  3. #3
    tstert's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    25
    Reputation
    10
    Thanks
    5
    I'm pretty sure everything is there. If I'm wrong, then how would I get the function in my source?

  4. #4
    Yepikiyay's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    320
    Reputation
    10
    Thanks
    35
    My Mood
    Drunk
    Quote Originally Posted by scimmyboy View Post
    ur calling a function thats not there
    Quote Originally Posted by tstert View Post
    I'm pretty sure everything is there. If I'm wrong, then how would I get the function in my source?
    basically your trying to get a command/function thats not there and the compilers going "wtf is this guy doin'?"
    real coders correct me if im wrong

    I Hate You
    Current Status: Online Playing MineCraft

  5. #5
    anger83's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Posts
    21
    Reputation
    10
    Thanks
    0
    My Mood
    Aggressive
    can we see your Directx.h file?

  6. #6
    Yepikiyay's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    320
    Reputation
    10
    Thanks
    35
    My Mood
    Drunk
    Quote Originally Posted by anger83 View Post
    can we see your Directx.h file?
    hes using gellins base just google gellins base
    or here:http://lmgtfy.com/?q=gellins+base

    I Hate You
    Current Status: Online Playing MineCraft

  7. #7
    Crash's Avatar
    Join Date
    Aug 2009
    Gender
    male
    Location
    JAville
    Posts
    2,889
    Reputation
    163
    Thanks
    3,289
    My Mood
    Sleepy
    Quote Originally Posted by Yepikiyay View Post
    hes using gellins base just google gellins base
    or here:http://lmgtfy.com/?q=gellins+base
    We need to see his Directx.h file because we don't know what the hell he did to it.

  8. #8
    Ali's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Qc, Canada
    Posts
    11,453
    Reputation
    342
    Thanks
    3,514
    My Mood
    Cool
    /Moved .

  9. #9
    Synns's Avatar
    Join Date
    May 2007
    Gender
    male
    Posts
    5,176
    Reputation
    170
    Thanks
    2,554
    My Mood
    Bitchy
    1. error LNK2019: unresolved external symbol "public: void __cdecl cDirectx:: DrawString(int,int,unsigned long,struct ID3DXFont *,char const *,...)" (?DrawString@cDirectx@@QAAXHHKPAUID3DXFont@@PBDZZ) referenced in function "public: void __thiscall cMenu::RenderMenu(void)" (?RenderMenu@cMenu@@QAEXXZ)

    2. error LNK2001: unresolved external symbol "class cDirectx Directx" (?Directx@@3VcDirectx@@A)
    extern cDirectx Directx;

    Try that..

    lol Why did you move it to CA help? This is cpp code so it belongs in source code section I believe..

  10. #10
    tstert's Avatar
    Join Date
    May 2009
    Gender
    male
    Posts
    25
    Reputation
    10
    Thanks
    5
    I haven't touched any of the header files. I've only changed hacks in Base.cpp, and added items in Menu.cpp, nothing else.

    Other people were saying I'm missing a needed file in my source, like d3d9.lib and d3dx9.lib which I have in my source.

    Edit: Decided to add DirectX.h

    Virus Scan: Virustotal. MD5: 21b7792bcde2cd7a070f6ac42d6e317b

    DL: uploading
    Last edited by tstert; 07-06-2010 at 10:42 AM.

Similar Threads

  1. Error LNK2019
    By DreadKyller in forum Combat Arms Coding Help & Discussion
    Replies: 31
    Last Post: 10-07-2010, 05:13 PM
  2. Hellbreath Int Error?
    By RebornAce in forum General
    Replies: 10
    Last Post: 03-06-2009, 10:04 PM
  3. Connection error
    By DrKaOs in forum WarRock - International Hacks
    Replies: 6
    Last Post: 02-05-2006, 09:37 PM
  4. K Warrock error :(
    By i eat trees in forum WarRock - International Hacks
    Replies: 2
    Last Post: 01-26-2006, 09:40 PM