Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C for Linux
#2
(01-03-2012, 01:03 PM)iDiDiT Wrote: I am studying C.

My book does not have the same explanation for Linux OS as I guess a Windows compiler.

So how can I get the same benefit from the book using Linux as if I had the same program the book is using to teach?

Or have you any ideas SF of a better C programming ebook specifically for Linux?

Example would be the book says:

Code:
cc hello.c

and this will produce:
Code:
a.out

And then it goes on to show this will produce the results

"Hello world"

But this doesnt happen at all

For Linux I have to type:
Code:
cc -c first.c
Code:
cc -o first first.c
Code:
./first

And thats after I write the code in the compiler and thats how I run the same thing... It would appear so anyways.

Are you looking to develop for Windows or Linux? Which are you wanting to learn specifically? Languages have option to work with more than just a Windows system, but that doesn't mean the code and setup will be the same.
Reply


Messages In This Thread
C for Linux - by iDiDiT - 01-03-2012, 01:03 PM
RE: C for Linux - by AceInfinity - 01-05-2012, 10:37 PM
RE: C for Linux - by iDiDiT - 01-05-2012, 10:41 PM
RE: C for Linux - by AceInfinity - 01-05-2012, 10:56 PM
RE: C for Linux - by iDiDiT - 01-07-2012, 01:15 AM
RE: C for Linux - by Pikachu - 01-06-2012, 12:31 PM
RE: C for Linux - by AceInfinity - 01-07-2012, 01:56 AM
RE: C for Linux - by iDiDiT - 01-07-2012, 02:26 AM
RE: C for Linux - by AceInfinity - 01-07-2012, 05:19 AM
RE: C for Linux - by iDiDiT - 01-07-2012, 09:07 AM
RE: C for Linux - by AceInfinity - 01-07-2012, 02:14 PM

Forum Jump:


Users browsing this thread: 5 Guest(s)