Hi,
I'm trying to learn glade. autogen.sh failed on my first try; giving the error
below:
./configure: line 4068: syntax error near unexpected token `PACKAGE,'
./configure: line 4068: `PKG_CHECK_MODULES(PACKAGE, $pkg_modules)'
Then i learned that i had to install pkgconfig; i did so; but this time
autogen gave the following error:
checking for gtk+-2.0 >= 2.0.0... Package gtk+-2.0 was not found in the
pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
configure: error: Library requirements (gtk+-2.0 >= 2.0.0) not met; consider
adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a
nonstandard prefix so pkg-config can find them.
How do i have to set PKG_CONFIG_PATH environment variable?
Thanks in advance.
Hi all,
I'm currently rewriting many of the standard functions in C++. No i'm not wierd, i'm in the process of learning and figured this would be a good exercise.
Anyway, my strlen() function is bringing up a warning. Although I understand what the warning mean, I don't understand why it is a warning. Can someone please quickly point out the technicalities. The main point I sometimes trip up with is pointers and references (as I suspect most people learning C++ encounter)
int *MyStrlen(const char *source)
{
int i = 0;
while (*source)
{
*source++;
i++;
}
return &i;
}
Thanks
-----------------------------------------
Email provided by http://www.ntlhome.com/
I got this line:
...
buf->lockstart = PTHREAD_MUTEX_INITIALIZER;
...
Gcc returns me an error:
/home/praise/progetti/beyond/src/buffer.c:33: error: parse error before '{'
token
A substitution with the following line
pthread_mutex_init(&buf->lockend, NULL);
work properly. When does the '{' come out? Am I supposed to use
PTHREAD_MUTEX_INITIALIZER only at initialization?
Praise
Dear Suse Linux Programming members:
Since I could not find a more appropriate Suse email discussion group I am writing here.
I wish to instal Suse Linux (Persoanal or Professional), and I have a major problem:
I want to access the Internet using a Cable Modem (Motorola SurfBoard SB4100), however I cannot
find it in the list of Suse Linux supported hardware. I assuem there is a (Suse) Linux driver
for this equipment.
Please, advise:
1) Where may I find this driver, or/and
2) How can I use suse Linux with my Cable Modem ?
With thanks,
Emil Marcus
bdonau(a)yahoo.com
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
I'm just starting to learn python and am trying to install a module named
pySerial.
http://pyserial.sourceforge.net/
Installation details provided from the above site:-
-------------------------------------------------------------
Extract files from the archive, open a shell/console in that directory and let
Distutils do the rest:
python setup.py install
The files get installed in the "Lib/site-packages" directory.
--------------------------------------------------------------
When I run the above command I get the following:-
merlin:/home/graham/tmp/pyserial-2.0b2 # python setup.py install
error in setup script: invalid distribution option 'classifiers'
merlin:/home/graham/tmp/pyserial-2.0b2 #
Just wondering what I'm doing wrong or is the setup script at fault, if so how
can I manually install the above module?
--
Regards,
Graham Smith
---------------------------------------------------------
Hy guys , i was trying yesterday to make a modified spec for Anjuta
1.1.98 . I have Suse 8.2 .
I did the download of anjuta-1.1.98.tar.gz , i was beginning with rpm
-bb anjuta.spec in /usr/src/PACKAGES/spec , the compilation is OK
until is blocked ....
Something it's wrong about the position of manuals ..............
Does anyone help me? Thanks . There is the spec file if anyone want
to take a look about ...................
N.B I can answer email during the weekend .
%define desktop_vendor anjuta
%define name anjuta
%define version 1.1.98
%define release 1
%define serial 1
%define prefix /opt/gnome
%define sysconfdir /etc%{prefix}
Summary: GNOME IDE for C and C++
Name: %{name}
Version: %{version}
Release: %{release}
Serial: %{serial}
Copyright: GPL2
Group: Development/Tools/IDE
URL: http://anjuta.org/
Vendor: Naba Kumar <naba(a)gnome.org>
Source: %{name}-%{version}.tar.gz
BuildRoot: /var/tmp/%{name}-%{version}
Docdir: %{_docdir}
Requires: glib2 >= 2.0.6
Requires: gtk2 >= 2.0.8
Requires: ORBit2 >= 2.4.0
Requires: libglade2 >= 2.0.0
Requires: libgnome >= 2.0.2
Requires: libgnomeui >= 2.0.2
Requires: libgnomeprint22 >= 2.0.1
Requires: libgnomeprintui22 >= 2.0.1
Requires: gnome-vfs2 >= 2.0.2
Requires: libbonobo >= 2.0.0
Requires: libbonoboui >= 2.0.1
Requires: vte >= 0.7.0
Requires: libxml2 >= 2.4.23
Requires: pango >= 1.1.1
Requires: pcre >= 3.9
BuildRequires: glib2-devel >= 2.0.6
BuildRequires: gtk2-devel >= 2.0.8
BuildRequires: ORBit2-devel >= 2.4.0
BuildRequires: libglade2-devel >= 2.0.0
BuildRequires: libgnome-devel >= 2.0.2
BuildRequires: libgnomeui-devel >= 2.0.2
BuildRequires: libgnomeprint22-devel >= 2.0.1
BuildRequires: libgnomeprintui22-devel >= 2.0.1
BuildRequires: gnome-vfs2-devel >= 2.0.2
BuildRequires: libbonobo-devel >= 2.0.0
BuildRequires: libbonoboui-devel >= 2.0.1
BuildRequires: vte-devel >= 0.7.0
BuildRequires: libxml2-devel >= 2.4.23
BuildRequires: pango-devel >= 1.1.1
BuildRequires: pcre-devel >= 3.9
Distribution: Any
Packager: Naba Kumar <naba(a)gnome.org>
%description
Anjuta is a versatile Integrated Development Environment (IDE) for C and C++.
It has been written for GTK/GNOME, and features a number of advanced
programming facilities. It is basically a GUI interface for the collection
of command line programming utilities and tools available for the GNU system.
These are usually run via a text console, and can be unfriendly to use.
%package docs
Summary: Anjuta docuemntations package.
Group: Development/Tools
%description docs
Anjuta documentations.
%prep
%setup -q -n anjuta-%{version}
%build
libtoolize --copy --force
autoconf
CFLAGS="$RPM_OPT_FLAGS" CXX="g++ $RPM_OPT_FLAGS" \
./configure \
--prefix=%prefix \
--libdir=%prefix/%_lib \
--sysconfdir=%sysconfdir \
--datadir=%prefix/share \
--localstatedir=/var/%_lib \
--with-kde-datadir=/opt/kde3/share
make
%install
make install DESTDIR=$RPM_BUILD_ROOT
%makeinstall
rm -fr %{buildroot}/var/scrollkeeper
%clean
rm -rf %{buildroot}
%post docs
if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update; fi
%postun docs
if which scrollkeeper-update>/dev/null 2>&1; then scrollkeeper-update; fi
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO
%doc doc/ScintillaDoc.html
%defattr(-,root,root)
%{prefix}/bin/anjuta
%{prefix}/bin/anjuta_launcher
%{prefix}/bin/anjuta_import.sh
%{prefix}/share/gnome/apps/Development/anjuta.desktop
%{prefix}/share/pixmaps/anjuta
%{prefix}/share/doc/anjuta
%{_datadir}/mime-info/anjuta.mime
%{_datadir}/mimelnk/application/x-anjuta-project.desktop
%{_datadir}/locale
%{_mandir}/man1/*
%files docs
%defattr(-, root, root)
%{_datadir} share/gnome/help/%{name}
%{_datadir}/omf/%{name}
Hello,
I compiled a c++ rpm install program which gives some strange/unexpected
output while using cout.
I have consulted several sources, but untill now no success.
The output I get is the following:
After unpacking 11.2MB of additional disk space will be used.
\?x×Bèÿ¿ÀT?@àçÿ¿ØÿX@èçÿ¿mBM@
\?x×Bèÿ¿ÀT?@àçÿ¿ØÿX@èçÿ¿mBM@
Executing RPM (-Uvh)...
Preparing... ########################################### [100%]
1:python-devel ########################################### [100%]
or
Do you want to continue? [Y/n]
\?x×Bèÿ¿ÀT?@àçÿ¿ØÿX@èçÿ¿mBM@
\?x×Bèÿ¿ÀT?@àçÿ¿ØÿX@èçÿ¿mBM@
\?x×Bèÿ¿ÀT?@àçÿ¿ØÿX@èçÿ¿mBM@
\?x×Bèÿ¿ÀT?@àçÿ¿ØÿX@èçÿ¿mBM@
\?x×Bèÿ¿ÀT?@àçÿ¿ØÿX@èçÿ¿mBM@
\?x×Bèÿ¿ÀT?@àçÿ¿ØÿX@èçÿ¿mBM@
\?x×Bèÿ¿ÀT?@àçÿ¿ØÿX@èçÿ¿mBM@
Executing RPM (-Uvh)... ?èÿ¿Za0
The involved code looks as follows:
{
......
const char *operation;
....
case Item::RPMUpgrade:
if (Interactive)
operation = "-Uvh";
else
operation = "-Uv";
break;
....
cout << _("Executing RPM (")<<operation<<")..." << endl;
For the record:
The exact same source has been used on suse-8.2 as well, and it did not show
the problem.
The compilation and execution has been performed with different LANG=
settings. They do not seem to matter.
The problem persist if cout is altered for cerr.
If a "\n" is added to the variable operation as follows:
case Item::RPMUpgrade:
if (Interactive)
operation = "-Uvh\n";
else
operation = "-Uv";
break;
......
cout << "Executing RPM (" << operation << ")..." << endl;
The output is now:
Executing RPM (-Uvh@,¤E@è´B@0@8ȸçÿ¿0@
)...
Or if the variable is assigned an empty string the following result is
obtained:
After unpacking 11.5kB of additional disk space will be used.
RPM version 4.1.1/F@,¤E@è´B@0@8ȸçÿ¿0@ <<<<<<===========
Copyright (C) 1998-2002 - Red Hat, Inc.
This program may be freely redistributed under the terms of the GNU GPL
Does anyone know what the cause of this behaviour can be? Incorrect
programming? Is the definition of the variable incorrect, something else??
--
TIA,
Richard Bos
Without a home the journey is endless
I went to the uml.sf.net, after installed SuSE 9. I wanted to make some code
modifications to umbrello, so get the latest cvs following instructions at
uml.sf.net.
When I did the configure --prefix=/opt/kde3 , it comes back with the
following error:
checking for Qt... libraries /usr/lib/qt3/lib, headers /usr/lib/qt3/include
using -mt
checking for moc... /usr/lib/qt3/bin/moc
checking for uic... /usr/lib/qt3/bin/uic
checking whether uic supports -L ... yes
checking whether uic supports -nounload ... yes
checking if Qt needs -ljpeg... no
checking for rpath... yes
checking for KDE... libraries /opt/kde3/lib, headers /opt/kde3/include
checking if UIC has KDE plugins available... no
configure: error: you need to install kdelibs first.
Obivously I have kdelibs installed, kde is mydefault desktop, and I chose KDE
development when I installed. Any thoughts appreciated!!!!!
Charles
Hi all,
I am very new to programming and am currently learning C++.
At the moment I'm at the stage of structures and classes, so am writing
many programs oriented around this to help. I have written a simple
problem which I cannot get to run.
Usually I have no big problems as the compiler aids me in debugging,
however this program compiles and I am not up to the stage of using a
debugging tool like GDB yet.
My program seems to jump after asking the age and when complete gives
very strange outputs.
I can't paste an error report with this as there is no error, hopefully
somebody can show me where I'm going wrong.
Code as follows:
#include <iostream.h>
#include <string.h>
struct students student_info(struct students data);
void print(struct students data);
#define MAX_STU 5
struct students {
char name[30];
int age;
char grade[2];
int iq;
};
main() {
students student[MAX_STU];
int i;
//get the data
for (i=1; i<=MAX_STU; ++i) {
student[i] = student_info(student[i]);
}
//print the data
for (i=1; i<=MAX_STU; ++i) {
print(student[i]);
}
}
struct students student_info(struct students data) {
cout << "what is the students name: ";
cin.getline (data.name, 30);
cout << "What is the students age: ";
cin >> data.age;
cout << "What is the students grade: ";
cin.getline (data.name, 30);
cout << "What is the students IQ: ";
cin >> data.iq;
return (data);
}
void print(struct students data) {
cout << "Name: " << data.name << endl;
cout << "Age: " << data.age << endl;
cout << "Grade: " << data.grade << endl;
cout << "IQ: " << data.iq << endl << endl;
}
thanks
Gedi
Hi Peter,
Thanks for the input. That was a silly mistake on my part which I had
overlooked.
However, that was not the cause of the problem.
I am thinking it has something to do with the area around 'cin >>
data.age;' in the 'student_info' function, as this is where the problem
occurs.
However, I don't yet have the experience to pinpoint it.
Thanks
Gedi
----------------------------------
From: Peter Morreale
----------------------------------
You test in the "for" loops is wrong, it should be:
for(i = 0; i < MAX_STU; i++)
^^^^^^^^^^^
By saying "<=" you are accessing students[5] which is out-of-bounds.
Recall that arrays start from zero, not 1.
-PWM
Gedi wrote:
> Hi all,
>
> I am very new to programming and am currently learning C++.
> At the moment I'm at the stage of structures and classes, so am
writing
> many programs oriented around this to help. I have written a simple
> problem which I cannot get to run.
>
> Usually I have no big problems as the compiler aids me in debugging,
> however this program compiles and I am not up to the stage of using a
> debugging tool like GDB yet.
>
> My program seems to jump after asking the age and when complete gives
> very strange outputs.
>
> I can't paste an error report with this as there is no error,
hopefully
> somebody can show me where I'm going wrong.
>
> Code as follows:
>
> #include <iostream.h>
> #include <string.h>
>
> struct students student_info(struct students data);
> void print(struct students data);
>
> #define MAX_STU 5
>
> struct students {
> char name[30];
> int age;
> char grade[2];
> int iq;
> };
>
>
> main() {
>
> students student[MAX_STU];
> int i;
>
> //get the data
> for (i=1; i<=MAX_STU; ++i) {
> student[i] = student_info(student[i]);
> }
>
> //print the data
> for (i=1; i<=MAX_STU; ++i) {
> print(student[i]);
> }
> }
>
> struct students student_info(struct students data) {
> cout << "what is the students name: ";
> cin.getline (data.name, 30);
> cout << "What is the students age: ";
> cin >> data.age;
> cout << "What is the students grade: ";
> cin.getline (data.name, 30);
> cout << "What is the students IQ: ";
> cin >> data.iq;
>
> return (data);
> }
>
>
> void print(struct students data) {
> cout << "Name: " << data.name << endl;
> cout << "Age: " << data.age << endl;
> cout << "Grade: " << data.grade << endl;
> cout << "IQ: " << data.iq << endl << endl;
>
> }
>
> thanks
>
> Gedi
>
>
>
--
Peter W. Morreale email:
morreale(a)radiantdata.com
Director of Engineering Niwot, Colorado, USA
Radiant Data Corporation voice: (303) 652-0870 x108
------------------------------------------------------------------------
-----
This transmission may contain information that is privileged,
confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure,
copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this
transmission
in error, please immediately contact the sender and destroy the material
in
its entirety, whether in electronic or hard copy format. Thank you.