Results 1 to 5 of 5

Thread: [SOLVED]Make Error

  1. #1
    Join Date
    Feb 2006
    Location
    Winkler, MB., CA
    Beans
    Hidden!
    Distro
    Ubuntu

    [SOLVED]Make Error

    I get this error when issuing the make command while compiling a program:
    Code:
    /usr/bin/ld: eggtrayicon.o: undefined reference to symbol 'XFlush'
    //usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO missing from command line
    Does anyone know what to change in the makefile to get it to compile?
    Last edited by Floppyjoe; May 17th, 2017 at 10:19 PM.

  2. #2
    Join Date
    Apr 2012
    Beans
    7,256

    Re: Make Error

    Add

    Code:
    -lX11
    to the link command maybe? It's hard to be more specific without seeing the Makefile - look for a LIBS or LDFLAGS variable

  3. #3
    Join Date
    Feb 2006
    Location
    Winkler, MB., CA
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Make Error

    Quote Originally Posted by steeldriver View Post
    Add

    Code:
    -lX11
    to the link command maybe? It's hard to be more specific without seeing the Makefile - look for a LIBS or LDFLAGS variable
    Do you need to change all the Makefiles in every directory because this does not work doing it just in the main directory.

  4. #4
    Join Date
    Apr 2012
    Beans
    7,256

    Re: Make Error

    It's hard to say without knowing the Makefile structure - you could try passing

    Code:
    make "LDFLAGS=-lX11"
    on the command line - but there's no guarantee it will be used everywhere. Is the software you are trying to build publicly available? if so, please post a link so we can take a look at it.

  5. #5
    Join Date
    Feb 2006
    Location
    Winkler, MB., CA
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Make Error[SOLVED]

    Quote Originally Posted by steeldriver View Post
    It's hard to say without knowing the Makefile structure - you could try passing

    Code:
    make "LDFLAGS=-lX11"
    on the command line - but there's no guarantee it will be used everywhere. Is the software you are trying to build publicly available? if so, please post a link so we can take a look at it.
    Thank you that worked!

Tags for this Thread

Bookmarks

Posting Permissions

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