-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
with curses. I use kdevelop3.2 with kde 3.2 and gcc 3.3 prerelease. I
have updated ld.so.conf and within kdevelop I have set the ccflags to
- -L/usr/lib/curses/curses but I still get an undefined for initsrc().
I've searched google, but couldn't find anything.
Any ideas would be appreciated..
- --
Adolph & Sharon Weidanz
S/V Time To Paws
43' 1978 Endeavour Ketch
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
iD8DBQFAY4j5lC+PSm9+eB0RAqnqAJ9KvmOPZFnzRmAz6VoDaFwWz7I6rwCeNgJt
TaYFusDQdGrxbkxGHzfaMuU=
=7Toq
-----END PGP SIGNATURE-----
I hope this is not a totally ignorant/stupid question, but please help
me get started.
I am fairly new to C++, brand new to C++ in *nix, and brand new to
kdevelop. I am trying to get started with a file that a friend gave me
and am unable to compile it.
Hear is the #include section of the file:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <time.h>
#include <alloc.h>
#include <io.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <math.h>
#include <sys/utsname.h>
#include <search.h>
#include <memory.h>
#include <dir.h>
#include <dos.h>
#include "ri40file.hpp"
and here are the compiler ouput messages that I am getting:
*cd "/home/big_bear/rid_dev/cpp/wmc/ptcdump/debug/src" &&
WANT_AUTOCONF_2_5="1" WANT_AUTOMAKE_1_6="1" gmake -k ptcdump.lo
*if /bin/sh ../libtool --mode=compile g++ -DHAVE_CONFIG_H -I.
-I/home/big_bear/rid_dev/cpp/wmc/ptcdump/src -I.. -O0 -g3 -MT ptcdump.lo
-MD -MP -MF ".deps/ptcdump.Tpo" -c -o ptcdump.lo `test -f
'/home/big_bear/rid_dev/cpp/wmc/ptcdump/src/ptcdump.cpp' || echo
'/home/big_bear/rid_dev/cpp/wmc/ptcdump/src/'`/home/big_bear/rid_dev/cpp/wmc/ptcdump/src/ptcdump.cpp;
then mv -f ".deps/ptcdump.Tpo" ".deps/ptcdump.Plo"; else rm -f
".deps/ptcdump.Tpo"; exit 1; fi
*g++ -DHAVE_CONFIG_H -I. -I/home/big_bear/rid_dev/cpp/wmc/ptcdump/src
-I.. -O0 -g3 -MT ptcdump.lo -MD -MP -MF .deps/ptcdump.Tpo -c
/home/big_bear/rid_dev/cpp/wmc/ptcdump/src/ptcdump.cpp -fPIC
*In file included from /usr/include/g++/backward/alloc.h:46,
*from /home/big_bear/rid_dev/cpp/wmc/ptcdump/src/ptcdump.cpp:20:
*/usr/include/g++/backward/backward_warning.h:32:2: warning: #warning
This file includes at least one deprecated or antiquated header. Please
consider using one of the 32 headers found in section 17.4.1.2 of the
C++ standard. Examples include substituting the <X> header for the <X.h>
header for C++ includes, or <sstream> instead of the deprecated header
<strstream.h>. To disable this warning use -Wno-deprecated.
*/home/big_bear/rid_dev/cpp/wmc/ptcdump/src/ptcdump.cpp:21:16: io.h: No
such file or directory
*/home/big_bear/rid_dev/cpp/wmc/ptcdump/src/ptcdump.cpp:28:17: dir.h: No
such file or directory
*/home/big_bear/rid_dev/cpp/wmc/ptcdump/src/ptcdump.cpp:29:17: dos.h: No
such file or directory
*/home/big_bear/rid_dev/cpp/wmc/ptcdump/src/ptcdump.cpp: In function `int
*ReadSortFile(char*)':
*/home/big_bear/rid_dev/cpp/wmc/ptcdump/src/ptcdump.cpp:414: error:
`_popen' undeclared (first use this function)
*/home/big_bear/rid_dev/cpp/wmc/ptcdump/src/ptcdump.cpp:414: error:
(Each undeclared identifier is reported only once for each function it
appears in.)
*/home/big_bear/rid_dev/cpp/wmc/ptcdump/src/ptcdump.cpp:422: error:
`_pclose' undeclared (first use this function)
*gmake: *** [ptcdump.lo] Error 1
**** Exited with status: 2 ***
I checked the system and the .h files that the compiler says it cannot
find seem to be there. Example: io.h is located at
/usr/include/sys/io.h. The only exception might be the dos.h which only
exists in a Kylix3 directory.
Do I have some configuration done incorrectly? Will someone give me a
kick start here?
Thanks,
DC
Kill the writer of this document!
[the SUSE virus scanner removed an attachment of type application/octet-stream which had a name of wjwo.exe]
[if you need the message in its original form including all attachments, please ask the SENDER for a version free of viruses]
I have a basic install problem. When I attempt to compile a simple
program (which compiles & executes on another suse box), I have the
following problem.
"qmake" produces the appropriate Makefile, but "make" produces the
following
g++ -o hello hello.o -L/usr/lib/ -L/usr/lib/qt3/lib/ -L/usr/X11R6/lib/
-lqt -lXext -lX11 -lm
/usr/lib/qt3/lib//libqt.a(qapplication_x11.o)(.text+0x508b): In function `qt_init_internal(int*, char**, _XDisplay*, unsigned long, unsigned long)':
: undefined reference to `XListInputDevices'
/usr/lib/qt3/lib//libqt.a(qapplication_x11.o)(.text+0x53db): In function `qt_init_internal(int*, char**, _XDisplay*, unsigned long, unsigned long)':
: undefined reference to `XFreeDeviceList'
/usr/lib/qt3/lib//libqt.a(qapplication_x11.o)(.text+0x570c): In function `qt_init_internal(int*, char**, _XDisplay*, unsigned long, unsigned long)':
: undefined reference to `XOpenDevice'
/usr/lib/qt3/lib//libqt.a(qapplication_x11.o)(.text+0x58e4): In function `qt_init_internal(int*, char**, _XDisplay*, unsigned long, unsigned long)':
: undefined reference to `XOpenDevice'
/usr/lib/qt3/lib//libqt.a(qapplication_x11.o)(.text+0x5c7c): In function `qt_init_internal(int*, char**, _XDisplay*, unsigned long, unsigned long)':
: undefined reference to `glXGetConfig'
/usr/lib/qt3/lib//libqt.a(qapplication_x11.o)(.text+0x5d30): In function `qt_init_internal(int*, char**, _XDisplay*, unsigned long, unsigned long)':
: undefined reference to `glXGetConfig'
/usr/lib/qt3/lib//libqt.a(qapplication_x11.o)(.text+0x6360): In function `qt_init_internal(int*, char**, _XDisplay*, unsigned long, unsigned long)':
: undefined reference to `XRRQueryExtension'
/usr/lib/qt3/lib//libqt.a(qapplication_x11.o)(.text+0x638f): In function `qt_init_internal(int*, char**, _XDisplay*, unsigned long, unsigned long)':
: undefined reference to `XRenderQueryExtension'
/usr/lib/qt3/lib//libqt.a(qapplication_x11.o)(.text+0x65f6): In function `qt_init_internal(int*, char**, _XDisplay*, unsigned long, unsigned long)':
: undefined reference to `XRRSelectInput'
/usr/lib/qt3/lib//libqt.a(qapplication_x11.o)(.text+0x6b13): In function `qt_init_internal(int*, char**, _XDisplay*, unsigned long, unsigned long)':
: undefined reference to `XRenderFindVisualFormat'
/usr/lib/qt3/lib//libqt.a(qapplication_x11.o)(.text+0x834e): In function `qt_cleanup()':
: undefined reference to `XCloseDevice'
/usr/lib/qt3/lib//libqt.a(qapplication_x11.o)(.text+0x8365): In function `qt_cleanup()':
: undefined reference to `XCloseDevice'
/usr/lib/qt3/lib//libqt.a(qapplication_x11.o)(.text+0xaa7d): In function `.L3044':
: undefined reference to `XRRUpdateConfiguration'
/usr/lib/qt3/lib//libqt.a(qapplication_x11.o)(.text+0xaa92): In function `.L3044':
: undefined reference to `XRRRootToScreen'
/usr/lib/qt3/lib//libqt.a(qapplication_x11.o)(.text+0xfeed): In function `sm_setProperty(char const*, char const*, int, SmPropValue*)':
: undefined reference to `SmcSetProperties'
/usr/lib/qt3/lib//libqt.a(qapplication_x11.o)(.text+0xff13): In function `sm_setProperty(char const*, char const*, int, SmPropValue*)':
: undefined reference to `SmcDeleteProperties'
/usr/lib/qt3/lib//libqt.a(qapplication_x11.o)(.text+0x106ee): In function `sm_performSaveYourself(QSessionManagerData*)':
<about 400 lines deleted>
Would someone please tell me what I have overlooked?
Thanks!
gary
system details:
Installation: SuSE 8.2
Intel P4
.bashrc includes
--------
export QTDIR=/usr/lib/qt3
export PATH=$PATH:$QTDIR/bin
export MANPATH=$QTDIR/man:$MANPATH
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
--------
Quick Introduction to Finite State Machines (FSM) or Finite State Automata (FSA)
1.1 Informal Definition
An FSA consists of
- a finite set of states,
- a set of transitions from state to state; a transition occurs on an input symbol chosen from an
alphabet.
- an initial state, that is the state in which the FSA starts; it is an element of the set of states.
- a set of final (accepting) states; that is a subset of the set of states.
- an Alphabet, that is a set of input symbols.
Example 1
An FSA which accepts all even numbers. The alphabet is the digits 0,1,2,3,4,5,6,7,8,9.
The set of states is {a,b,c}. The initial state is a. The set of final states is {b}. The set of transitions is as follows:
= in state a with input 0 or 2 or 4 or 6 or 8 go to state b.
= in state a with input 1 or 3 or 5 or 7 or 9 go to state c.
= in state c with input 0 or 2 or 4 or 6 or 8 go to state b.
= in state c with input 1 or 3 or 5 or 7 or 9 go to state c.
= in state b with input 0 or 2 or 4 or 6 or 8 go to state b.
= in state b with input 1 or 3 or 5 or 7 or 9 go to state c.
1.2 Formal Definition
An FSA is a 5-tuple (S, V, h, s0, F) where
- S is the finite set of states,
- h is an application which maps SxV to S; that is for each s in S and v in V it holds h(s,v) = s' where s' is in S.
- s0 is the initial state; it is an element of the set of states S.
- F is the set of final (accepting) states; that is a subset of the set of states S.
- V is the Alphabet, that is a set of input symbols.
Example 2
Please, reconsider example 1.
Since we will be considering the behavior of an FSA on a string of symbols of an alphabet, we have to extend the
application h to apply to a state and a string. Let W denote the set of all strings formed using an alphabet. Then,
h is an application which maps SxW to S; that is for each s in S and w = w'v in W it holds
h(s,w'v) = h(h(s,w'),v), where w' is in W.
Example 3
Based on example 2, h(a, 1234) = h( h(a, 123), 4) = ... = h( h( h( h(a, 1), 2), 3), 4) = b.
Example 4
a) Consider an FSA which recognizes numbers, e.g. 123, +1234.56E23, -231.45e-05, 432.89.
b) Consider an FSA which recognizes all positive integer numbers which are multiple of 3.
Definition 1.2 may easily be translated into a C++ program.
1.3 Deterministic FSA
An FSA (S, V, h, s0, F) is deterministic (DFSA for short) if for each s in S and each
v in V it holds that the number of states resulting from h(s,v) is at most 1;
otherwise (S, V, h, s0, F) is nondeterministic (NFSA for short).
I hope, I have kept it simple and short.
Good Luck!
Ricardo Lopez Camino <rlopezcamino(a)ipcable.com.ar> wrote:
>Hi, I need an easy example for understand an FSM in C++.
>Thanks, in advance........
>
>Ricardo
>
>--
>To unsubscribe, email: suse-programming-e-unsubscribe(a)suse.com
>For additional commands, email: suse-programming-e-help(a)suse.com
>Archives can be found at: http://lists.suse.com/archive/suse-programming-e
>
>
--
Ebenezer Ntienjem
mailto: ntienjem(a)netscape.net
__________________________________________________________________
Introducing the New Netscape Internet Service.
Only $9.95 a month -- Sign up today at http://isp.netscape.com/register
Netscape. Just the Net You Need.
New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
>Hi, I need an easy example for understand an FSM in C++. Thanks, in
>advance........
>
>Ricardo
>
Introduction and code...
http://www.generation5.org/content/2003/FSM_Tutorial.asp
All the best,
Marc.
_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today!
http://www.msn.co.uk/messenger
Dear my friends....
I am writing a web program with Mozilla (as the only
one client) and Java Script for Mozilla
(developer.netscape.com).
I want if the user type the date (tanggal) after 2
character than the cursor will jump to the next input
text automatically.
I used "tanggal.focus()" but no expected result comes.
Anybody would be so nice to tell me the solution?
Thank you so much.
ps. Here is my listing program below.
=======
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
</head>
<script language="JavaScript">
function cek(fieldnya){
var namavar = fieldnya.name;
var nilaivar = fieldnya.value;
var panjangnya = nilaivar.length;
if (namavar=='tanggal'){
if (nilaivar<1 || nilaivar>31){
alert("Ungültiges Datum");
}
if (panjangnya>2){
alert("Datum hat nur 2 Zahlen");
}
}
if (namavar=='bulan'){
if (nilaivar<1 || nilaivar>12){
alert("Ungültiges Monat");
}
if (panjangnya>2){
alert("Monat hat nur 2 Zahlen");
}
}
if (namavar=='tahun'){
if (nilaivar<0){
alert("Ungültiges Jahre");
}
if (panjangnya>4){
alert("Jahre hat nur 4 Zahlen");
}
}
}
function pindahsorot(pindah){
var namavarpindah = pindah.name;
var nilaivarpindah = pindah.value;
var panjangnyapindah = nilaivarpindah.length;
//alert("Panjangnya udah : "+panjangnyapindah+"
namavarpindah : "+namavarpindah+
//" nilaivarpindah : "+nilaivarpindah);
if (namavarpindah=='tanggal'){
if (panjangnyapindah>=2){
//alert("pindah akh");
this.form.bulan.select();
this.form.bulan.focus();
}
}
}
</script>
<body>
<form name="customer">
14. Broschüre verschickt :
<input type=text name=tanggal size=2
onChange="cek(this.form.tanggal)"
onKeyUp="pindahsorot(this.form.tanggal)" >.
<input type="text" name="bulan" size=2
onChange="cek(this.form.bulan)">.
<input type=text name=tahun size=4
onChange="cek(this.form.tahun)"><FONT color=Green
size=1><BLINK>---><U>Format : dd.mm.jjjj
</BLINK></FONT></U>
</form>
</body>
</html>
--
_____________________________________________________________
Web-based SMS services available at http://www.operamail.com.
>From your mailbox to local or overseas cell phones.
Powered by Outblaze
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I thought about posting this to SLE just for the fun of watching the hysteria
unfold, but I would rather not see the list completely melt down. I haven't
looked closely at C#, but I have learned a bit of relevant information about
it. It is not owned by Microsoft, and it is a formal open standard. I
suspect Microsoft bought some very good ideas to put into C++. They also
have, at least one or two people there with solid programming experience, and
the ability to apply it.
The language was designed on the basis of a lot of history, and most likely a
lot of research into what works and what doesn't. Microsoft put a lot of
effort into C#, and would like to see it catch on. I say the language is
worth reviewing as a potential mainstream GNU/Linux development tool. Give
if it really does improve the quality and pace of production, then we give MS
what the wanted. Buy-in. And we give them all the buy-in they can handle,
and then some.
If it really does suck, hey, reviewing a language is always an learning
opportunity. To ignore it because MS sponsored it, would be like ignoring
the technological advancements of another (hostile) country because you don't
get along with them. In terms of statesmanship, and history, that is what is
typically know as really stupid.
STH
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQFAVfOvwX61+IL0QsMRAlIEAKC52qFtuc0XfRmQBLKo0pQ+bnNhggCfRQgD
RM/qKW03QRX8RzLmWGW10y8=
=XRIs
-----END PGP SIGNATURE-----
Hi.
I have some trouble with rpmlib.
I see that in the Maximum-RPM book (a bit old),
there are referenced some functions like rpmReadPackageInfo e.t.c.
The problem is that i dont find any definition of this function and some
others, inside /usr/include/rpm/*.h
Can you help me here?
Thanks.