discuss-gnustep
[Top][All Lists]
Advanced

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

creating library - questions from newbie


From: Matej Kosik
Subject: creating library - questions from newbie
Date: Mon, 06 Aug 2001 17:16:52 +0200

Hi, today I tried to create some GNUstep-friend library
[according to the [nice] tutorial at
`www.gnustep.it/nicola/Tutorials/MoreOnMakefiles/index.html']

I have build and installed the `libHelloWorld' library
I think I have correct LD_LIBRARY_PATH
but I can't build `HelloWorldTest'
        [complete messages given by `make' follows]

-------------------------------------------------------------------------------------------------------------
gcc main.m -c   -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 
-DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT  -fPIC -DGSWARN
-O2 -Wno-import -fgnu-runtime     -I.  -fgnu-runtime
-I/opt/GNUstep/System/Headers -I/usr/local/include/libxml
-I/usr/local/include -fconstant-string-class=NSConstantString
-I/root/GNUstep/Library/Headers -I/opt/GNUstep/Local/Library/Headers
-I/opt/GNUstep/Network/Library/Headers
-I/opt/GNUstep/System/Library/Headers
-I/opt/GNUstep/Network/Headers/gnustep -I/root/GNUstep/Headers/gnustep
-I/opt/GNUstep/Local/Headers/gnustep
-I/opt/GNUstep/System/Headers/gnustep 
-I/opt/GNUstep/Network/Headers/ix86/linux-gnu
-I/root/GNUstep/Headers/ix86/linux-gnu
-I/opt/GNUstep/Local/Headers/ix86/linux-gnu
-I/opt/GNUstep/System/Headers/ix86/linux-gnu -I/root/GNUstep/Headers
-I/opt/GNUstep/Local/Headers -I/opt/GNUstep/Network/Headers
-I/opt/GNUstep/System/Headers  -o
shared_obj/ix86/linux-gnu/gnu-gnu-gnu/main.o
gcc -rdynamic     -L/usr/local/lib/gcc-lib/i586-pc-linux-gnu/3.0  -o
shared_obj/ix86/linux-gnu/gnu-gnu-gnu/HelloWorldTest \
          shared_obj/ix86/linux-gnu/gnu-gnu-gnu/main.o   \
          -L/root/GNUstep/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu
-L/opt/GNUstep/Local/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu
-L/opt/GNUstep/Network/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu
-L/opt/GNUstep/System/Library/Libraries/ix86/linux-gnu/gnu-gnu-gnu  
-L/root/GNUstep/Libraries/ix86/linux-gnu/gnu-gnu-gnu
-L/root/GNUstep/Libraries/ix86/linux-gnu
-L/opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu 
-L/opt/GNUstep/Network/Libraries/ix86/linux-gnu/gnu-gnu-gnu
-L/opt/GNUstep/Network/Libraries/ix86/linux-gnu
-L/opt/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu
-L/opt/GNUstep/System/Libraries/ix86/linux-gnu  
-L/root/GNUstep/Libraries/ix86/linux-gnu/gnu-gnu-gnu
-L/root/GNUstep/Libraries/ix86/linux-gnu
-L/opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu
-L/opt/GNUstep/Network/Libraries/ix86/linux-gnu/gnu-gnu-gnu
-L/opt/GNUstep/Network/Libraries/ix86/linux-gnu
-L/opt/GNUstep/System/Libraries/ix86/linux-gnu/gnu-gnu-gnu
-L/opt/GNUstep/System/Libraries/ix86/linux-gnu -L/usr/local/lib
-lgnustep-base -lobjc -lcallback -lavcall -lxml2 -lz -lm -lgmp -lpthread
-ldl -lm
shared_obj/ix86/linux-gnu/gnu-gnu-gnu/main.o(.rodata+0xc): undefined
reference to `__objc_class_name_HelloWorld'
collect2: ld returned 1 exit status
make[1]: *** [shared_obj/ix86/linux-gnu/gnu-gnu-gnu/HelloWorldTest]
Error 1
make: *** [HelloWorldTest.all.tool.variables] Error 2
-------------------------------------------------------------------------------------------------------------

        ... even though I have specified the 
                HelloWorldTest_ADDITIONAL_TOOL_LIBS += -lHelloWorld
            `make' does not even seem to link against that library so
`undefined reference' is
                what one can expect.
        ??? Why does not my tool link against the specified library?

installed files:


/opt/GNUstep/Local/Libraries/ix86/linux-gnu/gnu-gnu-gnu/libHelloWorld.so.1.0.0
        /opt/GNUstep/Local/Headers/HelloWorld.h

Matej Kosik
-- 
mailto:address@hidden
http://decef.elf.stuba.sk/~kosikmat




reply via email to

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