| View previous topic :: View next topic |
| Author |
Message |
GMorgan LXF regular
Joined: Thu Jan 12, 2006 6:58 pm Posts: 684 Location: South Wales, UK
|
Posted: Fri Jan 20, 2006 3:47 pm Post subject: New to C Programming in Linux |
|
|
Does anyone know a decent online guide to C programming in Linux. Preferably it would contain quirks in comparison to standard C and how to get from a *.c code to a running program (tried messing with GCC to no avail so far), I've been using KDevelop but I can't find an embedded compile/run function so I assume your supposed to run GCC from the command line as included at the bottom. I've tried typing gcc *.c it gives me a file a.out which I'm not sure how to get running.
Have already looked at the Wiki but it only does C++ with no decent reference to C itself.
Cheers. |
|
| Back to top |
|
 |
comcamel LXF regular
Joined: Thu Apr 07, 2005 6:35 pm Posts: 205
|
Posted: Fri Jan 20, 2006 4:13 pm Post subject: |
|
|
| well, even if i haven't given it a go c++ or whatever , look at some simple opensource programs that have a use and you may learn easier how to do stuff, and how to construct things. I am quite good a php now, and i haven't even bought a book or out and only occasionllay looked at tutorials |
|
| Back to top |
|
 |
GMorgan LXF regular
Joined: Thu Jan 12, 2006 6:58 pm Posts: 684 Location: South Wales, UK
|
Posted: Fri Jan 20, 2006 4:19 pm Post subject: |
|
|
I know a little about C programming in itself but have been struggling to actual get to the stage where code becomes executable program. No matter what switches I use with GCC nothing workable seems to come out.
Its actually ironic, on Windows I would use the Borland command line compiler and would have 2 command promps and a text editor open because I couldn't afford their IDE. Now in Linux I have a decent IDE but can't get anything to work despite the program all looking pretty. Talk about role reversal. |
|
| Back to top |
|
 |
M-Saunders Moderator

Joined: Mon Apr 11, 2005 1:14 pm Posts: 2883
|
Posted: Fri Jan 20, 2006 4:22 pm Post subject: |
|
|
Ultra-quick GCC usage guide:
gcc file.c -o prog
Compiles file.c into 'prog'. Then run with
./prog
M |
|
| Back to top |
|
 |
GMorgan LXF regular
Joined: Thu Jan 12, 2006 6:58 pm Posts: 684 Location: South Wales, UK
|
Posted: Fri Jan 20, 2006 4:24 pm Post subject: |
|
|
| Cheers, seems to work fine now. |
|
| Back to top |
|
 |
Lejon LXF regular

Joined: Wed Oct 19, 2005 8:24 pm Posts: 150 Location: Sweden
|
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|