nanogui: Thread: compile errors


[<<] [<] Page 1 of 1 [>] [>>]
Subject: compile errors
From: "Edward King" ####@####.####
Date: 19 Jun 2007 15:59:30 +0100
Message-Id: <002501c7b282$5ad130a0$460aa8c0@eklt1>

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?

EK 

Subject: Re: [nanogui] compile errors
From: Carlo Zinato ####@####.####
Date: 19 Jun 2007 16:14:56 +0100
Message-Id: <4677F2F4.5010002@viscount.it>

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 unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
> 
> 
> 
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

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.