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.
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 to
CGfxOpenGL::SetupProjection(int, int)'collect2: ld returned 1 exit status
make.exe: *** [winmain.exe] Error 1
Execution terminated
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
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.
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.
A HDIDBS question?