Results 1 to 3 of 3

Thread: gcc -l .

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    user-friendly 0wn3r's Avatar
    Join Date: Mar:2006
    Location: Bulgaria,Plovdiv
    Posts: 1,165

    gcc -l .

    , OpenGL , gcc linux. , file.c. /usr/include/GL gl.h, glu.h, glut.h.( ). : gcc -L/usr/include/GL -lm -lgl -lglu -lglut file.c, linker error, gl glu ( glut). : gcc -L/usr/include/GL -lm -lGL -lGLU -lglut file.c, + . GL.h GLU.h , gl.h, glu.h glut.h . GL GLU , -, GLUT , , .

    !
    believing

  2. #2
    ɐ-əpoɔᴉu⋂ ɐ ə anrieff's Avatar
    Join Date: Apr:2004
    Location: Sofia
    Posts: 8,448
    . OpenGL -I , #iclude <GL/GL.h> . , -L , -L - -l, ( header ), -L , . / - - /usr/include/GL, /usr/lib/libGL* . 64- OS, /usr/lib64.
    !
    , . .
    "640K ught to be enough for anybody" - Bill Gates, 1981
    ::Machine specs::Fract::AGG::::Baileys::blog::YouTube channel

  3. #3
    user-friendly 0wn3r's Avatar
    Join Date: Mar:2006
    Location: Bulgaria,Plovdiv
    Posts: 1,165
    . , -I() , -L . , , , l( L) I( i) . -()GL, -()GLU -()glut , - undefined reference . , :

    locate gl.h
    /usr/include/GL/gl.h
    locate glu.h
    /usr/include/GL/glu.h
    locate glut.h
    /usr/include/GL/glut.h

    locate GL.h GLU.h GLUT.h ( ).

    man gcc , -() => -lgl -lglu -lglut. , , gl.h glu.h . lGL lGLU . , gl.h GL.h glu.h GLU.h.


    EDIT(Solved):

    , " / - - /usr/include/GL, /usr/lib/libGL* ." . gcc , lib64 lib{}.so, -l(){--} , lib{}.so. lib64 libGL.so libglut.so. .
    Last edited by 0wn3r; 31st March 2012 at 12:32.
    believing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |