Menu

Z14MainWindowProc Error

starcreek
2008-01-29
2012-09-26
  • starcreek

    starcreek - 2008-01-29

    Well, thanks so much for all your previous help!! although i was wondering if you could help me on this error and tell me why its happening; if u would be so kind.

    Here is my compile log:

    Compiler: Default compiler
    Building Makefile: "C:\ATimetoKill\Makefile.win"
    Executing make...
    make.exe -f "C:\ATimetoKill\Makefile.win" all
    g++.exe CGfxOpenGL.o winmain.o -o "winmain.exe" -L"C:/Dev-Cpp/lib" -lopengl32 -lglu32 -mwindows

    winmain.o(.text+0x182): In function Z14MainWindowProcP6HWND__jjl': C:/ATimetoKill/winmain.cpp:82: undefined reference toCGfxOpenGL::SetupProjection(int, int)'
    collect2: ld returned 1 exit status

    make.exe: *** [winmain.exe] Error 1

    Execution terminated

     
    • cpns

      cpns - 2008-01-30

      MainWindowProc() calls CGfxOpenGL::SetupProjection(int, int) but it does not exist in CGfxOpenGL. For it to have got through compilation of main.cpp, you must have declared it in the header, but not defined it in the CGfxOpenGL.cpp

      Which all-in-all means that the message means what the message says: try READING it!

      Clifford

       
    • Nobody/Anonymous

      Do you know what header and associated library you expect that function to come from?
      If you do not, why not?

      That is the first thing you should do, BEFORE you post a "Can someone fix this for me"
      post. Do some searching and find out where that function comes from, what its arguments
      should be, etc.

       
    • Nobody/Anonymous

      http://sourceforge.net/forum/forum.php?thread_id=1907305&forum_id=48211

      This is the equivalent of someone trying to become a lifeguard without knowing how to swim.

       
      • Nobody/Anonymous

        A HDIDBS question?

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.