Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to index page
Thread view  Board view
mr(R)

22.07.2008, 19:37
 

help setting up an development environment (Developers)

I installed djgpp on dos, followed the guide and tested small one file examples with gcc and gpp.

c:\hxdev\sampels\djgpp>make
....
ld.exe: cannot find -lgcc

c:\dev\dflat\>build.bat
....
make.exe *** No rule to make target 'makefile.dj'. Stop.

I think something is fundamentally wrong.

Did I miss to install something?

tikbalang(R)

23.07.2008, 00:20

@ mr
 

help setting up an development environment

> I installed djgpp on dos, followed the guide and tested small one file
> examples with gcc and gpp.
>
> c:\hxdev\sampels\djgpp>make
> ....
> ld.exe: cannot find -lgcc
>
> c:\dev\dflat\>build.bat
> ....
> make.exe *** No rule to make target 'makefile.dj'. Stop.
>
> I think something is fundamentally wrong.
>
> Did I miss to install something?

you failed to include the \gcc\bin (or whatever dir it's in) in the PATH statement?

mr(R)

23.07.2008, 15:52

@ tikbalang
 

help setting up an development environment

> > I installed djgpp on dos, followed the guide and tested small one file
> > examples with gcc and gpp.
> >
> > c:\hxdev\sampels\djgpp>make
> > ....
> >
> > Did I miss to install something?
>
> Dunno. What OS are you running on?

FreeDOS 1.0.

> You need at least , , (and
> for C++). Then for Make you need , and possibly others
> (PDCUR33B.ZIP, TXT20B.ZIP, SHL2011B.ZIP, FIL41B.ZIP, BSH205BB.ZIP) if your
> sources require it.

I used http://www.delorie.com/djgpp/zip-picker.cgi

Binaries
v2/copying.dj DJGPP Copyright info 3 kb
v2/djdev203.zip DJGPP Basic Development Kit 1.5 mb
v2/faq230b.zip Frequently Asked Questions 664 kb
v2/pakk023b.zip Pakke Installer 1,017 kb
v2/readme.1st Installation instructions 22 kb

v2apps/rhid15ab.zip RHIDE 6.0 mb

v2gnu/bnu217b.zip Basic assembler, linker 3.9 mb
v2gnu/fil41b.zip File Utils (for building Allegro) 1.7 mb
v2gnu/gcc423b.zip Basic GCC compiler 4.3 mb
v2gnu/gdb611b.zip GNU debugger 1.5 mb
v2gnu/gpp423b.zip C++ compiler 4.5 mb
v2gnu/mak3791b.zip Make (processes makefiles) 267 kb
v2gnu/txi412b.zip Info file viewer 1.0 mb

v2misc/csdpmi5b.zip CWSDPMI - DPMI server 54 kb

v2tk/allegro/all422a.zip Allegro game library 2.4 mb

v2tk/grx248b.zip GRX Graphics 1.1 mb
v2tk/pdcur33b.zip Curses Emulator 147 kb

Sources
v2/djlsr203.zip DJGPP Library/Utils Sources 1.5 mb
v2/djtst203.zip DJGPP C Library Self-Test Files 851 kb
v2/faq230s.zip Frequently Asked Questions 292 kb
v2/pakk023s.zip 2.3 mb

v2apps/rhid15as.zip RHIDE 1.2 mb

v2gnu/bnu217s.zip Basic assembler, linker 20.1 mb
v2gnu/gcc423s.zip Basic GCC compiler 44.3 mb
v2gnu/gdb611s.zip GNU debugger 19.8 mb
v2gnu/mak3791s.zip Make (processes makefiles) 1.1 mb
v2gnu/txi412s.zip Info file viewer 2.9 mb

v2misc/csdpmi5s.zip CWSDPMI - DPMI server 87 kb

Extra Documentation Formats
v2gnu/bnu217d.zip Basic assembler, linker 1.2 mb
v2gnu/gcc423d.zip Basic GCC compiler 9.6 mb
v2gnu/gdb611d.zip GNU debugger 7.6 mb
v2gnu/mak3791d.zip Make (processes makefiles) 610 kb
v2gnu/txi412d.zip Info file viewer 1.5 mb


> > ld.exe: cannot find -lgcc
> >
> > c:\dev\dflat\>build.bat
> > ....
> > make.exe *** No rule to make target 'makefile.dj'. Stop.
> >
> > I think something is fundamentally wrong.
> >
> > Did I miss to install something?
>
>
> you failed to include the \gcc\bin (or whatever dir it's in) in the PATH
> statement?

I don't think so.
http://img244.imageshack.us/img244/2545/screen03cd6.jpg
http://img206.imageshack.us/img206/6663/screen02du5.jpg

And here again the error messages:
http://img206.imageshack.us/img206/7431/20080723154629hs0.png
http://img206.imageshack.us/img206/4980/20080723154720gp6.png

Rugxulo(R)

Homepage

Usono,
24.07.2008, 06:35
(edited by Rugxulo, 25.07.2008, 06:31)

@ mr
 

help setting up an development environment

>
> > > ld.exe: cannot find -lgcc
> > >

Seems you need to use -L (but even that will probably exceed the 126 byte or so cmdline limit). Just copy c:\djgpp\lib\gcc\djgpp\4.23\libgcc.a to your current dir and see if that works. If not, add "-L .", and if not then, I dunno. :-|

> > > c:\dev\dflat\>build.bat
> > > ....
> > > make.exe *** No rule to make target 'makefile.dj'. Stop.
> > >
> > > I think something is fundamentally wrong.
> > >
> > > Did I miss to install something?
> >

From your screenshot, it looks like it (D-FLAT) used GCC 2.6.3 (old old old old !!!). As you may or may not know, getting old code to compile doesn't always work because GCC has changed so much. (Heck, v2 was introduced in 1996, and I think it used 2.7.x whereas I know EZ-GCC [1995] was v1 and used 2.6.0.) So it may just not work, that's the problem with source-only packages. Sorry.

Rugxulo(R)

Homepage

Usono,
25.07.2008, 06:34

@ Rugxulo
 

help setting up an development environment

> From your screenshot, it looks like it (D-FLAT) used GCC 2.6.3 (old old
> old old !!!). As you may or may not know, getting old code to compile
> doesn't always work because GCC has changed so much. (Heck, v2 was
> introduced in 1996, and I think it used 2.7.x whereas I know EZ-GCC [1995]
> was v1 and used 2.6.0.) So it may just not work, that's the problem with
> source-only packages. Sorry.

I think David Lindauer tweaked D-Flat to compile / work with his CC386, and he used it for Infopad. So you could take a look at that if you wanted. (FreeDOS EDIT also used it but only a barely-tweaked 16-bit version, using Turbo C I think.)

---
Know your limits.h

flox(R)

Homepage

25.07.2008, 06:47

@ Rugxulo
 

help setting up an development environment

> I think David Lindauer tweaked D-Flat to compile / work with his
> CC386, and he used it for
> Infopad. So you could take a look at that if you wanted. (FreeDOS
> EDIT
> also used it but only a barely-tweaked 16-bit version, using Turbo C I
> think.)

It has some bug fixes and enhancements...tried to port it to DJGPP but give up.

mr(R)

07.09.2008, 00:31

@ flox
 

help setting up an development environment

> It has some bug fixes and enhancements...tried to port it to DJGPP but
> give up.

I found an updated dflat+ for Borland (c) C/C++ ver 3.0 and Open Watcom C/C++ 1.6.

http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/devel/libs/dflat/

Rugxulo(R)

Homepage

Usono,
23.07.2008, 00:58

@ mr
 

help setting up an development environment

> Did I miss to install something?

Dunno. What OS are you running on?

You need at least GCC423B.ZIP, BNU217B.ZIP, DJDEV204.ZIP (and GPP423B.ZIP for C++). Then for Make you need MAK381B.ZIP, and possibly others (PDCUR33B.ZIP, TXT20B.ZIP, SHL2011B.ZIP, FIL41B.ZIP, BSH205BB.ZIP) if your sources require it.

REM djgpp.bat
if not "%DJGPP%"=="" goto :eof
set DJGPP=c:\djgpp\djgpp.env
path c:\djgpp\bin;%PATH%
gcc -v

---
Know your limits.h

rr(R)

Homepage E-mail

Berlin, Germany,
27.07.2008, 21:26

@ mr
 

help setting up an development environment

> c:\dev\dflat\>build.bat

Calling this directory "dev" was a big mistake, because "/dev" files are treated specially in DJGPP.

> make.exe *** No rule to make target 'makefile.dj'. Stop.

Depends on the specific project. I may have a look tomorrow or Tuesday.

rr(R)

Homepage E-mail

Berlin, Germany,
29.07.2008, 23:05

@ rr
 

help setting up an development environment

> > make.exe *** No rule to make target 'makefile.dj'. Stop.
>
> Depends on the specific project. I may have a look tomorrow or Tuesday.

I've put a GNU Diff patch file to dflt2010_dj2.zip. This allows building D-Flat version 20 using DJGPP 2.04 beta and GCC 4.2.3. Apply using "--binary" option and run "make -f makefile.dj2" then.

rr(R)

Homepage E-mail

Berlin, Germany,
05.08.2008, 13:27

@ rr
 

help setting up an development environment

> I've put a GNU Diff patch file to
> dflt2010_dj2.zip.
> This allows building D-Flat version 20 using DJGPP 2.04 beta and GCC 4.2.3.
> Apply using "--binary" option and run "make -f makefile.dj2" then.

This patch is now available from any DJGPP mirror as dflt2010_patch_dj2.zip.

Back to index page
Thread view  Board view
15192 Postings in 1365 Threads, 250 registered users, 10 users online (0 registered, 10 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum