Thread: Error LNK2019

Page 1 of 3 123 LastLast
Results 1 to 15 of 32
  1. #1
    DreadKyller's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    122
    Reputation
    12
    Thanks
    21

    Error LNK2019

    I'm trying to compile a hack, and I kept getting the error:

    Can not open d3dx9.lib, file or directory does not exist.

    I finally fixed that but then I get another problem:

    Code:
    1>Linking...
    1>Base.obj : error LNK2019: unresolved external symbol _D3DXCreateFontA@48 referenced in function __catch$?ReFont@@YAXPAUIDirect3DDevice9@@@Z$0
    1>C:\Users\Me\Documents\Visual Studio 2008\Projects\Hack\Debug\Menu.dll : fatal error LNK1120: 1 unresolved externals
    Can someone tell me what is wrong, I looked up help and it didn't work.

  2. #2
    o-o's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    who reading that ? T_T
    Posts
    682
    Reputation
    10
    Thanks
    307
    My Mood
    Cold
    I think it because you used the Refont lot of time ... /

    Happy Hanukkah For All Of MPGH !


    The Real Life Are Better Then A Game !


    Song :[YOUTUBE]vgKBOkvO5N0&feature=player_embedded[/YOUTUBE]
    Best Friends :

    Hax4Life!

    Solify

    [MPGH]Drake`

    Respect Them Or I'll Kill You ...



  3. #3
    DreadKyller's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    122
    Reputation
    12
    Thanks
    21
    I not wondering why nessesarilly, Is there a way to fix it?

  4. #4
    wassup40's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    I dont know help me
    Posts
    2,238
    Reputation
    28
    Thanks
    789
    My Mood
    Lurking
    It's hard to fix that without seeing you code.

  5. #5
    Synns's Avatar
    Join Date
    May 2007
    Gender
    male
    Posts
    5,176
    Reputation
    170
    Thanks
    2,554
    My Mood
    Bitchy
    Do you have an SDK correctly linked? If you do just add

    #pragma comment( lib, "d3dx9.lib" )

    up top.

  6. #6
    Mr.Magicman's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Sitting in my cave full of thoughts learning Asembly
    Posts
    2,103
    Reputation
    16
    Thanks
    646
    My Mood
    Cold
    I think you dont have the function you define... its like this:

    You are defining it in a class but arent using it..

    it compiles fine but when you link the .obj to make a .dll it notices that you dont have the function even tho you dont use it so it complies fine... is that it?

  7. #7
    SimplyUnknown's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    52
    Reputation
    10
    Thanks
    10
    make sure its Multi Byte

    Source :

    Crash ( he helped me fix the same error by checking if it was multi byte )

    you can change it from > View > HackName Properties > General

  8. #8
    DreadKyller's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    122
    Reputation
    12
    Thanks
    21
    OMg, why are you helping me with the d3dx9.lib thing? I said that I fixed that and now I have a different problem. It is saying

    "fatal error LNK1120: 1 unresolved externals"

    I used COOlGuys menu base, and even trying to compile that without changeing anything is giveing the same error.

  9. #9
    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
    how bout we not help you at all with that arrogant attitude

  10. The Following 2 Users Say Thank You to scimmyboy For This Useful Post:

    DeadLinez (10-04-2010),[MPGH]flameswor10 (10-04-2010)

  11. #10
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,035
    Reputation
    340
    Thanks
    2,784
    My Mood
    Sad
    Quote Originally Posted by scimmyboy View Post
    how bout we not help you at all with that arrogant attitude
    No thank or reputation buttons on mobile ):

  12. #11
    DeadLinez's Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    http://mpgh.net Sexy Points: 989,576,420
    Posts
    465
    Reputation
    11
    Thanks
    499
    My Mood
    Psychedelic
    erase the "d3d9.lib" from your project and go to

    Project->Properties->General->Character Set->Unicode.

  13. #12
    freedompeace's Avatar
    Join Date
    Jul 2010
    Gender
    female
    Posts
    3,035
    Reputation
    340
    Thanks
    2,784
    My Mood
    Sad
    Quote Originally Posted by DeadLinez View Post
    erase the "d3d9.lib" from your project and go to

    Project->Properties->General->Character Set->Unicode.
    XD

    Can we also check if he's making a console application?

  14. #13
    flameswor10's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Posts
    12,528
    Reputation
    981
    Thanks
    10,404
    My Mood
    In Love
    Quote Originally Posted by freedompeace View Post
    No thank or reputation buttons on mobile ):
    I pressed it for you
    No I do not make game hacks anymore, please stop asking.


    Been MPGH Minion: 6 July 2011 - 1 August 2012

  15. #14
    DreadKyller's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    122
    Reputation
    12
    Thanks
    21
    I am useing COOlGuys' Menu Base:
    I have the project as .dll
    I have NOT changed any of the workings of the script, just added stuff to it useing feature already in the script.
    Even trying to build COOlGuys base directly from download, not changeing anythin it wtill does not work, so there is no problem with the code itself if he got it compiled.

    The only reason I posted about the d3dx9 error is because that "was" an error that happened, the is now fixed, I only put it in here incase it might have something to do with the current error which it and unresolved symbol.

  16. #15
    Stephen's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Location
    Engine.exe
    Posts
    4,690
    Reputation
    184
    Thanks
    1,147
    My Mood
    Aggressive
    Erase everything.

    /

Page 1 of 3 123 LastLast

Similar Threads

  1. error LNK2019
    By tstert in forum Combat Arms Help
    Replies: 9
    Last Post: 07-06-2010, 10:19 AM
  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