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