1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Link problem with HWND

Discussion in 'Win32' started by josejps84, Oct 5, 2010.

  1. josejps84

    josejps84 New Member

    Joined:
    Oct 5, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi everybody !

    I'm using Codeblocks and mingw, trying to do something with a controller lib (for a spaceMouse) and Ogre3D, I'm rebuilding the controller lib in codeblocks and everything is ok, but when I try to access one method in that lib I got this error :


    undefined reference to `SiOpenWinInit(SiOpenData*, HWND__*)'

    Method definition (in Lib) is :

    void SiOpenWinInit (SiOpenData *pData, HWND hWnd)
    {
    ...
    }

    And the method call (in my app) is :
    HWND hwnd = ((D3D9RenderWindow*)(win))->getWindowHandle();
    SiOpenWinInit (&oData, hwnd);

    I tried so many things but nothing works here, Can somebody help me with this please ?

    Thanks in advance
     
  2. Rakesh Kumar Pahwa

    Rakesh Kumar Pahwa New Member

    Joined:
    Jan 13, 2011
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    0
    Did you checked the "hwnd" value..? is it NULL or something is there...?
     
  3. BiffoLee

    BiffoLee New Member

    Joined:
    Mar 25, 2011
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    You may verify the lib path(absolute reference or relative reference) you introduced in you program.
    ASSERT(hwnd ==NULL);
     

Share This Page