LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-30-2002, 11:39 PM   #1
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Rep: Reputation: 30
Anjuta


This could possibly go in another forum, but I thought I'd post here because somebody here might have experiance in this.

When I try to compile I get :
Code:
libtool: link: cannot find the library `/usr/lib/libgconf-gtk-1.la'
make[2]: *** [anjuta] Error 1
make[2]: Leaving directory `/usr/local/anjuta-0.1.9/src'
make[1]: *** [all-recursive] Error 1
I think it's during make.

Does anybody know why this is screwing up? configure runs fine......
 
Old 07-31-2002, 04:30 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
Is the library present in the specified location? If it is then maybe your ld.so.cache file is corrupt or not up to date. Try running /sbin/ldconfig. Or remove the cache file /etc/ld.so.cache and then run /sbin/ldconfig.
 
Old 07-31-2002, 02:38 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Do as Mik suggested, but also check if libgconf-gtk is installed (and if you have a new version).
 
Old 08-01-2002, 12:47 AM   #4
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Original Poster
Rep: Reputation: 30
I assume it is not installed... where can I find this and should I get 1.1a like it tries to find or a newer one? I couldn't find any relevant info on google.com/linux
 
Old 08-01-2002, 05:10 AM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
It's from GConf. You can get GConf from ftp.gnome.org
 
Old 08-01-2002, 11:49 AM   #6
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Original Poster
Rep: Reputation: 30
thanks heroine
 
Old 02-24-2005, 05:01 PM   #7
jagman
LQ Newbie
 
Registered: Feb 2005
Posts: 17

Rep: Reputation: 0
Question building problem

have a nice day to all of you.
I`m a beginner in Anjuta, and I`m having a problem building a program. This is the .c program :

/* programa para calcular el interes compuesto */

#include <stdio.h>
#include <math.h>

main()
{
float p, r, n, i, f;

printf(" Ingrese la cantidad de dinero actual : ");
scanf(" %f", &p);

printf(" Ingrese la tasa de interes : ");
scanf(" %f", &r);

printf(" Ingrese el numero de años : ");
scanf(" %f", &n);

i= r / 100; /* pasando la tasa de interes a fraccion */

f= p * pow ((1+i),n);

/* calculando el interes compuesto */

printf("\n El valor futuro de %f dentro de %d es de : %.2f ", p, n, f);
}

and this is the error that appears when I try to build:

Construyendo el archivo: interes.c ...
gcc "interes.c" -L/usr/include/math.h -o "interes"
/tmp/ccqwX9ox.o(.text+0xa9): En la función `main':
: undefined reference to `pow'
collect2: ld devolvió el estado de salida 1
Completado ... incorrectamente
Tiempo total empleado: 0 segundos
 
Old 02-25-2005, 03:51 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
You need to add linking option '-lm' (pow function comes from libm library). Edit Makefile (different way if you use automake and if you don't).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
has anybody tried anjuta 2.0? ingerul Linux - Software 6 05-19-2005 12:18 PM
ide anjuta praveen_singh Linux - Software 1 11-04-2004 04:33 AM
Anjuta libstdc++.so.6 spoody_goon Programming 0 06-27-2004 09:49 AM
Anjuta install gjmwalsh Mandriva 0 05-08-2004 06:00 PM
Anjuta gg4 Linux - Software 3 02-04-2003 12:51 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration