![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Carreer:Networking Programming in Unix (C programming Language) | vibhory2j | UNIX for Dummies Questions & Answers | 5 | 09-05-2008 08:57 PM |
| Sed and Awk Tutorial | 0ktalmagik | HP-UX | 0 | 04-10-2006 11:29 AM |
| Tutorial forum? | deckard | Post Here to Contact Site Administrators and Moderators | 1 | 02-26-2005 12:13 AM |
| Tk tutorial | perleo | Shell Programming and Scripting | 3 | 11-18-2002 07:02 AM |
| afterstep tutorial? | xyyz | UNIX Desktop for Dummies Questions & Answers | 2 | 09-16-2002 07:26 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
vi is a text editor gcc is a compiler gdb is a debugger You write code with a text editor You compile code with a compiler You test and debug code with a debugger start with putting the following an a file called "hello.cpp" Code:
#include <stdio.h>
int main(int argc,char **argv)
{
printf("Hello World\n");
return 0;
}
then put the following in a file called "Makefile" Code:
all: hello
hello.o: hello.c
$(CXX) $(CXXFLAGS) -g -c hello.c -o $@
hello: hello.o
$(CXX) $(CXXFLAGS) -g hello.o -o $@
then type "make" to build it type "./hello" to run it type "gdb ./hello" to debug it |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|