attached is my cpp file, all the code is right out of my book and i'm not quite sure how to fix it yet....try compiling it and you'll see.
attached is my cpp file, all the code is right out of my book and i'm not quite sure how to fix it yet....try compiling it and you'll see.
The header file is <GL/GLaux> not <GL/GLuax>
float armAngle[2] = {0.0f, 0.0f);
That, obviously should be ended with '}' as opposed to ')' but I know it's hard to mistake the two on higher resolutions.
glTranslate()
The function is glTranslatef();
yea the {} was an oops. Thnx for the help man.
i made thos changes now i get this on the globals. Also those floats need the { } on them, not the ( ).
--------------------Configuration: Page131OGL - Win32 Debug--------------------
Compiling...
Page131OGL.cpp
C:\Program Files\Microsoft Visual Studio\MyProjects\Page131OGL\Page131OGL.cpp(29) : error C2440: 'initializing' : cannot convert from 'const float' to 'float [2]'
There are no conversions to array types, although there are conversions to references or pointers to arrays
C:\Program Files\Microsoft Visual Studio\MyProjects\Page131OGL\Page131OGL.cpp(30) : error C2440: 'initializing' : cannot convert from 'const float' to 'float [2]'
There are no conversions to array types, although there are conversions to references or pointers to arrays
Error executing cl.exe.
Page131OGL.exe - 2 error(s), 0 warning(s)
Last edited by RoD; 01-20-2003 at 03:03 PM.
You can use plane simple typecasting for that.
posted wrong errors:
Code:--------------------Configuration: Page131OGL - Win32 Debug-------------------- Linking... Page131OGL.obj : error LNK2001: unresolved external symbol __imp__glPopMatrix@0 Page131OGL.obj : error LNK2001: unresolved external symbol __imp__glEnd@0 Page131OGL.obj : error LNK2001: unresolved external symbol __imp__glVertex3f@12 Page131OGL.obj : error LNK2001: unresolved external symbol __imp__glBegin@4 Page131OGL.obj : error LNK2001: unresolved external symbol __imp__glPushMatrix@0 Page131OGL.obj : error LNK2001: unresolved external symbol __imp__glScalef@12 Page131OGL.obj : error LNK2001: unresolved external symbol __imp__glTranslatef@12 Page131OGL.obj : error LNK2001: unresolved external symbol __imp__glColor3f@12 Page131OGL.obj : error LNK2001: unresolved external symbol __imp__glRotatef@16 Page131OGL.obj : error LNK2001: unresolved external symbol __imp__glFlush@0 Page131OGL.obj : error LNK2001: unresolved external symbol __imp__glLoadIdentity@0 Page131OGL.obj : error LNK2001: unresolved external symbol __imp__glClear@4 Page131OGL.obj : error LNK2001: unresolved external symbol __imp__glClearColor@16 Page131OGL.obj : error LNK2001: unresolved external symbol __imp__glEnable@4 Page131OGL.obj : error LNK2001: unresolved external symbol _gluPerspective@32 Page131OGL.obj : error LNK2001: unresolved external symbol __imp__glMatrixMode@4 Page131OGL.obj : error LNK2001: unresolved external symbol __imp__glViewport@16 Page131OGL.obj : error LNK2001: unresolved external symbol __imp__wglDeleteContext@4 Page131OGL.obj : error LNK2001: unresolved external symbol __imp__wglMakeCurrent@8 Page131OGL.obj : error LNK2001: unresolved external symbol __imp__wglCreateContext@4 Debug/Page131OGL.exe : fatal error LNK1120: 20 unresolved externals Error executing link.exe. Page131OGL.exe - 21 error(s), 0 warning(s)
Looks like missing libs.....add OpenGL32.lib GLu32.lib and GLaux.lib
duh me.....i usually use pragma i forgot :P
GRRRR
--------------------Configuration: RobotGL - Win32 Debug--------------------
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/RobotGL.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
RobotGL.exe - 2 error(s), 0 warning(s)
*Sniff Sniff* I smell a Console Application! Check if you don'tOriginally posted by RoD
GRRRR
--------------------Configuration: RobotGL - Win32 Debug--------------------
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/RobotGL.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
RobotGL.exe - 2 error(s), 0 warning(s)
accidently took a console app.
#pragma comment(linker, "/subsystem:windows")
Eibro i think i love you man!
ICQ 96370823, maybe we can make something of itOriginally posted by RoD
Eibro i think i love you man!
O.O
ok i'm going over there now.....
Yeah, well if you look 1 post above that one, you'lle see i gaveOriginally posted by Eibro
#pragma comment(linker, "/subsystem:windows")
you this answer already, not demand the honor or anything .
I still recommand using a true Win32 program instead of a
console app with that pragma line.