google-site-verification: googlebaca44933768a824.html Linking error LNK2001 - Old Royal Hack Forum

Announcement

Collapse
No announcement yet.

Linking error LNK2001

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Linking error LNK2001

    When i build royalhack i get an error.

    HTML Code:
    Panels.obj : error LNK2001: unresolved external symbol "public: virtual class vgui::Panel * __thiscall vgui::Panel::HasHotkey(wchar_t)" (?HasHotkey@Panel@vgui@@UAEPAV12@_W@Z
    HTML Code:
    Panels.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall vgui::Panel::OnKeyTyped(wchar_t)" (?OnKeyTyped@Panel@vgui@@UAEX_W@Z)
    I tried to add libraries to the project. Now Urlmon.lib winmm.lib msvcrt.lib user32.lib is in additional dependecies. Additional options
    Code:
    /FORCE:MULTIPLE 
    /NODEFAULTLIB:LIBCMT

    #2
    revise panel.h :)

    Comment


      #3
      This is my panels.h. What should i fix in it?
      Code:
      #ifndef __PANELS_H__
      #define __PANELS_H__
      
      #include "sdk.h"
      
      typedef struct 
      {
      	int m_iWidth;
      	int m_iHeight;
      } ScreenSize_t;		// used to store the screen resolution
      
      class CDrawPanel : public vgui::Panel
      {
      	typedef vgui::Panel BaseClass;
      
      	public:
      	CDrawPanel( vgui::VPANEL parent );
      	virtual void Paint();
      };
      
      class CDrawLayer
      {
      	private:
      		CDrawPanel*  pDrawPanel;
      
      	public:
      		CDrawLayer ( void );
      		~CDrawLayer ( void );
      
      		void Create ( vgui::VPANEL parent );
      		void Destroy( void );
      };
      
      extern ScreenSize_t sScreenSize;// struct to store the screen-size
      
      #endif

      Comment


        #4
        Originally posted by bagnikita View Post
        This is my panels.h. What should i fix in it?
        Code:
        #ifndef __PANELS_H__
        #define __PANELS_H__
        
        #include "sdk.h"
        
        typedef struct 
        {
        	int m_iWidth;
        	int m_iHeight;
        } ScreenSize_t;		// used to store the screen resolution
        
        class CDrawPanel : public vgui::Panel
        {
        	typedef vgui::Panel BaseClass;
        
        	public:
        	CDrawPanel( vgui::VPANEL parent );
        	virtual void Paint();
        };
        
        class CDrawLayer
        {
        	private:
        		CDrawPanel*  pDrawPanel;
        
        	public:
        		CDrawLayer ( void );
        		~CDrawLayer ( void );
        
        		void Create ( vgui::VPANEL parent );
        		void Destroy( void );
        };
        
        extern ScreenSize_t sScreenSize;// struct to store the screen-size
        
        #endif
        This funtion no declarated in panels: vgui::Panel::HasHotkey remove this, use net2003 for compile this or rebuild project.

        Comment

        Working...
        X