From: "Dave Murphy" Newsgroups: comp.os.msdos.djgpp References: <382182ea DOT 7308759 AT news DOT urz DOT uni-heidelberg DOT de> Subject: Re: DJGPP with ultraedit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Message-ID: Date: Wed, 10 Nov 1999 03:17:17 -0000 NNTP-Posting-Host: 212.56.122.196 X-Complaints-To: abuse AT plus DOT net DOT uk X-Trace: stones 942203721 212.56.122.196 (Wed, 10 Nov 1999 03:15:21 GMT) NNTP-Posting-Date: Wed, 10 Nov 1999 03:15:21 GMT Lines: 73 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Sven Hergenhahn wrote in message news:382182ea DOT 7308759 AT news DOT urz DOT uni-heidelberg DOT de... > Hi! > My problem: Executing djgpp from ultaedit. > I tried the commandline > gcc %N%E > (where %N%E stand for the file name and its suffix), but I don't get > output. > Please show me a "complete commandline for compiling and linking a > programme!!! > TNX > Sven Personally I find it easiest to use makefiles with Ultra Edit write a file called 'makefile' in the same dir as your c source. here's a copy of one of my makefiles CC = gccw32 LD = gxx TARGET = test.exe OBJS = test.o LIBS = -lcomdlg32 -lcomctl32 FILES = test.c test.h %.exe : %.c $(CC) $(*).c $(CFLAGS) $(LIBS) $(TARGET): $(FILES) or for a standard compile, link cycle CC = gcc LD = gxx TARGET = pic.exe OBJS = pic.o FILES = pic.c decode.c gif.c vga.c tile.c #LIBS = -Lstharch.a CFLAGS = -c -m486 -Wall -fomit-frame-pointer -O2 -Wno-parentheses %.exe : %.o $(LD) -o $(TARGET) $(OBJS) $(LIBS) %.o : %.c $(CC) $(*).c $(CFLAGS) $(OFLAGS) -c -I. -o $(*).o $(TARGET): $(OBJS) $(FILES) in your case you'll probably need a %.o : %.cpp or %.o : %.cc line which should be roughly the same as the %.o : %.c line I use GNU make for this which is on the simtel site for djgpp - just make sure make.exe is in your path. The command line for UE is simply :- Commandline: make Working Directory: %p Dave