Menu

Many errors on compilation

2007-10-19
2012-11-13
  • Nobody/Anonymous

    Hi for everybody.

    I'm try compiler the Notepad++ v4.4, but I'm not getting!

    After of : "Finished searching libraries"

    appear several errors:

    WordStyleDlg.obj : error LNK2001: unresolved external symbol __imp__SelectObject@8
    Notepad_plus.obj : error LNK2001: unresolved external symbol __imp__SelectObject@8
    Printer.obj : error LNK2001: unresolved external symbol __imp__SelectObject@8
    TabBar.obj : error LNK2019: unresolved external symbol __imp__SelectObject@8 referenced in function "protected: static long __stdcall TabBarPlus::TabBarPlus_Proc(struct HWND__ *,unsigned int,unsigned int,long)" (?TabBarPlus_Proc@TabBarPlus@@KGJPAUHWND__@@IIJ@Z)
    URLCtrl.obj : error LNK2001: unresolved external symbol __imp__SelectObject@8
    BabyGrid.obj : error LNK2001: unresolved external symbol __imp__SelectObject@8
    ColourPopup.obj : error LNK2001: unresolved external symbol __imp__SelectObject@8
    DockingCont.obj : error LNK2001: unresolved external symbol __imp__SelectObject@8
    Gripper.obj : error LNK2001: unresolved external symbol __imp__SelectObject@8
    BabyGrid.obj : error LNK2019: unresolved external symbol __imp__SetBkMode@8 referenced in function "void __cdecl DisplayTitle(struct HWND__ *,int,struct HFONT__ *)" (?DisplayTitle@@YAXPAUHWND__@@HPAUHFONT__@@@Z)
    ColourPopup.obj : error LNK2001: unresolved external symbol __imp__SetBkMode@8
    DockingCont.obj : error LNK2001: unresolved external symbol __imp__SetBkMode@8
    TabBar.obj : error LNK2001: unresolved external symbol __imp__SetBkMode@8
    winmain.obj : error LNK2001: unresolved external symbol __imp__DeleteObject@4
    Printer.obj : error LNK2001: unresolved external symbol __imp__DeleteObject@4
    TabBar.obj : error LNK2001: unresolved external symbol __imp__DeleteObject@4
    URLCtrl.obj : error LNK2001: unresolved external symbol __imp__DeleteObject@4
    UserDefineDialog.obj : error LNK2001: unresolved external symbol __imp__DeleteObject@4
    FindReplaceDlg.obj : error LNK2001: unresolved external symbol __imp__DeleteObject@4
    ImageListSet.obj : error LNK2001: unresolved external symbol __imp__DeleteObject@4
    Notepad_plus.obj : error LNK2001: unresolved external symbol __imp__DeleteObject@4
    preferenceDlg.obj : error LNK2001: unresolved external symbol __imp__DeleteObject@4
    BabyGrid.obj : error LNK2019: unresolved external symbol __imp__DeleteObject@4 referenced in function "void __cdecl DisplayColumn(struct HWND__ *,int,int,int,struct HFONT__ *,struct HFONT__ *)" (?DisplayColumn@@YAXPAUHWND__@@HHHPAUHFONT__@@1@Z)
    ColourPicker.obj : error LNK2001: unresolved external symbol __imp__DeleteObject@4
    ColourPopup.obj : error LNK2001: unresolved external symbol __imp__DeleteObject@4
    DockingCont.obj : error LNK2001: unresolved external symbol __imp__DeleteObject@4
    BabyGrid.obj : error LNK2019: unresolved external symbol __imp__CreatePen@12 referenced in function "void __cdecl DisplayColumn(struct HWND__ *,int,int,int,struct HFONT__ *,struct HFONT__ *)" (?DisplayColumn@@YAXPAUHWND__@@HHHPAUHFONT__@@1@Z)
    ColourPopup.obj : error LNK2001: unresolved external symbol __imp__CreatePen@12
    DockingCont.obj : error LNK2001: unresolved external symbol __imp__CreatePen@12
    Printer.obj : error LNK2001: unresolved external symbol __imp__CreatePen@12
    Notepad_plus.obj : error LNK2001: unresolved external symbol __imp__CreateSolidBrush@4
    TabBar.obj : error LNK2019: unresolved external symbol __imp__CreateSolidBrush@4 referenced in function "protected: long __thiscall TabBarPlus::runProc(struct HWND__ *,unsigned int,unsigned int,long)" (?runProc@TabBarPlus@@IAEJPAUHWND__@@IIJ@Z)
    BabyGrid.obj : error LNK2001: unresolved external symbol __imp__CreateSolidBrush@4
    ColourPicker.obj : error LNK2001: unresolved external symbol __imp__CreateSolidBrush@4

    ... and continue

    can anybody help me?

    I'm using the VC++ 2005 Express. Is necessary any configuration?

    Thanks!

     
    • Nobody/Anonymous

      get built!!

      Really, lacked any instructions...

      according with the pjkaus :
      "kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib" 

      Thanks for everybody and pjkaus

       
    • Nobody/Anonymous

      I believe your problem is in the installation of platform SDK the sdk libraries are not being searched at link time.
      Try following instructions at
      http://msdn2.microsoft.com/en-us/express/aa700755.aspx

       
    • Nobody/Anonymous

      Hi Dear,

      Thanks for your answer. I change the path and make the configurations of site of msdn, but this no resolved my problem.
      Any other instruction?

      Again, thanks for your help.

       
    • Nobody/Anonymous

      Hi.

      I add the user32.lib in the : project / properties / Configuration Properties / linker / input and the errors reduce of
      779 to 126 !!! I think that I need add others libs, the question is what???

      Anybody have a suggestion ?

      Thanks!

       
    • pjkaus

      pjkaus - 2007-10-20

      IYou said you followed the instructions but if you had to add user32.lib afterwards you clearly did not.
      the following lifted directly from the link I gave you

      AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib"