nanogui: compile errors
Subject:
Re: [nanogui] compile errors
From:
Laine Walker-Avina ####@####.####
Date:
22 Jun 2007 01:35:19 +0100
Message-Id: <45EA6705-269B-4D6B-95E7-F85A087572C7@chem.ucdavis.edu>
On Jun 19, 2007, at 08:15, Carlo Zinato wrote:
> Edward King ha scritto:
>> okay, maybe I am stupid, but I was dropped on my head as a child,
>> so it really isnt my fault.
>> Im still getting compile errors despite copying the includes to my
>> working directory.
>> ####@####.#### gcc example.c
>> /tmp/ccyx8Wsw.o(.text+0x14): In function `main':
>> : undefined reference to `GrOpen'
>> /tmp/ccyx8Wsw.o(.text+0x47): In function `main':
>> : undefined reference to `GrGetScreenInfo'
>> /tmp/ccyx8Wsw.o(.text+0x72): In function `main':
>> : undefined reference to `GrNewWindow'
>> /tmp/ccyx8Wsw.o(.text+0x85): In function `main':
>> : undefined reference to `GrSelectEvents'
>> /tmp/ccyx8Wsw.o(.text+0x93): In function `main':
>> : undefined reference to `GrMapWindow'
>> /tmp/ccyx8Wsw.o(.text+0x9b): In function `main':
>> : undefined reference to `GrNewGC'
>> /tmp/ccyx8Wsw.o(.text+0xaa): In function `main':
>> : undefined reference to `GrGetNextEvent'
>> /tmp/ccyx8Wsw.o(.text+0xd9): In function `main':
>> : undefined reference to `GrClose'
>> /tmp/ccyx8Wsw.o(.text+0x106): In function `main':
>> : undefined reference to `GrText'
>> collect2: ld returned 1 exit status
>> ####@####.####
>> Anyone got an idea what Im doing wrong?
>
> Maybe you don't have libnano-X.a in your toolchain's lib directory?
>
> Carlo
>
>> EK
To compile you have to include the nano-X library directly. Eg:
gcc demo.c /lib/libnano-X.a -o demo.out
-Laine