Paste: building hello-gl

Author: hsuh
Mode: text
Date: Sat, 27 Mar 2010 23:14:45
Plain Text |
d:\play\opengl\hello-gl>nmake -f Nmakefile.Windows

Microsoft (R) Program Maintenance Utility Version 10.00.21003.01
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl /nologo /Fohello-gl.obj /c hello-gl.c
hello-gl.c
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\stdlib.h(353) : e
rror C2381: 'exit' : redefinition; __declspec(noreturn) differs
        C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\GL/glut.h
(146) : see declaration of 'exit'
hello-gl.c(56) : error C2275: 'GLuint' : illegal use of this type as an expressi
on
        C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\GL/glew.h
(227) : see declaration of 'GLuint'
hello-gl.c(56) : error C2146: syntax error : missing ';' before identifier 'text
ure'
hello-gl.c(56) : error C2065: 'texture' : undeclared identifier
hello-gl.c(57) : error C2065: 'texture' : undeclared identifier
hello-gl.c(58) : error C2065: 'texture' : undeclared identifier
hello-gl.c(71) : error C2065: 'texture' : undeclared identifier
hello-gl.c(108) : error C2440: 'function' : cannot convert from 'PFNGLGETSHADERI
VPROC' to 'void (__cdecl *)(GLuint,GLenum,GLint *)'
hello-gl.c(108) : warning C4024: 'show_info_log' : different types for formal an
d actual parameter 2
hello-gl.c(108) : error C2440: 'function' : cannot convert from 'PFNGLGETSHADERI
NFOLOGPROC' to 'void (__cdecl *)(GLuint,GLsizei,GLsizei *,GLchar *)'
hello-gl.c(108) : warning C4024: 'show_info_log' : different types for formal an
d actual parameter 3
hello-gl.c(128) : error C2440: 'function' : cannot convert from 'PFNGLGETPROGRAM
IVPROC' to 'void (__cdecl *)(GLuint,GLenum,GLint *)'
hello-gl.c(128) : warning C4024: 'show_info_log' : different types for formal an
d actual parameter 2
hello-gl.c(128) : error C2440: 'function' : cannot convert from 'PFNGLGETPROGRAM
INFOLOGPROC' to 'void (__cdecl *)(GLuint,GLsizei,GLsizei *,GLchar *)'
hello-gl.c(128) : warning C4024: 'show_info_log' : different types for formal an
d actual parameter 3
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\cl.EXE"' : return code '0x2'
Stop.

New Annotation

Summary:
Author:
Mode:
Body: