Results 1 to 7 of 7

Thread: unresolved external symbol

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2001
    Location
    UK
    Posts
    222

    Angry unresolved external symbol

    Hello

    I'm having a few problems with dll's still in vc++

    unresolved external symbol "__declspec(dllimport) int __stdcall InitHooksDll(struct HWND__ *,int)"

    I keep getting unresolved external symbols!! even though i think (obviously not) including all the file correctly!!

    could somebody have a look at my project and give me some insite!?!

    would be very greatful!!

    cheers in advance

    Andy
    Attached Files Attached Files

  2. #2
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    Is the .lib file included in the linker options?
    Alcohol & calculus don't mix.
    Never drink & derive.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2001
    Location
    UK
    Posts
    222

    Question lib

    Yeah I think i have added it correctly, it is in the main programs settings, and it has the path to the lib?!
    as well as loads of other libs that were there when i created the project!

  4. #4
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    No, that's just the path the linker looks in when linking the project. Go to Project->Settings->Link tab->Object/Library modules box. You will see stuff like kernel32.lib, user32.lib, gdi32.lib, etc, add your .lib filename in there.
    Alcohol & calculus don't mix.
    Never drink & derive.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    May 2001
    Location
    UK
    Posts
    222
    yep, i've done that, but it said it couldn't find the lib. So i added the path to the front of it and it gave me the 4 unresolved external symbol errors!

  6. #6
    Fanatic Member Wynd's Avatar
    Join Date
    Dec 2000
    Location
    In a bar frequented by colossal death robots
    Posts
    772
    Try putting it in the same dir as the exe.
    Alcohol & calculus don't mix.
    Never drink & derive.

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    May 2001
    Location
    UK
    Posts
    222

    Angry

    right i have done that, but it is still giving me the errors!

    key32.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __stdcall InitHooksDll(struct HWND__ *,int)" (__imp_?InitHooksDll@@YGHPAUHWND__@@H@Z)
    key32.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __stdcall PaintHooksDll(struct HDC__ *)" (__imp_?PaintHooksDll@@YGHPAUHDC__@@@Z)
    key32.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) int __stdcall InstallFilter(int,int)" (__imp_?InstallFilter@@YGHHH@Z)

    ?!?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width