Mail Archives: djgpp/1997/03/16/17:00:30
From: | "Emmanuel Proulx" <emmanuelp AT corel DOT ca>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Guide To Installing DJGPP for CodeWright 4 under NT (v.1.1) -Aplified
|
Date: | 16 Mar 1997 18:44:01 GMT
|
Organization: | Corel Corporation
|
Lines: | 86
|
Message-ID: | <01bc329e$5e55bcb0$81326478@emmanuelp-nt4>
|
NNTP-Posting-Host: | 120.100.50.129
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Here's a little guide to installing DJGPP stuff under CodeWright,
USING WINDOWS NT. This does not work under DOS. If you know how
to do this with dos, please tell me.
First a bit of background. CodeWright is a flexible editor that can
manage compilation. To do that, it calls your favorite compiler,
redirecting its output to a file, then it parses the file to
detect what problems where encountered.
STEP 1 - The Parser
You need a specific parser to use CW with DJGPP: ERRPARSE.ZIP.
Download it at "http://www.premia.com/download"
Unzip that file and read the readme file. It says you have to
copy the dlls to the CW directory.
PKUNZIP ERRPARSE.ZIP
COPY *.dll C:\CWRIGHT
To make CW use the right file, you must add the following line in
the file CWRIGHT.INI under the [LibPreLoad] tag:
LibPreload = errparse.dll
If you have the 32 bit version of CodeWright, use errpars32.dll.
STEP 2 - The Makefile
The best thing is to use a makefile. Write one, I'll wait here.
...
There. Now edit your Makefile and find the line where the actual
compilation takes place. Add this redirection statement to it
" 2>proj.err". On my system, I have:
$(COMPILE_CC) 2>C:/PATH/PROJ.ERR
Notice the FORWARD slashes. This statement redirects the STDERR
device to the file PROJ.ERR.
STEP 3 - Configuring this thing
Go right into CodeWright, and go to the PROJECT/PROPERTIES. Set all
your directories to the current project.
3.1 - Tools tab / Project Tools
Here you'll configure CW to execute MAKE when building or rebuilding.
Select BUILD:
Redirect Output = OFF No Command Shell = ON
Save current = OFF Save All = ON
Background = whatever Use VDOS = OFF
COMMAND LINE: make
Do the same with REBUILD.
3.2 - Errors tab
Error Filename: PROJ.ERR (same as in the Makefile)
Error Parser 1: (select "gccErrorInfo" in the list)
3.3 - Other stuff
In the Tools tab, you might want to configure the debugger
(command line: GDB FILE.EXE) and VCS if you want.
Also, you might want to specify what FILTERS to use. There's
a ton of things you can configure!
STEP 4 - Hun, that's it.
I hope this will help you.
--
----------------------------------------------------------------------------
Emmanuel Proulx emmanuelp AT corel DOT ca
"Je n'aurai jamais assez d'argent... Ni de trop"
- Confucius
----------------------------------------------------------------------------
- Raw text -