JCheng
04-05-2010, 07:41 AM
Need help! As a new guy for C++ programming, I found the problem of undefined reference of glPushMatrix(), part of it as below. Can it be fixed, as I working OpenGL at Code::Blocks on Window Vista?
================================================== ============
#pragma comment(linker, "/subsystem:windows")
#include <windows.h>
#include <gl/gl.h>
#include <gl/glu.h>
#include <gl/glaux.h>
HDC g_HDC;
float angle = 0.0f;
float legAngle[2] = {0.0f, 0.0f};
float armAngle[2] = {0.0f, 0.0f};
bool fullScreen = false;
void DrawCube(float xPos, float yPos, float zPos)
{
glPushMatrix();
.....
================================================== ============
#pragma comment(linker, "/subsystem:windows")
#include <windows.h>
#include <gl/gl.h>
#include <gl/glu.h>
#include <gl/glaux.h>
HDC g_HDC;
float angle = 0.0f;
float legAngle[2] = {0.0f, 0.0f};
float armAngle[2] = {0.0f, 0.0f};
bool fullScreen = false;
void DrawCube(float xPos, float yPos, float zPos)
{
glPushMatrix();
.....