Re: [anjuta-list] new user - lib switch
- From: Sébastien Granjoux <seb sfo free fr>
- To: Andreas Hagele <andreas hagele gmail com>
- Cc: anjuta-list gnome org
- Subject: Re: [anjuta-list] new user - lib switch
- Date: Mon, 29 Nov 2010 19:41:48 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]