bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

trouble linking cdk


From: Peter Jay Salzman
Subject: trouble linking cdk
Date: Thu, 19 Jul 2001 16:45:07 -0700
User-agent: Mutt/1.3.18i

dear all,

this is driving me nuts.  i installed (make, make install) the cdk.  the
example programs compiled and linked fine.  i'm having trouble linking my
own programs that use cdk.

  gcc -o ohs `gtk-config --libs` -lcdk -lncurses -L/usr/local/lib callback.o
  main.o content.o pfunctions.o GTKmain.o NCURSESmain.o
  NCURSESmain.o: In function `NCURSESmain':
  NCURSESmain.o(.text+0x37): undefined reference to `initCDKScreen'
  NCURSESmain.o(.text+0x44): undefined reference to `initCDKColor'
  NCURSESmain.o(.text+0x118): undefined reference to `newCDKLabel'
  NCURSESmain.o(.text+0x147): undefined reference to `newCDKMenu'
  (snip)


the compiler /should/ complain if it doesn't find the libcdk.a, so i assume
it's finding this file.

however, i assume that all the *CDK* functions are in libcdk.a.  can some
kind soul guess why i'm getting all these undefined references?

i realize this is a gcc question, not ncurses.  but i'm really stumped!  if i
take NCURSESmain.c, give it a main() and compile it by itself, it works:

address@hidden gcc -c blah.c -I/usr/local/include/cdk
address@hidden gcc blah.o -lncurses -lcdk

but it seems to choke when i link it with the other functions.

help?

thanks!
pete

-- 
"The following addresses had permanent fatal errors..."      address@hidden
                               -- Mailer Daemon              www.dirac.org/p



reply via email to

[Prev in Thread] Current Thread [Next in Thread]