Hello,
I am getting the following error message when adding the single line
#include "view.h"
to a code that is otherwise working well:
/tmp/ccdmzLU0.o: In function `gl_StrokeWidth.part.40':
test.c:(.text+0x87f3): undefined reference to `ogStrokeMonoRoman'
/tmp/ccdmzLU0.o: In function `vertex_buffer_glVertex2d':
test.c:(.text+0xbef5): undefined reference to `glVertex3d'
test.c:(.text+0xbf52): undefined reference to `vector_multiply'
/tmp/ccdmzLU0.o: In function `vertex_buffer_glEnd':
test.c:(.text+0xc03f): undefined reference to `glEnd'
/tmp/ccdmzLU0.o: In function `vertex_buffer_glColor3f':
test.c:(.text+0xc527): undefined reference to `glColor3f'
/tmp/ccdmzLU0.o: In function `begin_draw_lines':
test.c:(.text+0xc5a8): undefined reference to `glMatrixMode'
test.c:(.text+0xc5ad): undefined reference to `glPushMatrix'
test.c:(.text+0xc5cc): undefined reference to `glTranslatef'
test.c:(.text+0xc60c): undefined reference to `glLineWidth'
/tmp/ccdmzLU0.o: In function `vertex_buffer_glNormal3d':
test.c:(.text+0xc657): undefined reference to `glNormal3d'
/tmp/ccdmzLU0.o: In function `assemble_node':
test.c:(.text+0x1e9c2): undefined reference to `reset_node_type'
test.c:(.text+0x1ea09): undefined reference to `reset_node_type'
test.c:(.text+0x1ea1b): undefined reference to `reset_node_type'
test.c:(.text+0x1ea2d): undefined reference to `reset_node_type'
test.c:(.text+0x1ea3f): undefined reference to `reset_node_type'
/tmp/ccdmzLU0.o: In function `bview_new':
test.c:(.text+0x33ed0): undefined reference to `gl_trackball'
test.c:(.text+0x33f13): undefined reference to `framebuffer_new'
test.c:(.text+0x33f1e): undefined reference to `init_gl'
/tmp/ccdmzLU0.o: In function `bview_destroy':
test.c:(.text+0x33f49): undefined reference to `framebuffer_destroy'
/tmp/ccdmzLU0.o: In function `vertex_buffer_glBegin':
test.c:(.text+0x34032): undefined reference to `glGetFloatv'
test.c:(.text+0x340b7): undefined reference to `matrix_multiply'
test.c:(.text+0x340dd): undefined reference to `gl_build_rotmatrix'
test.c:(.text+0x34134): undefined reference to `matrix_multiply'
test.c:(.text+0x3419c): undefined reference to `glBegin'
/tmp/ccdmzLU0.o: In function `gl_StrokeString.part.39':
test.c:(.text+0x34256): undefined reference to `ogStrokeMonoRoman'
test.c:(.text+0x34267): undefined reference to `ogStrokeMonoRoman'
test.c:(.text+0x34301): undefined reference to `glTranslatef'
test.c:(.text+0x3432c): undefined reference to `ogStrokeMonoRoman'
test.c:(.text+0x34349): undefined reference to `glTranslatef'
/tmp/ccdmzLU0.o: In function `compile_expression.part.38':
test.c:(.text+0x3441c): undefined reference to `parse_node'
test.c:(.text+0x34560): undefined reference to `free_node'
test.c:(.text+0x34674): undefined reference to `free_node'
test.c:(.text+0x346b1): undefined reference to `free_node'
/tmp/ccdmzLU0.o: In function `draw':
test.c:(.text+0x34742): undefined reference to `glMatrixMode'
test.c:(.text+0x34747): undefined reference to `glLoadIdentity'
test.c:(.text+0x34798): undefined reference to `gluPerspective'
test.c:(.text+0x347a2): undefined reference to `glMatrixMode'
test.c:(.text+0x347a7): undefined reference to `glLoadIdentity'
test.c:(.text+0x347bd): undefined reference to `glTranslatef'
test.c:(.text+0x347cc): undefined reference to `gl_build_rotmatrix'
test.c:(.text+0x347d4): undefined reference to `glMultMatrixf'
test.c:(.text+0x3481a): undefined reference to `glMultMatrixf'
test.c:(.text+0x3485a): undefined reference to `glScalef'
test.c:(.text+0x34872): undefined reference to `glClearColor'
test.c:(.text+0x3487c): undefined reference to `glClear'
test.c:(.text+0x34885): undefined reference to `gl_get_frustum'
test.c:(.text+0x348ad): undefined reference to `gluPerspective'
test.c:(.text+0x348b7): undefined reference to `glMatrixMode'
test.c:(.text+0x348bc): undefined reference to `glLoadIdentity'
test.c:(.text+0x348cf): undefined reference to `glTranslatef'
/tmp/ccdmzLU0.o: In function `end_draw_lines':
test.c:(.text+0x348ea): undefined reference to `glMatrixMode'
test.c:(.text+0x348ef): undefined reference to `glPopMatrix'
/tmp/ccdmzLU0.o: In function `gl_StrokeCharacter':
test.c:(.text+0x34a6a): undefined reference to `ogStrokeMonoRoman'
test.c:(.text+0x34a77): undefined reference to `ogStrokeMonoRoman'
/tmp/ccdmzLU0.o: In function `gl_StrokeWidth':
test.c:(.text+0x34b56): undefined reference to `ogStrokeMonoRoman'
/tmp/ccdmzLU0.o: In function `gl_StrokeLength':
test.c:(.text+0x34b77): undefined reference to `ogStrokeMonoRoman'
test.c:(.text+0x34b7e): undefined reference to `ogStrokeMonoRoman'
/tmp/ccdmzLU0.o:test.c:(.text+0x34c04): more undefined references to `ogStrokeMonoRoman' follow
/tmp/ccdmzLU0.o: In function `view':
test.c:(.text+0x34f68): undefined reference to `gl_axis_to_quat'
test.c:(.text+0x34fa4): undefined reference to `gl_axis_to_quat'
test.c:(.text+0x34fb7): undefined reference to `gl_add_quats'
test.c:(.text+0x3507e): undefined reference to `gl_axis_to_quat'
test.c:(.text+0x350e6): undefined reference to `gl_axis_to_quat'
test.c:(.text+0x35101): undefined reference to `gl_add_quats'
test.c:(.text+0x35133): undefined reference to `gl_axis_to_quat'
test.c:(.text+0x35146): undefined reference to `gl_add_quats'
test.c:(.text+0x35159): undefined reference to `gl_add_quats'
test.c:(.text+0x35342): undefined reference to `gl_axis_to_quat'
test.c:(.text+0x353d1): undefined reference to `gl_trackball'
test.c:(.text+0x353e0): undefined reference to `gl_add_quats'
test.c:(.text+0x35458): undefined reference to `framebuffer_destroy'
test.c:(.text+0x35465): undefined reference to `framebuffer_new'
test.c:(.text+0x35470): undefined reference to `init_gl'
test.c:(.text+0x3550f): undefined reference to `gl_axis_to_quat'
test.c:(.text+0x35522): undefined reference to `gl_add_quats'
test.c:(.text+0x35554): undefined reference to `gl_axis_to_quat'
test.c:(.text+0x35567): undefined reference to `gl_add_quats'
test.c:(.text+0x356a2): undefined reference to `gl_axis_to_quat'
test.c:(.text+0x35868): undefined reference to `gl_axis_to_quat'
test.c:(.text+0x35922): undefined reference to `gl_axis_to_quat'
test.c:(.text+0x35966): undefined reference to `gl_axis_to_quat'
test.c:(.text+0x359ad): undefined reference to `gl_axis_to_quat'
/tmp/ccdmzLU0.o: In function `begin_translate':
test.c:(.text+0x35a30): undefined reference to `glMatrixMode'
test.c:(.text+0x35a35): undefined reference to `glPushMatrix'
test.c:(.text+0x35a4b): undefined reference to `glTranslatef'
/tmp/ccdmzLU0.o: In function `end_translate':
test.c:(.text+0x35a71): undefined reference to `glMatrixMode'
test.c:(.text+0x35a76): undefined reference to `glPopMatrix'
/tmp/ccdmzLU0.o: In function `begin_mirror':
test.c:(.text+0x35abd): undefined reference to `glMatrixMode'
test.c:(.text+0x35ac2): undefined reference to `glPushMatrix'
test.c:(.text+0x35c65): undefined reference to `matrix_multiply'
test.c:(.text+0x35c6d): undefined reference to `glMultMatrixf'
test.c:(.text+0x35c76): undefined reference to `gl_get_frustum'
/tmp/ccdmzLU0.o: In function `draw_vof':
test.c:(.text+0x36a93): undefined reference to `sphere_diameter'
test.c:(.text+0x36b85): undefined reference to `sphere_in_frustum'
test.c:(.text+0x36e43): undefined reference to `sphere_in_frustum'
test.c:(.text+0x372b1): undefined reference to `sphere_diameter'
/tmp/ccdmzLU0.o: In function `cells':
test.c:(.text+0x380e9): undefined reference to `sphere_in_frustum'
test.c:(.text+0x38146): undefined reference to `sphere_diameter'
/tmp/ccdmzLU0.o: In function `vectors':
test.c:(.text+0x388a0): undefined reference to `sphere_in_frustum'
test.c:(.text+0x38909): undefined reference to `sphere_diameter'
/tmp/ccdmzLU0.o: In function `squares':
test.c:(.text+0x38bba): undefined reference to `glShadeModel'
test.c:(.text+0x39a1a): undefined reference to `glDisable'
test.c:(.text+0x3ac44): undefined reference to `sphere_in_frustum'
test.c:(.text+0x3ad01): undefined reference to `glTexImage1D'
test.c:(.text+0x3ad15): undefined reference to `glTexParameteri'
test.c:(.text+0x3ad29): undefined reference to `glTexParameteri'
test.c:(.text+0x3ad3d): undefined reference to `glTexParameteri'
test.c:(.text+0x3ad51): undefined reference to `glTexParameteri'
test.c:(.text+0x3ad5b): undefined reference to `glEnable'
test.c:(.text+0x3adaa): undefined reference to `sphere_in_frustum'
test.c:(.text+0x3ae19): undefined reference to `sphere_diameter'
test.c:(.text+0x3aee7): undefined reference to `sphere_diameter'
test.c:(.text+0x3b240): undefined reference to `glTexCoord1d'
test.c:(.text+0x3b2ef): undefined reference to `glTexCoord1d'
test.c:(.text+0x3b359): undefined reference to `glTexCoord1d'
test.c:(.text+0x3b3d2): undefined reference to `glTexCoord1d'
test.c:(.text+0x3b5ea): undefined reference to `glTexCoord1d'
/tmp/ccdmzLU0.o:test.c:(.text+0x3b69e): more undefined references to `glTexCoord1d' follow
/tmp/ccdmzLU0.o: In function `box':
test.c:(.text+0x3bc91): undefined reference to `ogStrokeMonoRoman'
test.c:(.text+0x3bc9a): undefined reference to `ogStrokeMonoRoman'
test.c:(.text+0x3bce4): undefined reference to `glMatrixMode'
test.c:(.text+0x3bd59): undefined reference to `glPushMatrix'
test.c:(.text+0x3bde1): undefined reference to `glTranslatef'
test.c:(.text+0x3bdfe): undefined reference to `glRotatef'
test.c:(.text+0x3be17): undefined reference to `glScalef'
test.c:(.text+0x3be60): undefined reference to `glPopMatrix'
test.c:(.text+0x3be65): undefined reference to `glPushMatrix'
test.c:(.text+0x3bf06): undefined reference to `glTranslatef'
test.c:(.text+0x3bf1c): undefined reference to `glScalef'
test.c:(.text+0x3bf29): undefined reference to `glPopMatrix'
test.c:(.text+0x3bf38): undefined reference to `glPushMatrix'
test.c:(.text+0x3bfe3): undefined reference to `glTranslatef'
test.c:(.text+0x3c006): undefined reference to `glScalef'
test.c:(.text+0x3c017): undefined reference to `glPopMatrix'
test.c:(.text+0x3c01c): undefined reference to `glPushMatrix'
test.c:(.text+0x3c0a9): undefined reference to `glTranslatef'
test.c:(.text+0x3c0c2): undefined reference to `glScalef'
test.c:(.text+0x3c0d3): undefined reference to `glPopMatrix'
/tmp/ccdmzLU0.o: In function `draw_string':
test.c:(.text+0x3c909): undefined reference to `glMatrixMode'
test.c:(.text+0x3c90e): undefined reference to `glPushMatrix'
test.c:(.text+0x3c913): undefined reference to `glLoadIdentity'
test.c:(.text+0x3c91d): undefined reference to `glMatrixMode'
test.c:(.text+0x3c922): undefined reference to `glPushMatrix'
test.c:(.text+0x3c927): undefined reference to `glLoadIdentity'
test.c:(.text+0x3c96c): undefined reference to `glLineWidth'
test.c:(.text+0x3c972): undefined reference to `ogStrokeMonoRoman'
test.c:(.text+0x3ca0f): undefined reference to `ogStrokeMonoRoman'
test.c:(.text+0x3ca9b): undefined reference to `glTranslatef'
test.c:(.text+0x3caba): undefined reference to `glScalef'
test.c:(.text+0x3cacc): undefined reference to `glMatrixMode'
test.c:(.text+0x3cad1): undefined reference to `glPopMatrix'
test.c:(.text+0x3cadb): undefined reference to `glMatrixMode'
test.c:(.text+0x3cae0): undefined reference to `glPopMatrix'
test.c:(.text+0x3cb29): undefined reference to `glTranslatef'
test.c:(.text+0x3cb48): undefined reference to `glScalef'
test.c:(.text+0x3cbc4): undefined reference to `glTranslatef'
/tmp/ccdmzLU0.o: In function `labels':
test.c:(.text+0x3cc38): undefined reference to `ogStrokeMonoRoman'
test.c:(.text+0x3cc72): undefined reference to `ogStrokeMonoRoman'
test.c:(.text+0x3ccbd): undefined reference to `glMatrixMode'
test.c:(.text+0x3ce5c): undefined reference to `glPushMatrix'
test.c:(.text+0x3cf6b): undefined reference to `glTranslatef'
test.c:(.text+0x3cf84): undefined reference to `glScalef'
test.c:(.text+0x3cf91): undefined reference to `glPopMatrix'
test.c:(.text+0x3d2d2): undefined reference to `sphere_diameter'
test.c:(.text+0x3d34b): undefined reference to `sphere_in_frustum'
/tmp/ccdmzLU0.o: In function `save':
test.c:(.text+0x3e09e): undefined reference to `framebuffer_image'
test.c:(.text+0x3e0d4): undefined reference to `gl_write_image'
test.c:(.text+0x3e16d): undefined reference to `framebuffer_image'
test.c:(.text+0x3e182): undefined reference to `gl_write_image'
test.c:(.text+0x3e1f8): undefined reference to `glFinish'
test.c:(.text+0x3e388): undefined reference to `glFinish'
/tmp/ccdmzLU0.o: In function `gl_StrokeCharacter':
test.c:(.text+0x34b16): undefined reference to `glTranslatef'
/tmp/ccdmzLU0.o: In function `begin_translate':
test.c:(.text+0x35a59): undefined reference to `gl_get_frustum'
/tmp/ccdmzLU0.o: In function `end_translate':
test.c:(.text+0x35a80): undefined reference to `gl_get_frustum'
/tmp/ccdmzLU0.o: In function `vertex_buffer_glVertex3d':
test.c:(.text.unlikely+0xad): undefined reference to `glVertex3d'
test.c:(.text.unlikely+0x116): undefined reference to `vector_multiply'
collect2: error: ld returned 1 exit status
-bash: ./test: No such file or directory
Any idea about the problem?
Thank you in advance,
Ed