On Sat, Dec 5, 2020 at 10:57 AM Jamie Le Tual <jamie.let...@gmail.com>
wrote:

> Hey there.
> I tried installing both 1.2 and 1.3rc and managed to get something with a
> command prompt, but GCC.EXE --version dies with a segfault and PERL.EXE
> seems to have been compiled to use a library path which looks like the
> maintainer's own development environment instead of the layout for FreeDOS.
>
> Are these known issues? I saw a working compiler in the YouTube channel so
> I'm thinking there is something that needs to be tweaked in my install.
>
> If I can get a build environment up and running I don't mind taking a stab
> at recompiling perl to work properly in a standard FreeDOS directory
> structure.
>
>
Hi Jamie

I think the videos you are describing are from my YouTube channel. I
recorded a series of videos over the summer about C programming on FreeDOS,
using the IA16 version of GCC, and OpenWatcom's C compiler.

I suspect what you're describing is running the GCC compiler and getting a
"fatal error" that the DJGPP environment variable is not defined. For
example, if I run i16gcc without setting the environment, I get this error:

i16gcc.exe: fatal error: environment variable DJGPP not defined
> compilation terminated


In part 1 of the programming guide
<https://www.freedos.org/books/cprogramming/part1/>, I explain:

To use IA-16 GCC, you need to set the DJGPP environment variable to point
to the DJGPP.ENV file. You'll also want to make sure the GCC compiler is in
your PATH variable. To do all that in a standard FreeDOS 1.3 RC2
installation, you can type these commands:

SET DJGPP=C:\DEVEL\DJGPP\DJGPP.ENV
> PATH %PATH%;C:\DEVEL\I16GNU\BIN



If you set that, you should be fine.

Note that I installed all the "I16" packages from the Development group.
You also need to install the DJGPP package to get the DJGPP environment.


I haven't used Perl, so I can't help you debug that one. Sorry.


Jim
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to