Re: [Elementary-dev-community] -lm and building the terminal

2012-09-16 Thread David Gomes
Thank you Xapantu, that fixed it! On Fri, Sep 14, 2012 at 6:37 PM, xapantu wrote: > Hey, > > > On 14/09/2012 00:12, David Gomes wrote: > > target_link_libraries gives me: > > /usr/bin/ld: CMakeFiles/pantheon-terminal.dir/src/TerminalWidget.c.o: > undefined reference to symbol 'floor@@GLIBC_2.2.

Re: [Elementary-dev-community] -lm and building the terminal

2012-09-14 Thread xapantu
Hey, On 14/09/2012 00:12, David Gomes wrote: target_link_libraries gives me: /usr/bin/ld: CMakeFiles/pantheon-terminal.dir/src/TerminalWidget.c.o: undefined reference to symbol 'floor@@GLIBC_2.2.5' /usr/bin/ld: note: 'floor@@GLIBC_2.2.5' is defined in DSO /usr/lib/libm.so.6 so try adding it t

Re: [Elementary-dev-community] -lm and building the terminal

2012-09-13 Thread David Gomes
target_link_libraries gives me: /usr/bin/ld: CMakeFiles/pantheon-terminal.dir/src/TerminalWidget.c.o: undefined reference to symbol 'floor@@GLIBC_2.2.5' /usr/bin/ld: note: 'floor@@GLIBC_2.2.5' is defined in DSO /usr/lib/libm.so.6 so try adding it to the linker command line /usr/lib/libm.so.6: coul

Re: [Elementary-dev-community] -lm and building the terminal

2012-09-13 Thread David Gomes
Thanks xapantu, will do! On Thu, Sep 13, 2012 at 8:25 PM, xapantu wrote: > « l » is only here to tell gcc it is a lib, the lib name is actually « m > ». > Just remember that link_libraries is deprecated, please use > target_link_libraries :P (well, I don't think it will be removed from CMake >

Re: [Elementary-dev-community] -lm and building the terminal

2012-09-13 Thread xapantu
« l » is only here to tell gcc it is a lib, the lib name is actually « m ». Just remember that link_libraries is deprecated, please use target_link_libraries :P (well, I don't think it will be removed from CMake before a lot of time, but it is useless to keep writing code with it.) Lucas On 1

Re: [Elementary-dev-community] -lm and building the terminal

2012-09-13 Thread Darcy Brás da Silva
Humm, if the fix was passing m, i guess cmake passes l prefix for us... Nice! On Thu, 2012-09-13 at 11:23 +0100, David Gomes wrote: > Well Darcy, that email was @voldyman ;) > > Regarding the general issue, I found a way to fix it, thanks to > devidfil's Github link, I just added: > > link_librar

Re: [Elementary-dev-community] -lm and building the terminal

2012-09-13 Thread David Gomes
Well Darcy, that email was @voldyman ;) Regarding the general issue, I found a way to fix it, thanks to devidfil's Github link, I just added: link_libraries (m) Right before the add_subdirectory call and it's working for everybody now. On Thu, Sep 13, 2012 at 11:16 AM, Darcy Brás da Silva < dar

Re: [Elementary-dev-community] -lm and building the terminal

2012-09-13 Thread Darcy Brás da Silva
I'm not saying to implement it ourselves. I'm saying to make a vapi to have access of it from C library in Vala, which is a very different thing :) On Thu, 2012-09-13 at 09:50 +0100, David Gomes wrote: > Implementing Math.floor and Math.ceil ourselves would work, but I'm > trying to avoid that for

Re: [Elementary-dev-community] -lm and building the terminal

2012-09-13 Thread David Gomes
Implementing Math.floor and Math.ceil ourselves would work, but I'm trying to avoid that for obvious reasons :) On Thu, Sep 13, 2012 at 4:22 AM, Voldyman wrote: > If we implement Math.floor function in pantheon terminal source wouldn't > that work? > > > On 13-Sep-2012, at 3:29 AM, David Gomes

Re: [Elementary-dev-community] -lm and building the terminal

2012-09-12 Thread Darcy Brás da Silva
Hi, I'm not quite sure, but from what I know in the C level is just a matter of adding a linker flag -lm Having that said, if doesn't work through vala make a vapi call to the C math lib... Cheers On Thu, 2012-09-13 at 08:52 +0530, Voldyman wrote: > If we implement Math.floor function in pantheon

Re: [Elementary-dev-community] -lm and building the terminal

2012-09-12 Thread Voldyman
If we implement Math.floor function in pantheon terminal source wouldn't that work? On 13-Sep-2012, at 3:29 AM, David Gomes wrote: > On the terminal we now need Math.floor and Math.ceil for zooming in and out > using Ctrl-+ and Ctrl--. > > This brought along an issue when building the termin

Re: [Elementary-dev-community] -lm and building the terminal

2012-09-12 Thread Devid Antonio Filoni
I found this: https://github.com/queezythegreat/arduino-cmake/issues/2 Cheers, Devid On Wed, Sep 12, 2012 at 11:59 PM, David Gomes wrote: > On the terminal we now need Math.floor and Math.ceil for zooming in and out > using Ctrl-+ and Ctrl--. > > This brought along an issue when building the ter

[Elementary-dev-community] -lm and building the terminal

2012-09-12 Thread David Gomes
On the terminal we now need Math.floor and Math.ceil for zooming in and out using Ctrl-+ and Ctrl--. This brought along an issue when building the termina: /usr/bin/ld: CMakeFiles/pantheon-terminal.dir/src/TerminalWidget.c.o: undefined reference to symbol 'floor@@GLIBC_2.2.5' /usr/bin/ld: note: '