Re: g++ can't build "Hello World" programm

2017-10-18 Thread tomas
-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

Re: g++ can't build "Hello World" programm

2017-10-18 Thread Thomas Schmitt
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

Re: g++ can't build "Hello World" programm

2017-10-18 Thread Evgeny
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

Re: g++ can't build "Hello World" programm

2017-10-18 Thread tomas
-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

Re: g++ can't build "Hello World" programm

2017-10-18 Thread Greg Wooledge
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

Re: g++ can't build "Hello World" programm

2017-10-18 Thread Evgeny
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

Re: g++ can't build "Hello World" programm

2017-10-13 Thread Thomas Schmitt
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: g++ can't build "Hello World" programm

2017-10-13 Thread tomas
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-

Re: g++ can't build "Hello World" programm

2017-10-13 Thread tomas
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/

Re: g++ can't build "Hello World" programm

2017-10-13 Thread Greg Wooledge
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

g++ can't build "Hello World" programm

2017-10-13 Thread Evgeny
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

Re: Hello World + Bug al desactivar tarjeta Wifi

2011-06-16 Thread Jhosue Rui
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

Re: Hello World + Bug al desactivar tarjeta Wifi [SOLUCIONADO]

2011-06-16 Thread Fernando A. Rodriguez
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

Re: Hello World + Bug al desactivar tarjeta Wifi

2011-06-15 Thread Edgar Antonio Palma de la Cruz
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

Re: Hello World + Bug al desactivar tarjeta Wifi

2011-06-15 Thread Camaleón
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.

Re: Hello World + Bug al desactivar tarjeta Wifi

2011-06-15 Thread Jhosue Rui
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

Re: Hello World + Bug al desactivar tarjeta Wifi

2011-06-15 Thread Fernando A. Rodriguez
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

Hello World + Bug al desactivar tarjeta Wifi

2011-06-14 Thread Fernando A. Rodriguez
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

Anjuta's Hello World example, missing add_pixmap_directory from Glade's support.c file

2005-09-11 Thread Rick Berger
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

Re: SOLUCIONADO programa Hello world con dispatcher?

2005-07-14 Thread Juan Gerardo Castrejon Lozano
, 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

RE: programa Hello world con dispatcher?

2005-07-05 Thread Martínez Liébana, Manuel
.-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

Re: programa Hello world con dispatcher?

2005-07-05 Thread Juan Gerardo Castrejon Lozano
(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

Re: programa Hello world con dispatcher?

2005-07-05 Thread Rober Morales
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

programa Hello world con dispatcher?

2005-07-04 Thread Juan Gerardo Castrejon Lozano
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;

Re: programa Hello world con dispatcher?

2005-07-04 Thread .-JavaManiac-.
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

Re: programa Hello world con dispatcher?

2005-07-04 Thread Juan Gerardo Castrejon Lozano
.-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

Re: c++ hello world help

2004-05-27 Thread Lorenzo Prince
-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

Re: c++ hello world help

2004-05-27 Thread Micha Feigin
. # = # # ~/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

Re: c++ hello world help

2004-05-27 Thread John L Fjellstad
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?

c++ hello world help

2004-05-26 Thread Kevin Mark
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

Re: c++ hello world help

2004-05-26 Thread Cameron Hutchison
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. =

Re: c++ hello world help

2004-05-26 Thread Martin Dickopp
. = ~/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

Re: c++ hello world help

2004-05-26 Thread Lorenzo Bettini
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

Re: c++ hello world help

2004-05-26 Thread Harshwardhan Nagaonkar
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

Re: c++ hello world help

2004-05-26 Thread Alan Shutko
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

Re: c++ hello world help

2004-05-26 Thread Sylvain Vedrenne
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

Re: c++ hello world help

2004-05-26 Thread Sylvain Vedrenne
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

Re: Hello World!

1999-10-20 Thread Dwayne C . Litzenberger
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 World!

1999-10-17 Thread Quoc Nguyen
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

Re: Hello World!

1999-10-17 Thread John Hasler
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

Re: Hello World doesn't work

1998-11-30 Thread Brian May
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

Hello World doesn't work

1998-11-28 Thread Kent West
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

Re: Hello World doesn't work

1998-11-28 Thread Havoc Pennington
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?

Re: Hello World doesn't work

1998-11-28 Thread aqy6633
main() { printf(Howdy, World!\n); } I would sugest putting the following line before main() #includestdio.h Alex Y. -- _ _( )_ ( (o___ +---+ | _ 7 |Alexander Yukhimets| \()

Re: Hello World doesn't work

1998-11-28 Thread Ole J. Tetlie
*-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

Re: Hello World doesn't work

1998-11-28 Thread M.C. Vernon
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.

Re: Hello World doesn't work

1998-11-28 Thread M.C. Vernon
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

Re: Hello World doesn't work

1998-11-28 Thread Havoc Pennington
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

Re: Hello World doesn't work

1998-11-28 Thread Hamish Moffatt
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

Re: Hello World doesn't work

1998-11-28 Thread Wojciech Zabolotny
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.

Re: Hello World doesn't work

1998-11-28 Thread M.C. Vernon
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

Re: Hello World doesn't work

1998-11-28 Thread Ole J. Tetlie
*-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

Re: Hello World doesn't work

1998-11-28 Thread Kent West
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