//Errors in compiling OpenGL libraries. mandeep@mandeep-HP:~/Desktop$ g++ -I/usr/include/GL -I/usr/lib -lGL -lglut new.cpp /tmp/cc7bNCZE.o: In function `drawDot(int, int, float, float, float)': new.cpp:(.text+0x3f): undefined reference to `glColor3f' new.cpp:(.text+0x49): undefined reference to `glBegin' new.cpp:(.text+0x58): undefined reference to `glVertex2i' new.cpp:(.text+0x5d): undefined reference to `glEnd' /tmp/cc7bNCZE.o: In function `drawFloatPolygon(GLfloatPointArray, float*)': new.cpp:(.text+0x77): undefined reference to `glColor3fv' new.cpp:(.text+0x81): undefined reference to `glBegin' new.cpp:(.text+0xb1): undefined reference to `glVertex2f' new.cpp:(.text+0xc2): undefined reference to `glEnd' /tmp/cc7bNCZE.o: In function `myInit()': new.cpp:(.text+0xe8): undefined reference to `glClearColor' new.cpp:(.text+0xf6): undefined reference to `glColor3f' new.cpp:(.text+0x100): undefined reference to `glMatrixMode' new.cpp:(.text+0x105): undefined reference to `glLoadIdentity' /tmp/cc7bNCZE.o: In function `genClip(GLfloatPointArray, GLfloatPoint, GLfloatPoint)': new.cpp:(.text+0x5e0): undefined reference to `glColor3f' new.cpp:(.text+0x5ea): undefined reference to `glBegin' new.cpp:(.text+0x617): undefined reference to `glVertex2f' new.cpp:(.text+0x644): undefined reference to `glVertex2f' new.cpp:(.text+0x649): undefined reference to `glEnd' new.cpp:(.text+0x64e): undefined reference to `glFlush' /tmp/cc7bNCZE.o: In function `Hatch(GLfloatPointArray, GLfloatPoint, GLfloatPoint, float)': new.cpp:(.text+0x94b): undefined reference to `glColor3f' new.cpp:(.text+0x958): undefined reference to `glPointSize' new.cpp:(.text+0x962): undefined reference to `glBegin' new.cpp:(.text+0x97d): undefined reference to `glVertex2f' new.cpp:(.text+0x998): undefined reference to `glVertex2f' new.cpp:(.text+0x99d): undefined reference to `glEnd' /tmp/cc7bNCZE.o: In function `myDisplay()': new.cpp:(.text+0xa3a): undefined reference to `glClear' new.cpp:(.text+0xb33): undefined reference to `glColor3f' new.cpp:(.text+0xb3d): undefined reference to `glBegin' new.cpp:(.text+0xb6a): undefined reference to `glVertex2f' new.cpp:(.text+0xb97): undefined reference to `glVertex2f' new.cpp:(.text+0xb9c): undefined reference to `glEnd' new.cpp:(.text+0xc12): undefined reference to `glFlush' /tmp/cc7bNCZE.o: In function `main': new.cpp:(.text+0xc36): undefined reference to `glutInit' new.cpp:(.text+0xc40): undefined reference to `glutInitDisplayMode' new.cpp:(.text+0xc4f): undefined reference to `glutInitWindowSize' new.cpp:(.text+0xc5e): undefined reference to `glutInitWindowPosition' new.cpp:(.text+0xc68): undefined reference to `glutCreateWindow' new.cpp:(.text+0xc72): undefined reference to `glutDisplayFunc' new.cpp:(.text+0xc7c): undefined reference to `glutMainLoop' collect2: error: ld returned 1 exit status mandeep@mandeep-HP:~/Desktop$ g++ -I/usr/include/GL -I/usr/lib -lGL -lglut new.cpp -o output.out /tmp/ccrPSIlG.o: In function `drawDot(int, int, float, float, float)': new.cpp:(.text+0x3f): undefined reference to `glColor3f' new.cpp:(.text+0x49): undefined reference to `glBegin' new.cpp:(.text+0x58): undefined reference to `glVertex2i' new.cpp:(.text+0x5d): undefined reference to `glEnd' /tmp/ccrPSIlG.o: In function `drawFloatPolygon(GLfloatPointArray, float*)': new.cpp:(.text+0x77): undefined reference to `glColor3fv' new.cpp:(.text+0x81): undefined reference to `glBegin' new.cpp:(.text+0xb1): undefined reference to `glVertex2f' new.cpp:(.text+0xc2): undefined reference to `glEnd' /tmp/ccrPSIlG.o: In function `myInit()': new.cpp:(.text+0xe8): undefined reference to `glClearColor' new.cpp:(.text+0xf6): undefined reference to `glColor3f' new.cpp:(.text+0x100): undefined reference to `glMatrixMode' new.cpp:(.text+0x105): undefined reference to `glLoadIdentity' /tmp/ccrPSIlG.o: In function `genClip(GLfloatPointArray, GLfloatPoint, GLfloatPoint)': new.cpp:(.text+0x5e0): undefined reference to `glColor3f' new.cpp:(.text+0x5ea): undefined reference to `glBegin' new.cpp:(.text+0x617): undefined reference to `glVertex2f' new.cpp:(.text+0x644): undefined reference to `glVertex2f' new.cpp:(.text+0x649): undefined reference to `glEnd' new.cpp:(.text+0x64e): undefined reference to `glFlush' /tmp/ccrPSIlG.o: In function `Hatch(GLfloatPointArray, GLfloatPoint, GLfloatPoint, float)': new.cpp:(.text+0x94b): undefined reference to `glColor3f' new.cpp:(.text+0x958): undefined reference to `glPointSize' new.cpp:(.text+0x962): undefined reference to `glBegin' new.cpp:(.text+0x97d): undefined reference to `glVertex2f' new.cpp:(.text+0x998): undefined reference to `glVertex2f' new.cpp:(.text+0x99d): undefined reference to `glEnd' /tmp/ccrPSIlG.o: In function `myDisplay()': new.cpp:(.text+0xa3a): undefined reference to `glClear' new.cpp:(.text+0xb33): undefined reference to `glColor3f' new.cpp:(.text+0xb3d): undefined reference to `glBegin' new.cpp:(.text+0xb6a): undefined reference to `glVertex2f' new.cpp:(.text+0xb97): undefined reference to `glVertex2f' new.cpp:(.text+0xb9c): undefined reference to `glEnd' new.cpp:(.text+0xc12): undefined reference to `glFlush' /tmp/ccrPSIlG.o: In function `main': new.cpp:(.text+0xc36): undefined reference to `glutInit' new.cpp:(.text+0xc40): undefined reference to `glutInitDisplayMode' new.cpp:(.text+0xc4f): undefined reference to `glutInitWindowSize' new.cpp:(.text+0xc5e): undefined reference to `glutInitWindowPosition' new.cpp:(.text+0xc68): undefined reference to `glutCreateWindow' new.cpp:(.text+0xc72): undefined reference to `glutDisplayFunc' new.cpp:(.text+0xc7c): undefined reference to `glutMainLoop' collect2: error: ld returned 1 exit status
Standard input is empty
prog.cpp:3:8: error: stray ‘@’ in program mandeep@mandeep-HP:~/Desktop$ g++ -I/usr/include/GL -I/usr/lib -lGL -lglut new.cpp ^ prog.cpp:4:1: error: stray ‘`’ in program /tmp/cc7bNCZE.o: In function `drawDot(int, int, float, float, float)': ^ prog.cpp:4:69: warning: missing terminating ' character [enabled by default] /tmp/cc7bNCZE.o: In function `drawDot(int, int, float, float, float)': ^ prog.cpp:4:1: error: missing terminating ' character /tmp/cc7bNCZE.o: In function `drawDot(int, int, float, float, float)': ^ prog.cpp:5:1: error: stray ‘`’ in program new.cpp:(.text+0x3f): undefined reference to `glColor3f' ^ prog.cpp:5:56: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x3f): undefined reference to `glColor3f' ^ prog.cpp:5:1: error: missing terminating ' character new.cpp:(.text+0x3f): undefined reference to `glColor3f' ^ prog.cpp:6:1: error: stray ‘`’ in program new.cpp:(.text+0x49): undefined reference to `glBegin' ^ prog.cpp:6:54: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x49): undefined reference to `glBegin' ^ prog.cpp:6:1: error: missing terminating ' character new.cpp:(.text+0x49): undefined reference to `glBegin' ^ prog.cpp:7:1: error: stray ‘`’ in program new.cpp:(.text+0x58): undefined reference to `glVertex2i' ^ prog.cpp:7:57: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x58): undefined reference to `glVertex2i' ^ prog.cpp:7:1: error: missing terminating ' character new.cpp:(.text+0x58): undefined reference to `glVertex2i' ^ prog.cpp:8:1: error: stray ‘`’ in program new.cpp:(.text+0x5d): undefined reference to `glEnd' ^ prog.cpp:8:52: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x5d): undefined reference to `glEnd' ^ prog.cpp:8:1: error: missing terminating ' character new.cpp:(.text+0x5d): undefined reference to `glEnd' ^ prog.cpp:9:1: error: stray ‘`’ in program /tmp/cc7bNCZE.o: In function `drawFloatPolygon(GLfloatPointArray, float*)': ^ prog.cpp:9:74: warning: missing terminating ' character [enabled by default] /tmp/cc7bNCZE.o: In function `drawFloatPolygon(GLfloatPointArray, float*)': ^ prog.cpp:9:1: error: missing terminating ' character /tmp/cc7bNCZE.o: In function `drawFloatPolygon(GLfloatPointArray, float*)': ^ prog.cpp:10:1: error: stray ‘`’ in program new.cpp:(.text+0x77): undefined reference to `glColor3fv' ^ prog.cpp:10:57: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x77): undefined reference to `glColor3fv' ^ prog.cpp:10:1: error: missing terminating ' character new.cpp:(.text+0x77): undefined reference to `glColor3fv' ^ prog.cpp:11:1: error: stray ‘`’ in program new.cpp:(.text+0x81): undefined reference to `glBegin' ^ prog.cpp:11:54: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x81): undefined reference to `glBegin' ^ prog.cpp:11:1: error: missing terminating ' character new.cpp:(.text+0x81): undefined reference to `glBegin' ^ prog.cpp:12:1: error: stray ‘`’ in program new.cpp:(.text+0xb1): undefined reference to `glVertex2f' ^ prog.cpp:12:57: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xb1): undefined reference to `glVertex2f' ^ prog.cpp:12:1: error: missing terminating ' character new.cpp:(.text+0xb1): undefined reference to `glVertex2f' ^ prog.cpp:13:1: error: stray ‘`’ in program new.cpp:(.text+0xc2): undefined reference to `glEnd' ^ prog.cpp:13:52: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xc2): undefined reference to `glEnd' ^ prog.cpp:13:1: error: missing terminating ' character new.cpp:(.text+0xc2): undefined reference to `glEnd' ^ prog.cpp:14:1: error: stray ‘`’ in program /tmp/cc7bNCZE.o: In function `myInit()': ^ prog.cpp:14:39: warning: missing terminating ' character [enabled by default] /tmp/cc7bNCZE.o: In function `myInit()': ^ prog.cpp:14:1: error: missing terminating ' character /tmp/cc7bNCZE.o: In function `myInit()': ^ prog.cpp:15:1: error: stray ‘`’ in program new.cpp:(.text+0xe8): undefined reference to `glClearColor' ^ prog.cpp:15:59: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xe8): undefined reference to `glClearColor' ^ prog.cpp:15:1: error: missing terminating ' character new.cpp:(.text+0xe8): undefined reference to `glClearColor' ^ prog.cpp:16:1: error: stray ‘`’ in program new.cpp:(.text+0xf6): undefined reference to `glColor3f' ^ prog.cpp:16:56: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xf6): undefined reference to `glColor3f' ^ prog.cpp:16:1: error: missing terminating ' character new.cpp:(.text+0xf6): undefined reference to `glColor3f' ^ prog.cpp:17:1: error: stray ‘`’ in program new.cpp:(.text+0x100): undefined reference to `glMatrixMode' ^ prog.cpp:17:60: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x100): undefined reference to `glMatrixMode' ^ prog.cpp:17:1: error: missing terminating ' character new.cpp:(.text+0x100): undefined reference to `glMatrixMode' ^ prog.cpp:18:1: error: stray ‘`’ in program new.cpp:(.text+0x105): undefined reference to `glLoadIdentity' ^ prog.cpp:18:62: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x105): undefined reference to `glLoadIdentity' ^ prog.cpp:18:1: error: missing terminating ' character new.cpp:(.text+0x105): undefined reference to `glLoadIdentity' ^ prog.cpp:19:1: error: stray ‘`’ in program /tmp/cc7bNCZE.o: In function `genClip(GLfloatPointArray, GLfloatPoint, GLfloatPoint)': ^ prog.cpp:19:85: warning: missing terminating ' character [enabled by default] /tmp/cc7bNCZE.o: In function `genClip(GLfloatPointArray, GLfloatPoint, GLfloatPoint)': ^ prog.cpp:19:1: error: missing terminating ' character /tmp/cc7bNCZE.o: In function `genClip(GLfloatPointArray, GLfloatPoint, GLfloatPoint)': ^ prog.cpp:20:1: error: stray ‘`’ in program new.cpp:(.text+0x5e0): undefined reference to `glColor3f' ^ prog.cpp:20:57: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x5e0): undefined reference to `glColor3f' ^ prog.cpp:20:1: error: missing terminating ' character new.cpp:(.text+0x5e0): undefined reference to `glColor3f' ^ prog.cpp:21:1: error: stray ‘`’ in program new.cpp:(.text+0x5ea): undefined reference to `glBegin' ^ prog.cpp:21:55: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x5ea): undefined reference to `glBegin' ^ prog.cpp:21:1: error: missing terminating ' character new.cpp:(.text+0x5ea): undefined reference to `glBegin' ^ prog.cpp:22:1: error: stray ‘`’ in program new.cpp:(.text+0x617): undefined reference to `glVertex2f' ^ prog.cpp:22:58: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x617): undefined reference to `glVertex2f' ^ prog.cpp:22:1: error: missing terminating ' character new.cpp:(.text+0x617): undefined reference to `glVertex2f' ^ prog.cpp:23:1: error: stray ‘`’ in program new.cpp:(.text+0x644): undefined reference to `glVertex2f' ^ prog.cpp:23:58: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x644): undefined reference to `glVertex2f' ^ prog.cpp:23:1: error: missing terminating ' character new.cpp:(.text+0x644): undefined reference to `glVertex2f' ^ prog.cpp:24:1: error: stray ‘`’ in program new.cpp:(.text+0x649): undefined reference to `glEnd' ^ prog.cpp:24:53: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x649): undefined reference to `glEnd' ^ prog.cpp:24:1: error: missing terminating ' character new.cpp:(.text+0x649): undefined reference to `glEnd' ^ prog.cpp:25:1: error: stray ‘`’ in program new.cpp:(.text+0x64e): undefined reference to `glFlush' ^ prog.cpp:25:55: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x64e): undefined reference to `glFlush' ^ prog.cpp:25:1: error: missing terminating ' character new.cpp:(.text+0x64e): undefined reference to `glFlush' ^ prog.cpp:26:1: error: stray ‘`’ in program /tmp/cc7bNCZE.o: In function `Hatch(GLfloatPointArray, GLfloatPoint, GLfloatPoint, float)': ^ prog.cpp:26:90: warning: missing terminating ' character [enabled by default] /tmp/cc7bNCZE.o: In function `Hatch(GLfloatPointArray, GLfloatPoint, GLfloatPoint, float)': ^ prog.cpp:26:1: error: missing terminating ' character /tmp/cc7bNCZE.o: In function `Hatch(GLfloatPointArray, GLfloatPoint, GLfloatPoint, float)': ^ prog.cpp:27:1: error: stray ‘`’ in program new.cpp:(.text+0x94b): undefined reference to `glColor3f' ^ prog.cpp:27:57: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x94b): undefined reference to `glColor3f' ^ prog.cpp:27:1: error: missing terminating ' character new.cpp:(.text+0x94b): undefined reference to `glColor3f' ^ prog.cpp:28:1: error: stray ‘`’ in program new.cpp:(.text+0x958): undefined reference to `glPointSize' ^ prog.cpp:28:59: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x958): undefined reference to `glPointSize' ^ prog.cpp:28:1: error: missing terminating ' character new.cpp:(.text+0x958): undefined reference to `glPointSize' ^ prog.cpp:29:1: error: stray ‘`’ in program new.cpp:(.text+0x962): undefined reference to `glBegin' ^ prog.cpp:29:55: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x962): undefined reference to `glBegin' ^ prog.cpp:29:1: error: missing terminating ' character new.cpp:(.text+0x962): undefined reference to `glBegin' ^ prog.cpp:30:1: error: stray ‘`’ in program new.cpp:(.text+0x97d): undefined reference to `glVertex2f' ^ prog.cpp:30:58: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x97d): undefined reference to `glVertex2f' ^ prog.cpp:30:1: error: missing terminating ' character new.cpp:(.text+0x97d): undefined reference to `glVertex2f' ^ prog.cpp:31:1: error: stray ‘`’ in program new.cpp:(.text+0x998): undefined reference to `glVertex2f' ^ prog.cpp:31:58: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x998): undefined reference to `glVertex2f' ^ prog.cpp:31:1: error: missing terminating ' character new.cpp:(.text+0x998): undefined reference to `glVertex2f' ^ prog.cpp:32:1: error: stray ‘`’ in program new.cpp:(.text+0x99d): undefined reference to `glEnd' ^ prog.cpp:32:53: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x99d): undefined reference to `glEnd' ^ prog.cpp:32:1: error: missing terminating ' character new.cpp:(.text+0x99d): undefined reference to `glEnd' ^ prog.cpp:33:1: error: stray ‘`’ in program /tmp/cc7bNCZE.o: In function `myDisplay()': ^ prog.cpp:33:42: warning: missing terminating ' character [enabled by default] /tmp/cc7bNCZE.o: In function `myDisplay()': ^ prog.cpp:33:1: error: missing terminating ' character /tmp/cc7bNCZE.o: In function `myDisplay()': ^ prog.cpp:34:1: error: stray ‘`’ in program new.cpp:(.text+0xa3a): undefined reference to `glClear' ^ prog.cpp:34:55: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xa3a): undefined reference to `glClear' ^ prog.cpp:34:1: error: missing terminating ' character new.cpp:(.text+0xa3a): undefined reference to `glClear' ^ prog.cpp:35:1: error: stray ‘`’ in program new.cpp:(.text+0xb33): undefined reference to `glColor3f' ^ prog.cpp:35:57: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xb33): undefined reference to `glColor3f' ^ prog.cpp:35:1: error: missing terminating ' character new.cpp:(.text+0xb33): undefined reference to `glColor3f' ^ prog.cpp:36:1: error: stray ‘`’ in program new.cpp:(.text+0xb3d): undefined reference to `glBegin' ^ prog.cpp:36:55: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xb3d): undefined reference to `glBegin' ^ prog.cpp:36:1: error: missing terminating ' character new.cpp:(.text+0xb3d): undefined reference to `glBegin' ^ prog.cpp:37:1: error: stray ‘`’ in program new.cpp:(.text+0xb6a): undefined reference to `glVertex2f' ^ prog.cpp:37:58: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xb6a): undefined reference to `glVertex2f' ^ prog.cpp:37:1: error: missing terminating ' character new.cpp:(.text+0xb6a): undefined reference to `glVertex2f' ^ prog.cpp:38:1: error: stray ‘`’ in program new.cpp:(.text+0xb97): undefined reference to `glVertex2f' ^ prog.cpp:38:58: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xb97): undefined reference to `glVertex2f' ^ prog.cpp:38:1: error: missing terminating ' character new.cpp:(.text+0xb97): undefined reference to `glVertex2f' ^ prog.cpp:39:1: error: stray ‘`’ in program new.cpp:(.text+0xb9c): undefined reference to `glEnd' ^ prog.cpp:39:53: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xb9c): undefined reference to `glEnd' ^ prog.cpp:39:1: error: missing terminating ' character new.cpp:(.text+0xb9c): undefined reference to `glEnd' ^ prog.cpp:40:1: error: stray ‘`’ in program new.cpp:(.text+0xc12): undefined reference to `glFlush' ^ prog.cpp:40:55: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xc12): undefined reference to `glFlush' ^ prog.cpp:40:1: error: missing terminating ' character new.cpp:(.text+0xc12): undefined reference to `glFlush' ^ prog.cpp:41:1: error: stray ‘`’ in program /tmp/cc7bNCZE.o: In function `main': ^ prog.cpp:41:35: warning: missing terminating ' character [enabled by default] /tmp/cc7bNCZE.o: In function `main': ^ prog.cpp:41:1: error: missing terminating ' character /tmp/cc7bNCZE.o: In function `main': ^ prog.cpp:42:1: error: stray ‘`’ in program new.cpp:(.text+0xc36): undefined reference to `glutInit' ^ prog.cpp:42:56: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xc36): undefined reference to `glutInit' ^ prog.cpp:42:1: error: missing terminating ' character new.cpp:(.text+0xc36): undefined reference to `glutInit' ^ prog.cpp:43:1: error: stray ‘`’ in program new.cpp:(.text+0xc40): undefined reference to `glutInitDisplayMode' ^ prog.cpp:43:67: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xc40): undefined reference to `glutInitDisplayMode' ^ prog.cpp:43:1: error: missing terminating ' character new.cpp:(.text+0xc40): undefined reference to `glutInitDisplayMode' ^ prog.cpp:44:1: error: stray ‘`’ in program new.cpp:(.text+0xc4f): undefined reference to `glutInitWindowSize' ^ prog.cpp:44:66: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xc4f): undefined reference to `glutInitWindowSize' ^ prog.cpp:44:1: error: missing terminating ' character new.cpp:(.text+0xc4f): undefined reference to `glutInitWindowSize' ^ prog.cpp:45:1: error: stray ‘`’ in program new.cpp:(.text+0xc5e): undefined reference to `glutInitWindowPosition' ^ prog.cpp:45:70: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xc5e): undefined reference to `glutInitWindowPosition' ^ prog.cpp:45:1: error: missing terminating ' character new.cpp:(.text+0xc5e): undefined reference to `glutInitWindowPosition' ^ prog.cpp:46:1: error: stray ‘`’ in program new.cpp:(.text+0xc68): undefined reference to `glutCreateWindow' ^ prog.cpp:46:64: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xc68): undefined reference to `glutCreateWindow' ^ prog.cpp:46:1: error: missing terminating ' character new.cpp:(.text+0xc68): undefined reference to `glutCreateWindow' ^ prog.cpp:47:1: error: stray ‘`’ in program new.cpp:(.text+0xc72): undefined reference to `glutDisplayFunc' ^ prog.cpp:47:63: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xc72): undefined reference to `glutDisplayFunc' ^ prog.cpp:47:1: error: missing terminating ' character new.cpp:(.text+0xc72): undefined reference to `glutDisplayFunc' ^ prog.cpp:48:1: error: stray ‘`’ in program new.cpp:(.text+0xc7c): undefined reference to `glutMainLoop' ^ prog.cpp:48:60: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xc7c): undefined reference to `glutMainLoop' ^ prog.cpp:48:1: error: missing terminating ' character new.cpp:(.text+0xc7c): undefined reference to `glutMainLoop' ^ prog.cpp:50:8: error: stray ‘@’ in program mandeep@mandeep-HP:~/Desktop$ g++ -I/usr/include/GL -I/usr/lib -lGL -lglut new.cpp -o output.out ^ prog.cpp:51:1: error: stray ‘`’ in program /tmp/ccrPSIlG.o: In function `drawDot(int, int, float, float, float)': ^ prog.cpp:51:69: warning: missing terminating ' character [enabled by default] /tmp/ccrPSIlG.o: In function `drawDot(int, int, float, float, float)': ^ prog.cpp:51:1: error: missing terminating ' character /tmp/ccrPSIlG.o: In function `drawDot(int, int, float, float, float)': ^ prog.cpp:52:1: error: stray ‘`’ in program new.cpp:(.text+0x3f): undefined reference to `glColor3f' ^ prog.cpp:52:56: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x3f): undefined reference to `glColor3f' ^ prog.cpp:52:1: error: missing terminating ' character new.cpp:(.text+0x3f): undefined reference to `glColor3f' ^ prog.cpp:53:1: error: stray ‘`’ in program new.cpp:(.text+0x49): undefined reference to `glBegin' ^ prog.cpp:53:54: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x49): undefined reference to `glBegin' ^ prog.cpp:53:1: error: missing terminating ' character new.cpp:(.text+0x49): undefined reference to `glBegin' ^ prog.cpp:54:1: error: stray ‘`’ in program new.cpp:(.text+0x58): undefined reference to `glVertex2i' ^ prog.cpp:54:57: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x58): undefined reference to `glVertex2i' ^ prog.cpp:54:1: error: missing terminating ' character new.cpp:(.text+0x58): undefined reference to `glVertex2i' ^ prog.cpp:55:1: error: stray ‘`’ in program new.cpp:(.text+0x5d): undefined reference to `glEnd' ^ prog.cpp:55:52: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x5d): undefined reference to `glEnd' ^ prog.cpp:55:1: error: missing terminating ' character new.cpp:(.text+0x5d): undefined reference to `glEnd' ^ prog.cpp:56:1: error: stray ‘`’ in program /tmp/ccrPSIlG.o: In function `drawFloatPolygon(GLfloatPointArray, float*)': ^ prog.cpp:56:74: warning: missing terminating ' character [enabled by default] /tmp/ccrPSIlG.o: In function `drawFloatPolygon(GLfloatPointArray, float*)': ^ prog.cpp:56:1: error: missing terminating ' character /tmp/ccrPSIlG.o: In function `drawFloatPolygon(GLfloatPointArray, float*)': ^ prog.cpp:57:1: error: stray ‘`’ in program new.cpp:(.text+0x77): undefined reference to `glColor3fv' ^ prog.cpp:57:57: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x77): undefined reference to `glColor3fv' ^ prog.cpp:57:1: error: missing terminating ' character new.cpp:(.text+0x77): undefined reference to `glColor3fv' ^ prog.cpp:58:1: error: stray ‘`’ in program new.cpp:(.text+0x81): undefined reference to `glBegin' ^ prog.cpp:58:54: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x81): undefined reference to `glBegin' ^ prog.cpp:58:1: error: missing terminating ' character new.cpp:(.text+0x81): undefined reference to `glBegin' ^ prog.cpp:59:1: error: stray ‘`’ in program new.cpp:(.text+0xb1): undefined reference to `glVertex2f' ^ prog.cpp:59:57: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xb1): undefined reference to `glVertex2f' ^ prog.cpp:59:1: error: missing terminating ' character new.cpp:(.text+0xb1): undefined reference to `glVertex2f' ^ prog.cpp:60:1: error: stray ‘`’ in program new.cpp:(.text+0xc2): undefined reference to `glEnd' ^ prog.cpp:60:52: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xc2): undefined reference to `glEnd' ^ prog.cpp:60:1: error: missing terminating ' character new.cpp:(.text+0xc2): undefined reference to `glEnd' ^ prog.cpp:61:1: error: stray ‘`’ in program /tmp/ccrPSIlG.o: In function `myInit()': ^ prog.cpp:61:39: warning: missing terminating ' character [enabled by default] /tmp/ccrPSIlG.o: In function `myInit()': ^ prog.cpp:61:1: error: missing terminating ' character /tmp/ccrPSIlG.o: In function `myInit()': ^ prog.cpp:62:1: error: stray ‘`’ in program new.cpp:(.text+0xe8): undefined reference to `glClearColor' ^ prog.cpp:62:59: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xe8): undefined reference to `glClearColor' ^ prog.cpp:62:1: error: missing terminating ' character new.cpp:(.text+0xe8): undefined reference to `glClearColor' ^ prog.cpp:63:1: error: stray ‘`’ in program new.cpp:(.text+0xf6): undefined reference to `glColor3f' ^ prog.cpp:63:56: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xf6): undefined reference to `glColor3f' ^ prog.cpp:63:1: error: missing terminating ' character new.cpp:(.text+0xf6): undefined reference to `glColor3f' ^ prog.cpp:64:1: error: stray ‘`’ in program new.cpp:(.text+0x100): undefined reference to `glMatrixMode' ^ prog.cpp:64:60: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x100): undefined reference to `glMatrixMode' ^ prog.cpp:64:1: error: missing terminating ' character new.cpp:(.text+0x100): undefined reference to `glMatrixMode' ^ prog.cpp:65:1: error: stray ‘`’ in program new.cpp:(.text+0x105): undefined reference to `glLoadIdentity' ^ prog.cpp:65:62: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x105): undefined reference to `glLoadIdentity' ^ prog.cpp:65:1: error: missing terminating ' character new.cpp:(.text+0x105): undefined reference to `glLoadIdentity' ^ prog.cpp:66:1: error: stray ‘`’ in program /tmp/ccrPSIlG.o: In function `genClip(GLfloatPointArray, GLfloatPoint, GLfloatPoint)': ^ prog.cpp:66:85: warning: missing terminating ' character [enabled by default] /tmp/ccrPSIlG.o: In function `genClip(GLfloatPointArray, GLfloatPoint, GLfloatPoint)': ^ prog.cpp:66:1: error: missing terminating ' character /tmp/ccrPSIlG.o: In function `genClip(GLfloatPointArray, GLfloatPoint, GLfloatPoint)': ^ prog.cpp:67:1: error: stray ‘`’ in program new.cpp:(.text+0x5e0): undefined reference to `glColor3f' ^ prog.cpp:67:57: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x5e0): undefined reference to `glColor3f' ^ prog.cpp:67:1: error: missing terminating ' character new.cpp:(.text+0x5e0): undefined reference to `glColor3f' ^ prog.cpp:68:1: error: stray ‘`’ in program new.cpp:(.text+0x5ea): undefined reference to `glBegin' ^ prog.cpp:68:55: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x5ea): undefined reference to `glBegin' ^ prog.cpp:68:1: error: missing terminating ' character new.cpp:(.text+0x5ea): undefined reference to `glBegin' ^ prog.cpp:69:1: error: stray ‘`’ in program new.cpp:(.text+0x617): undefined reference to `glVertex2f' ^ prog.cpp:69:58: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x617): undefined reference to `glVertex2f' ^ prog.cpp:69:1: error: missing terminating ' character new.cpp:(.text+0x617): undefined reference to `glVertex2f' ^ prog.cpp:70:1: error: stray ‘`’ in program new.cpp:(.text+0x644): undefined reference to `glVertex2f' ^ prog.cpp:70:58: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x644): undefined reference to `glVertex2f' ^ prog.cpp:70:1: error: missing terminating ' character new.cpp:(.text+0x644): undefined reference to `glVertex2f' ^ prog.cpp:71:1: error: stray ‘`’ in program new.cpp:(.text+0x649): undefined reference to `glEnd' ^ prog.cpp:71:53: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x649): undefined reference to `glEnd' ^ prog.cpp:71:1: error: missing terminating ' character new.cpp:(.text+0x649): undefined reference to `glEnd' ^ prog.cpp:72:1: error: stray ‘`’ in program new.cpp:(.text+0x64e): undefined reference to `glFlush' ^ prog.cpp:72:55: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x64e): undefined reference to `glFlush' ^ prog.cpp:72:1: error: missing terminating ' character new.cpp:(.text+0x64e): undefined reference to `glFlush' ^ prog.cpp:73:1: error: stray ‘`’ in program /tmp/ccrPSIlG.o: In function `Hatch(GLfloatPointArray, GLfloatPoint, GLfloatPoint, float)': ^ prog.cpp:73:90: warning: missing terminating ' character [enabled by default] /tmp/ccrPSIlG.o: In function `Hatch(GLfloatPointArray, GLfloatPoint, GLfloatPoint, float)': ^ prog.cpp:73:1: error: missing terminating ' character /tmp/ccrPSIlG.o: In function `Hatch(GLfloatPointArray, GLfloatPoint, GLfloatPoint, float)': ^ prog.cpp:74:1: error: stray ‘`’ in program new.cpp:(.text+0x94b): undefined reference to `glColor3f' ^ prog.cpp:74:57: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x94b): undefined reference to `glColor3f' ^ prog.cpp:74:1: error: missing terminating ' character new.cpp:(.text+0x94b): undefined reference to `glColor3f' ^ prog.cpp:75:1: error: stray ‘`’ in program new.cpp:(.text+0x958): undefined reference to `glPointSize' ^ prog.cpp:75:59: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x958): undefined reference to `glPointSize' ^ prog.cpp:75:1: error: missing terminating ' character new.cpp:(.text+0x958): undefined reference to `glPointSize' ^ prog.cpp:76:1: error: stray ‘`’ in program new.cpp:(.text+0x962): undefined reference to `glBegin' ^ prog.cpp:76:55: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x962): undefined reference to `glBegin' ^ prog.cpp:76:1: error: missing terminating ' character new.cpp:(.text+0x962): undefined reference to `glBegin' ^ prog.cpp:77:1: error: stray ‘`’ in program new.cpp:(.text+0x97d): undefined reference to `glVertex2f' ^ prog.cpp:77:58: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x97d): undefined reference to `glVertex2f' ^ prog.cpp:77:1: error: missing terminating ' character new.cpp:(.text+0x97d): undefined reference to `glVertex2f' ^ prog.cpp:78:1: error: stray ‘`’ in program new.cpp:(.text+0x998): undefined reference to `glVertex2f' ^ prog.cpp:78:58: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x998): undefined reference to `glVertex2f' ^ prog.cpp:78:1: error: missing terminating ' character new.cpp:(.text+0x998): undefined reference to `glVertex2f' ^ prog.cpp:79:1: error: stray ‘`’ in program new.cpp:(.text+0x99d): undefined reference to `glEnd' ^ prog.cpp:79:53: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0x99d): undefined reference to `glEnd' ^ prog.cpp:79:1: error: missing terminating ' character new.cpp:(.text+0x99d): undefined reference to `glEnd' ^ prog.cpp:80:1: error: stray ‘`’ in program /tmp/ccrPSIlG.o: In function `myDisplay()': ^ prog.cpp:80:42: warning: missing terminating ' character [enabled by default] /tmp/ccrPSIlG.o: In function `myDisplay()': ^ prog.cpp:80:1: error: missing terminating ' character /tmp/ccrPSIlG.o: In function `myDisplay()': ^ prog.cpp:81:1: error: stray ‘`’ in program new.cpp:(.text+0xa3a): undefined reference to `glClear' ^ prog.cpp:81:55: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xa3a): undefined reference to `glClear' ^ prog.cpp:81:1: error: missing terminating ' character new.cpp:(.text+0xa3a): undefined reference to `glClear' ^ prog.cpp:82:1: error: stray ‘`’ in program new.cpp:(.text+0xb33): undefined reference to `glColor3f' ^ prog.cpp:82:57: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xb33): undefined reference to `glColor3f' ^ prog.cpp:82:1: error: missing terminating ' character new.cpp:(.text+0xb33): undefined reference to `glColor3f' ^ prog.cpp:83:1: error: stray ‘`’ in program new.cpp:(.text+0xb3d): undefined reference to `glBegin' ^ prog.cpp:83:55: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xb3d): undefined reference to `glBegin' ^ prog.cpp:83:1: error: missing terminating ' character new.cpp:(.text+0xb3d): undefined reference to `glBegin' ^ prog.cpp:84:1: error: stray ‘`’ in program new.cpp:(.text+0xb6a): undefined reference to `glVertex2f' ^ prog.cpp:84:58: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xb6a): undefined reference to `glVertex2f' ^ prog.cpp:84:1: error: missing terminating ' character new.cpp:(.text+0xb6a): undefined reference to `glVertex2f' ^ prog.cpp:85:1: error: stray ‘`’ in program new.cpp:(.text+0xb97): undefined reference to `glVertex2f' ^ prog.cpp:85:58: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xb97): undefined reference to `glVertex2f' ^ prog.cpp:85:1: error: missing terminating ' character new.cpp:(.text+0xb97): undefined reference to `glVertex2f' ^ prog.cpp:86:1: error: stray ‘`’ in program new.cpp:(.text+0xb9c): undefined reference to `glEnd' ^ prog.cpp:86:53: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xb9c): undefined reference to `glEnd' ^ prog.cpp:86:1: error: missing terminating ' character new.cpp:(.text+0xb9c): undefined reference to `glEnd' ^ prog.cpp:87:1: error: stray ‘`’ in program new.cpp:(.text+0xc12): undefined reference to `glFlush' ^ prog.cpp:87:55: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xc12): undefined reference to `glFlush' ^ prog.cpp:87:1: error: missing terminating ' character new.cpp:(.text+0xc12): undefined reference to `glFlush' ^ prog.cpp:88:1: error: stray ‘`’ in program /tmp/ccrPSIlG.o: In function `main': ^ prog.cpp:88:35: warning: missing terminating ' character [enabled by default] /tmp/ccrPSIlG.o: In function `main': ^ prog.cpp:88:1: error: missing terminating ' character /tmp/ccrPSIlG.o: In function `main': ^ prog.cpp:89:1: error: stray ‘`’ in program new.cpp:(.text+0xc36): undefined reference to `glutInit' ^ prog.cpp:89:56: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xc36): undefined reference to `glutInit' ^ prog.cpp:89:1: error: missing terminating ' character new.cpp:(.text+0xc36): undefined reference to `glutInit' ^ prog.cpp:90:1: error: stray ‘`’ in program new.cpp:(.text+0xc40): undefined reference to `glutInitDisplayMode' ^ prog.cpp:90:67: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xc40): undefined reference to `glutInitDisplayMode' ^ prog.cpp:90:1: error: missing terminating ' character new.cpp:(.text+0xc40): undefined reference to `glutInitDisplayMode' ^ prog.cpp:91:1: error: stray ‘`’ in program new.cpp:(.text+0xc4f): undefined reference to `glutInitWindowSize' ^ prog.cpp:91:66: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xc4f): undefined reference to `glutInitWindowSize' ^ prog.cpp:91:1: error: missing terminating ' character new.cpp:(.text+0xc4f): undefined reference to `glutInitWindowSize' ^ prog.cpp:92:1: error: stray ‘`’ in program new.cpp:(.text+0xc5e): undefined reference to `glutInitWindowPosition' ^ prog.cpp:92:70: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xc5e): undefined reference to `glutInitWindowPosition' ^ prog.cpp:92:1: error: missing terminating ' character new.cpp:(.text+0xc5e): undefined reference to `glutInitWindowPosition' ^ prog.cpp:93:1: error: stray ‘`’ in program new.cpp:(.text+0xc68): undefined reference to `glutCreateWindow' ^ prog.cpp:93:64: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xc68): undefined reference to `glutCreateWindow' ^ prog.cpp:93:1: error: missing terminating ' character new.cpp:(.text+0xc68): undefined reference to `glutCreateWindow' ^ prog.cpp:94:1: error: stray ‘`’ in program new.cpp:(.text+0xc72): undefined reference to `glutDisplayFunc' ^ prog.cpp:94:63: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xc72): undefined reference to `glutDisplayFunc' ^ prog.cpp:94:1: error: missing terminating ' character new.cpp:(.text+0xc72): undefined reference to `glutDisplayFunc' ^ prog.cpp:95:1: error: stray ‘`’ in program new.cpp:(.text+0xc7c): undefined reference to `glutMainLoop' ^ prog.cpp:95:60: warning: missing terminating ' character [enabled by default] new.cpp:(.text+0xc7c): undefined reference to `glutMainLoop' ^ prog.cpp:95:1: error: missing terminating ' character new.cpp:(.text+0xc7c): undefined reference to `glutMainLoop' ^ prog.cpp:3:1: error: ‘mandeep’ does not name a type mandeep@mandeep-HP:~/Desktop$ g++ -I/usr/include/GL -I/usr/lib -lGL -lglut new.cpp ^
Standard output is empty