Re: Problem compiling simple C program

2008-04-17 Thread John Salmon
"Joost Witteveen" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > On 16/04/2008, John Salmon <[EMAIL PROTECTED]> wrote: >> Sven Joachim <[EMAIL PROTECTED]> wrote in >> news:[EMAIL PROTECTED]: >> >> >> > On 2008-04-15 20:39 +0200, John Salmon wrote: >> > >> >> I'm running Debian Etch on

Re: Problem compiling simple C program

2008-04-16 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/16/08 20:06, s. keeling wrote: > Ron Johnson <[EMAIL PROTECTED]>: >> Thanks all for bottom-posting! But why isn't anyone snipping out >> the same, repeating, unnecessary text? >> >> On 04/16/08 10:10, H.S. wrote: >>> John Salmon wrote: S

Re: Problem compiling simple C program

2008-04-16 Thread s. keeling
Ron Johnson <[EMAIL PROTECTED]>: > > Thanks all for bottom-posting! But why isn't anyone snipping out > the same, repeating, unnecessary text? > > On 04/16/08 10:10, H.S. wrote: > > John Salmon wrote: > >> Sven Joachim <[EMAIL PROTECTED]> wrote in > >> news:[EMAIL PROTECTED]: > >> > >>> On 20

Re: Problem compiling simple C program

2008-04-16 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks all for bottom-posting! But why isn't anyone snipping out the same, repeating, unnecessary text? On 04/16/08 10:10, H.S. wrote: > John Salmon wrote: >> Sven Joachim <[EMAIL PROTECTED]> wrote in >> news:[EMAIL PROTECTED]: >> >>> On 2008-04-15

Re: Problem compiling simple C program

2008-04-16 Thread H.S.
John Salmon wrote: Sven Joachim <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: On 2008-04-15 20:39 +0200, John Salmon wrote: I'm running Debian Etch on a PC. When I try to compile the following (called test.c); #include #include int main() { double val = 1.55; prin

Re: Problem compiling simple C program

2008-04-16 Thread Kamaraju S Kusumanchi
John Salmon wrote: > That solved the linking problem. Now, after a successful compilation, when > I run 'test' I gen no output. ??? > It works for me. $cat using_sin.c #include #include int main() { double val = 1.55; printf("sine: %g\n", sin(val)); return 0; } $gcc using_sin.

Re: Problem compiling simple C program

2008-04-16 Thread Joost Witteveen
On 16/04/2008, John Salmon <[EMAIL PROTECTED]> wrote: > Sven Joachim <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > > > > On 2008-04-15 20:39 +0200, John Salmon wrote: > > > >> I'm running Debian Etch on a PC. When I try to compile the following > >> (called test.c); > >> > >> #includ

Re: Problem compiling simple C program

2008-04-16 Thread John Salmon
Sven Joachim <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > On 2008-04-15 20:39 +0200, John Salmon wrote: > >> I'm running Debian Etch on a PC. When I try to compile the following >> (called test.c); >> >> #include >> #include >> >> int main() >> { >> double >> val = 1.55;

Re: Problem compiling simple C program

2008-04-15 Thread Sergio Cuéllar Valdés
2008/4/15, John Salmon <[EMAIL PROTECTED]>: > I'm running Debian Etch on a PC. When I try to compile the following > (called test.c); > > #include > #include > > int main() > { > double > val = 1.55; > > printf("sine: %g\n", sin(val)); > > return 0; > } > > using the co

Re: Problem compiling simple C program

2008-04-15 Thread Sven Joachim
On 2008-04-15 20:39 +0200, John Salmon wrote: > I'm running Debian Etch on a PC. When I try to compile the following > (called test.c); > > #include > #include > > int main() > { > double > val = 1.55; > > printf("sine: %g\n", sin(val)); > > return 0; > } > > using the comma

Problem compiling simple C program

2008-04-15 Thread John Salmon
I'm running Debian Etch on a PC. When I try to compile the following (called test.c); #include #include int main() { double val = 1.55; printf("sine: %g\n", sin(val)); return 0; } using the command line gcc -Wall -o test test.c I get /tmp/cciDV02m.o: In function `main