Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Feb 2012 01:03:05 +0100
From:      "Julian H. Stacey" <>
To:        Artifex Maximus <>
Subject:   Re: clang vs gcc linking problem 
Message-ID:  <>
In-Reply-To: Your message "Sat, 25 Feb 2012 07:33:39 +0100." <> 

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Artifex Maximus wrote:
> Hello!
> Absolutely not a flame war but would like to switch to clang in a
> project. Project uses ncurses. gcc works well but the executable fails
> when compiled other than -O0. Then I think I should change to clang
> which will becomes the default compiler in FreeBSD. With clang at
> linking time I got the following error:
> /usr/local/bin/ld: display/libsub_display.a(canvas.o): undefined
> reference to symbol 'keypad'
> /usr/local/bin/ld: note: 'keypad' is defined in DSO
> /usr/local/lib/ so try adding it to the linker command
> line
> /usr/local/lib/ could not read symbols: Invalid operation
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> *** Error code 1
> With exactly the same flags gcc links successful. Any idea where is
> the problem and what is the solution?
> Thanks,

There have been quite a number of discussions on Gcc & Clang 
of various lists since efforts to transition started, 
I don't see a specific list here,
but this may interest

Julian Stacey, BSD Unix Linux C Sys Eng Consultants Munich
 Reply below not above, cumulative like a play script, & indent with "> ".
 Format: Plain text. Not HTML, multipart/alternative, base64, quoted-printable.
	Mail from @yahoo dumped @berklix.

Want to link to this message? Use this URL: <>