Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: ld: warning: cannot find entry symbol _start, not setting start address???

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2001
    Location
    Grand Falls, NB Canada
    Posts
    2

    ld: warning: cannot find entry symbol _start, not setting start address???

    ld: warning: cannot find entry symbol _start, not setting start address
    /usr/lib/libc.so: undefined reference to 'environ'
    /usr/lib/libc.so: undefined reference to '__progname'

    Which library am I missing here? libc? Huh? Isn't that automatically added? Even if I add -lc, I still get this error.

    Suggestions?
    l8r

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,663

    Re: ld: warning: cannot find entry symbol _start, not setting start address???

    i think for environ to declare it at extern variable at the first line of the source (before the include); but i don't remember its type, sorry.
    wrote you soon for next.

  3. #3
    Junior Member Newbie
    Join Date
    Nov 2001
    Location
    Grand Falls, NB Canada
    Posts
    2

    Re: ld: warning: cannot find entry symbol _start, not setting start address???

    Well, I actually got around this by making a make file for 10-20 lines of crude code.
    l8r

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Jul 2001
    Location
    France
    Posts
    1,663

    Re: ld: warning: cannot find entry symbol _start, not setting start address???

    Well, for environ, if i remember correctly:

    extern char* environ;

    before all # instructions (first line, what).

    i don't know __progname, sorry.

Posting Permissions

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