[anjuta-list] Fwd: new user - lib switch
- From: Andreas Hagele <andreas hagele gmail com>
- To: anjuta-list gnome org
- Subject: [anjuta-list] Fwd: new user - lib switch
- Date: Tue, 30 Nov 2010 08:51:49 +1300
Sebastien,
that is exactly what I was looking for. Just didn't think about right
clicking. I thought it would be somewhere in the menu under project
properties.
I think it really should be there too, to make it a bit easier to find.
thanks again.
Andreas
---------- Forwarded message ----------
From: Sébastien Granjoux <seb sfo free fr>
Date: 2010/11/30
Subject: Re: [anjuta-list] new user - lib switch
To: Andreas Hagele <andreas hagele gmail com>
Cc: anjuta-list gnome org
Hi Andreas,
Le 29/11/2010 01:00, Andreas Hagele a écrit :
>
> I'm a new user of Anjuta and just trying very basic 'hello world' programs.
> However I can't get the math library to work.
> Build works but execute creates a
>
> "/home/andreas/foobar-sample/src/main.c:45: undefined reference to `cos'"
> I've read through this tutorial
> http://anjuta.sourceforge.net/documents/C/anjuta-advanced-tutorial/
> but I can't find the compiler and linker options referred to in there at all.
That's a good thing to read documentation but unfortunately this
tutorial is really outdated and described Anjuta 1.2. The project
manager has changed quite a lot in Anjuta 2.x
> The only thing I could find to configure is Project / Properties / Packages.
> I've added the gtk+ package just so, but still now way to set any
> compile or link options.
You can set linker and compiler option by doing the following:
- Select your target in the project view
- Right click to get the context menu and select properties
- In the target properties dialog click on Advanced
- Here you have edit boxes for most program option, including linker
option where you need to add "-lm" for the math library.
Regards,
Sébastien
--
Regards
Andreas Hagele
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]