Thread: undefined reference

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jan 2006
    Posts
    62
    Let me know if you need more. BTW..I've 'cleaned' the makefile many times and recreated it but obviously when it recreates it it still has the same problems...let me know if you need more from the makefile...and thanks!

    ACLOCAL = aclocal-1.4
    AUTOCONF = autoconf
    AUTOMAKE = automake-1.4
    AUTOHEADER = autoheader

    MAKEINFO = /home/lx1/Projects/ios/missing makeinfo
    MKINSTALLDIRS = @MKINSTALLDIRS@
    NO_PREFIX_PACKAGE_DATA_DIR = share
    NO_PREFIX_PACKAGE_DOC_DIR = doc/ios
    NO_PREFIX_PACKAGE_HELP_DIR = share/help
    NO_PREFIX_PACKAGE_MENU_DIR = share
    NO_PREFIX_PACKAGE_PIXMAPS_DIR = share/pixmaps
    OBJDUMP = @OBJDUMP@
    OBJEXT = o
    PACKAGE = ios
    PACKAGE_CFLAGS = -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
    PACKAGE_DATA_DIR = /usr/local/share
    PACKAGE_DOC_DIR = /usr/local/doc/ios
    PACKAGE_HELP_DIR = /usr/local/share/help
    PACKAGE_LIBS = -lgtk-x11-2.0 -latk-1.0 -lgdk-x11-2.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lfontconfig -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXfixes -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lX11
    PACKAGE_MENU_DIR = /usr/local/share
    PACKAGE_PIXMAPS_DIR = /usr/local/share/pixmaps
    PKG_CONFIG = /usr/bin/pkg-config

  2. #2
    !anExpert
    Join Date
    Mar 2005
    Location
    pa
    Posts
    155
    yeh it looks like you package_libs var is being set with valid libs.

    this is the line i am talking about being a problem
    Code:
    gcc -Wall -g -g -O2 -o iop support.o main.o  /usr/lib/libgtk-x11-2.0.so
     /usr/lib/libatk-1.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libgdk_pixbuf-2.0.so 
    -lm /usr/lib/libpangocairo-1.0.so -lfontconfig -lXext -lXrender -lXinerama -lXi 
    -lXrandr -lXcursor -lXfixes /usr/lib/libpango-1.0.so /usr/lib/libcairo.so /usr/lib/libgobject-2.0.so
     /usr/lib/libgmodule-2.0.so -ldl /usr/lib/libglib-2.0.so -lX11
    can you post the part of the makefile that is generating that line.

    it very well could be a compilation technique that i am not familiar with, but that just does not look right the way it is adding the libs

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. Undefined Reference Compiling Error
    By AlakaAlaki in forum C++ Programming
    Replies: 1
    Last Post: 06-27-2008, 11:45 AM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. C OpenGL Compiler Error?
    By Matt3000 in forum C Programming
    Replies: 12
    Last Post: 07-07-2006, 04:42 PM
  5. c++ linking problem for x11
    By kron in forum Linux Programming
    Replies: 1
    Last Post: 11-19-2004, 10:18 AM