-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Thu, Oct 19, 2017 at 02:01:18AM +0600, Evgeny wrote:
> Problems gone when i reinstalled libc6-dev, now hello world compiling fine,
> but the problem is that after removing lib6c-dev a lot of other packages
> was deleted and when I trying t
Hi,
Evgeny wrote:
> any
> "bits/locale.h" among indlude files that you listed have already existed in
> my system. but g++ continue give me error message that there is no such file
> or directory
What do you get from
g++ -o test -H test.cpp
If i rename my local
Problems gone when i reinstalled libc6-dev, now hello world compiling fine,
but the problem is that after removing lib6c-dev a lot of other packages
was deleted and when I trying to install them back I have error (Unable to
correct problems, you have held broken packages)
Anyway, thanks a lot, I
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Thu, Oct 19, 2017 at 01:04:05AM +0600, Evgeny wrote:
> Thanks all for answers, libc6-dev was installed. And more intresting, any
> "bits/locale.h" among indlude files that you listed have already existed in
> my system. but g++ continue give me
On Thu, Oct 19, 2017 at 01:04:05AM +0600, Evgeny wrote:
> Thanks all for answers, libc6-dev was installed. And more intresting, any
> "bits/locale.h" among indlude files that you listed have already existed in
> my system. but g++ continue give me error message that there is no such
> file or
Thanks all for answers, libc6-dev was installed. And more intresting, any
"bits/locale.h" among indlude files that you listed have already existed in
my system. but g++ continue give me error message that there is no such
file or directory
even if I use -I/usr/include/x86_64-linux-gnu/ flag or
Hi,
i can compile the test program on my amd64 Debian 8.
Google and
https://stackoverflow.com/questions/5834778/how-to-tell-where-a-header-file-is-included-from
caused me to run
$ g++ -H test.cpp
to see all included files.
Maybe it helps you to find what's missing on your system or where
re.
It seems to treat CR as normal whitespace. A minimal hello world stored
with DOS line endings compiles and runs fine.
Cheers
- -- tomás
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)
iEYEARECAAYFAlngv7AACgkQBcgs9XrR2kaangCdGYtdKyykz6xmV02eZMj/YgJl
lYkAn3lVxeogfaaNXh/Ar34ZqgRFndaW
=yWxe
-END PGP SIGNATURE-
main(void) {
>
> cout << "Hello World!" << endl;
> return 0;
> }
>
> And when i try to compile it, compiler gives me error:
>
> evgeny@debian:~/Documents/Programming$ g++ test.cpp -o testIn file
> included from /usr/include/
On Fri, Oct 13, 2017 at 07:11:28PM +0600, Evgeny wrote:
> error: bits/locale.h: No such file or directory
Make sure build-essential is installed.
> #include
> ^
> compilation terminated.
Make sure the file uses Unix newline (line feed) terminators, and not
Microsoft's
Dear all, i have some problems with , etc. libraries on
my debian.
I have pretty simple code:
#include
using namespace std;
int main(void) {
cout << "Hello World!" << endl;
return 0;
}
And when i try to compile it, compiler gives me
El 15/06/11 23:46, Fernando A. Rodriguez escribió:
El día 15 de junio de 2011 10:52, Jhosue Ruiing.j...@gmail.com escribió:
El 14/06/11 19:11, Fernando A. Rodriguez escribió:
Saludos a todos, soy nuevo en la lista y ando consultando sobre cómo
reportar un bug a debian o a donde sea. No
El día 16 de junio de 2011 12:11, Jhosue Rui ing.j...@gmail.com escribió:
El 15/06/11 23:46, Fernando A. Rodriguez escribió:
El día 15 de junio de 2011 10:52, Jhosue Ruiing.j...@gmail.com
escribió:
El 14/06/11 19:11, Fernando A. Rodriguez escribió:
Saludos a todos, soy nuevo en la lista y
El Tue, 14 Jun 2011 20:41:29 -0300
Fernando A. Rodriguez ferchurodrig...@gmail.com escribió:
Saludos a todos, soy nuevo en la lista y ando consultando sobre cómo
reportar un bug a debian o a donde sea. No entiendo muy bien cómo
buscar si hay ya un problema similar, al menos yo lo he intentado y
El Tue, 14 Jun 2011 20:41:29 -0300, Fernando A. Rodriguez escribió:
Saludos a todos, soy nuevo en la lista y ando consultando sobre cómo
reportar un bug a debian o a donde sea. No entiendo muy bien cómo buscar
si hay ya un problema similar, al menos yo lo he intentado y no he
encontrado nada.
El 14/06/11 19:11, Fernando A. Rodriguez escribió:
Saludos a todos, soy nuevo en la lista y ando consultando sobre cómo
reportar un bug a debian o a donde sea. No entiendo muy bien cómo
buscar si hay ya un problema similar, al menos yo lo he intentado y no
he encontrado nada.
Estoy corriendo
El día 15 de junio de 2011 10:52, Jhosue Rui ing.j...@gmail.com escribió:
El 14/06/11 19:11, Fernando A. Rodriguez escribió:
Saludos a todos, soy nuevo en la lista y ando consultando sobre cómo
reportar un bug a debian o a donde sea. No entiendo muy bien cómo
buscar si hay ya un problema
Saludos a todos, soy nuevo en la lista y ando consultando sobre cómo
reportar un bug a debian o a donde sea. No entiendo muy bien cómo
buscar si hay ya un problema similar, al menos yo lo he intentado y no
he encontrado nada.
Estoy corriendo Debian sobre una notebook HP 425.
El problema que
Just starting to work with Anjuta IDE and of course I'm trying to get
the Hello World from the tutorial going. But when I do a build, it can't
find the function add_pixmap_directory(...) for the call in main.c.
From what I've found out off the web, add_pixmap_directory(...) is
normally included
, Hello, world);
spd_close(conexion);
return 0;
}
Por cierto, pareciera que la API no es todavía completamente funcional
(o no tengo configurado algo) porque las opciones de idioma, volumen,
deletreo, etc, no me funcionan, ni en mi programa, ni en el de fábrica:
$ spd-say -les Hola, mundo
.-JavaManiac-. wrote:
gcc necesita hacer link a ciertos tipos de librerias,o sea, no basta con
el
include:
gcc prueba-festival.c -o prueba-festival -llibspeechd
trata con ese -llibspeechd,de verdad no se que va ahi despues de el -l
para este caso,por ejemplo para incluir los ncurses
(nombre1, nombre2, nombre3);
spd_set_output_module(conexion, festival);
spd_set_volume(conexion, 50);
spd_say(conexion, prioridad, Hello world);
gets(caracter);
spd_close(conexion);
return 0;
}
Al ejecutarlo, no genera ningún mensaje de error, pero tampoco haca
nada. ¿Alguno ha utilizado antes
prioridad;
conexion = spd_open(nombre1, nombre2, nombre3);
spd_set_output_module(conexion, festival);
spd_set_volume(conexion, 50);
spd_say(conexion, prioridad, Hello world);
prioridad ??? que tiene ??? compila con -Wall y te dira que la usas sin
inicializar...
gets(caracter
Hola compañeros:
He googleado hasta el cansancio sin ninguna suerte buscando un simple
ejemplo de cómo se utiliza el dispatcher, para que pronuncie una cadena
de texto en un programa de C. Lo que he escrito, para probar, no funciona:
#include libspeechd.h
int main(void)
{
int conexion;
El Lun 04 Jul 2005 19:39, Juan Gerardo Castrejon Lozano escribió:
Hola compañeros:
He googleado hasta el cansancio sin ninguna suerte buscando un simple
ejemplo de cómo se utiliza el dispatcher, para que pronuncie una cadena
de texto en un programa de C. Lo que he escrito, para probar, no
.-JavaManiac-. wrote:
gcc necesita hacer link a ciertos tipos de librerias,o sea, no basta con el
include:
gcc prueba-festival.c -o prueba-festival -llibspeechd
trata con ese -llibspeechd,de verdad no se que va ahi despues de el -l
para este caso,por ejemplo para incluir los ncurses yo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Thus spake Kevin Mark:
# gcc works with C programs.
# but c++ programs cant find the libs.
# =
#
# ~/cpluscplus\% cat page23.cpp
# #include iostream.h
# int main() { cout Hello, World!\n; return 0
.
# =
#
# ~/cpluscplus\% cat page23.cpp
# #include iostream.h
# int main() { cout Hello, World!\n; return 0; }
Try this instead:
#include iostream
using namespace std;
int main() { cout Hello, World!\n; return 0; }
This should solve your problems.
HTH and HAND
Additional to what Muller wrote, you also need a good, modern C++ book.
I like the C++ Primer by Lippman (I think).
--
John L. Fjellstad
web: http://www.fjellstad.org/ Quis custodiet ipsos custodes
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble?
iostream.h
int main() { cout Hello, World!\n; return 0; }
~/cpluscplus\% g++ page23.cpp
In file included from /usr/include/c++/3.3/backward/iostream.h:31,
from page23.cpp:1:
/usr/include/c++/3.3/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one
deprecated
Once upon a time Kevin Mark said...
Hi D-u,
I'm trying to get gcc to compile some basic c++ programs and I'm running
into some probably some really basic setup mistakes.
gcc works with C programs.
but c++ programs cant find the libs.
=
.
=
~/cpluscplus\% cat page23.cpp
#include iostream.h
int main() { cout Hello, World!\n; return 0; }
This code uses features which have been obsolete since at least
seven years, probably longer (iostream.h header, cout in global
namespace).
~/cpluscplus\% g++ page23.cpp
In file included from
Bostjan Muller wrote:
Kevin Mark wrote:
#include iostream.h
int main() { cout Hello, World!\n; return 0; }
~/cpluscplus\% g++ page23.cpp
In file included from /usr/include/c++/3.3/backward/iostream.h:31, from
page23.cpp:1:
/usr/include/c++/3.3/backward/backward_warning.h:32:2:
warning: #warning
Martin Dickopp wrote:
Kevin Mark [EMAIL PROTECTED] writes:
snip/
~/cpluscplus\% cat page23.cpp
#include iostream.h
int main() { cout Hello, World!\n; return 0; }
snip/
The complier correctly diagnoses that the program uses antiquated
language features. This is a friendly reminder
Harshwardhan Nagaonkar [EMAIL PROTECTED] writes:
(Maybe I should buy new textbooks and spend more instead of using
cheaper, used textbooks :)
For C++, that's a very, very good idea since the language changed
significantly during standardization.
--
Alan Shutko [EMAIL PROTECTED] - I am the
KM #include iostream.h
KM int main() { cout Hello, World!\n; return 0; }
KM
KM ~/cpluscplus\% g++ page23.cpp
KM In file included from /usr/include/c++/3.3/backward/iostream.h:31,
KM from page23.cpp:1:
KM /usr/include/c++/3.3/backward/backward_warning.h:32:2:
KM warning: #warning This file
KM #include iostream.h
SV KM int main() { cout Hello, World!\n; return 0; }
SV KM
SV KM ~/cpluscplus\% g++ page23.cpp
SV KM In file included from /usr/include/c++/3.3/backward/iostream.h:31,
SV KM from page23.cpp:1:
SV KM /usr/include/c++/3.3/backward/backward_warning.h:32:2:
SV KM warning
if(novice_users != usethismailinglist){
reply_with_aGET_the_hell_out_email;
}
else{
let_a_noviceKNOW_what_he_is_allowed_to_ask;
}
That's some very ugly code :) . Here's a cleanup:
#ifdef CONFIG_GOOD_MOOD
if(novice_users != use_this_mailing_list) {
/* OPEC tactics:
Hello everyone:
I am a very novice linux user. I don't want to be a nuisance if this
mailing list is not for novice users. So,
if(novice_users != usethismailinglist){
reply_with_aGET_the_hell_out_email;
}
else{
let_a_noviceKNOW_what_he_is_allowed_to_ask;
}
Thanks,
Quoc
Quoc Nguyen writes:
I am a very novice linux user. I don't want to be a nuisance if this
mailing list is not for novice users.
It is. You are allowed to ask anything, as long as it is relevant to
Debian (or at least Linux). Ask away.
--
John HaslerThis posting is in the
Hmmm. I was told that 'int func(void)' means it takes no parameters,
while 'int func()' means it could take any.
As silly as it seems, I think this is part of the ANSI C standard (to
allow for older programming styles). Otherwise, there would never have
been any need for 'int func(void)'.
I
Hey all!
I've decided to get my feet wet with C programming on Linux. I've got two
machines running Debian (hamm). On both, I've created a simple C
program (named bub.c) like so:
main()
{
printf(Howdy, World!\n);
}
and compiled it with:
gcc -o bub bub.c
When I run ./bub on the
On Fri, 27 Nov 1998, Kent West wrote:
main()
A long shot, but technically the above is illegal; you have to do:
int main(int argc, char* argv[])
then return something from main, or call exit().
maybe the lack of a return or exit call from main prevents the io buffers
from getting flushed?
main()
{
printf(Howdy, World!\n);
}
I would sugest putting the following line before main()
#includestdio.h
Alex Y.
--
_
_( )_
( (o___ +---+
| _ 7 |Alexander Yukhimets|
\()
*-Havoc Pennington [EMAIL PROTECTED]
|
| On Fri, 27 Nov 1998, Kent West wrote:
|
|main()
|
| A long shot, but technically the above is illegal; you have to do:
| int main(int argc, char* argv[])
It can also be 'int main(void)', which is equivalent to 'main()'.
| then return something from
On Fri, 27 Nov 1998, Kent West wrote:
Hey all!
I've decided to get my feet wet with C programming on Linux. I've got two
machines running Debian (hamm). On both, I've created a simple C
program (named bub.c) like so:
You need to #includestdio.h
man 3 printf will show you this.
On Fri, 27 Nov 1998, Havoc Pennington wrote:
On Fri, 27 Nov 1998, Kent West wrote:
main()
A long shot, but technically the above is illegal; you have to do:
int main(int argc, char* argv[])
int main(void) is also correct, and until ANSI C90 comes out, main() will
do.
then return
On Sat, 28 Nov 1998, M.C. Vernon wrote:
int main(void) is also correct, and until ANSI C90 comes out, main() will
do.
You're right, I'm a dork, or at least my memory is foggy :-)
then return something from main, or call exit().
maybe the lack of a return or exit call from main
On Sat, Nov 28, 1998 at 09:03:39AM +0100, Ole J. Tetlie wrote:
It can also be 'int main(void)', which is equivalent to 'main()'.
Hmmm. I was told that 'int func(void)' means it takes no parameters,
while 'int func()' means it could take any.
Some example source is below. gcc complains about the
On Sat, 28 Nov 1998, Hamish Moffatt wrote:
On Sat, Nov 28, 1998 at 09:03:39AM +0100, Ole J. Tetlie wrote:
It can also be 'int main(void)', which is equivalent to 'main()'.
Hmmm. I was told that 'int func(void)' means it takes no parameters,
while 'int func()' means it could take any.
On Sat, 28 Nov 1998, Hamish Moffatt wrote:
On Sat, Nov 28, 1998 at 09:03:39AM +0100, Ole J. Tetlie wrote:
It can also be 'int main(void)', which is equivalent to 'main()'.
Hmmm. I was told that 'int func(void)' means it takes no parameters,
while 'int func()' means it could take any.
So
*-Hamish Moffatt [EMAIL PROTECTED]
|
| On Sat, Nov 28, 1998 at 09:03:39AM +0100, Ole J. Tetlie wrote:
| It can also be 'int main(void)', which is equivalent to 'main()'.
|
| Hmmm. I was told that 'int func(void)' means it takes no parameters,
| while 'int func()' means it could take any.
That
character
(but no linefeed char) which immediately clobbered the output of the
Hello, World program.
Once I got my slash turned around I got the expected results.
Again, thanks all!
--
Kent West
[EMAIL PROTECTED]
KC5ENO - Amateur Radio: When all else fails.
Linux - Finally! A real OS
53 matches
Mail list logo