OGLQuad error LNK2001: unresolved external symbol "public: virtual bool __thiscall OGLQuad::qt_property(int,int,class QVariant *)" (?qt_property@OGLQuad@@UAE_NHHPAVQVariant@@@Z)
#ifndef _OGLQuad_h_#define _OGLQuad_h_#include <qgl.h>// ======================================================================class OGLQuad : public QGLWidget { Q_OBJECTprotected: virtual void initializeGL( ); virtual void resizeGL (int nWidth, int nHeight); virtual void paintGL ( );public: OGLQuad(QWidget* pwgt = 0, const char* pszName = 0);};#endif //_OGLQuad_h_
LINK : warning LNK4199: /DELAYLOAD:comdlg32.dll ignored; no imports found from comdlg32.dllLINK : warning LNK4199: /DELAYLOAD:oleaut32.dll ignored; no imports found from oleaut32.dllLINK : warning LNK4199: /DELAYLOAD:winmm.dll ignored; no imports found from winmm.dllLINK : warning LNK4199: /DELAYLOAD:wsock32.dll ignored; no imports found from wsock32.dllLINK : warning LNK4199: /DELAYLOAD:winspool.dll ignored; no imports found from winspool.dllLINK : warning LNK4089: all references to 'MSVCP71.dll' discarded by /OPT:REF
OGLQuad error LNK2019: unresolved external symbol __imp__glOrtho@48 referenced in function "protected: virtual void __thiscall OGLQuad::resizeGL(int,int)" (?resizeGL@OGLQuad@@MAEXHH@Z)OGLQuad error LNK2019: unresolved external symbol __imp__glClear@4 referenced in function "protected: virtual void __thiscall OGLQuad::paintGL(void)" (?paintGL@OGLQuad@@MAEXXZ)
moc oglquad.h -o moc_oglquad.cpp
TEMPLATE = appCONFIG += qt opengl warn_on releaseHEADERS = OGLQuad.hSOURCES = OGLQuad.cpp \ main.cppTARGET = OGLQuad
class OGLQuad : public QGLWidget { Q_OBJECTprotected: virtual void initializeGL( ); virtual void resizeGL ( int nWidth, int nHeight ); //virtual void paintGL ( );public: OGLQuad(QWidget* pwgt = 0, const char* pszName = 0);};
void OGLQuad::resizeGL ( int nWidth, int nHeight ){ glMatrixMode(GL_PROJECTION);// вот оно ... ...}