Re: [Freedos-devel] best free C++ compiler

2004-07-21 Thread Arkady V.Belousov
Hi!

21-Июл-2004 22:11 [EMAIL PROTECTED] (Koder) wrote to
<[EMAIL PROTECTED]>:

K> 1) If I were to write a FreeDOS-targetted application on FreeDOS, which C++
K> compiler would be the most interesting?

 Probably, OpenWatcom is not only the best, but, probably, only one
modern, working and enoughly stable to generate valid code. At least, for
DOS16.

K> I have a copy of TC++ 3.0 lying
K> around somewhere. Is that one freely available yet?

 AFAIK, TC++1.01 is avaialble, but this is very outdated (implements not
current C++ edition) and very buggy (both IDE and compiler itself).




---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] Re: best free C++ compiler

2004-07-21 Thread Steve Nickolas - Using Windoze
Koder wrote:
Only TC 2.01 and TC++ 1.02 are free. And OpenWatcom! Quite big but seems
to be quite powerful as well.

OpenWatcom, of course!! How could I forget! I just passed there a moth ago,
thinking it was a nice thing to open up Watcom C++. But does it also do
16bit exe's? As far as I know, it only uses DOS-extenders such as DOS/4GW,
right?
No... You can make 16-bit exes with it (the default kernel is built with 
it).

-uso.

---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] Re: best free C++ compiler

2004-07-21 Thread Koder
> Only TC 2.01 and TC++ 1.02 are free. And OpenWatcom! Quite big but seems
> to be quite powerful as well.

OpenWatcom, of course!! How could I forget! I just passed there a moth ago,
thinking it was a nice thing to open up Watcom C++. But does it also do
16bit exe's? As far as I know, it only uses DOS-extenders such as DOS/4GW,
right?


> I think you will want programming with DJGPP in a very GNUish environment.
> DJGPP can only compile 32bit protected mode programs (which will use the
> CWSDPMI for the DOS extender) but unless your C++ project is writing a
> driver, there will be no problem with that. DJGPP is a DOS version of
GCC/G++,
> which includes a DOS version of a glibc type library. Many tools like BASH
> and AUTOMAKE/AUTOCONF/SED/... are available for DJGPP as well, and its
free.

Yes, I know DJGPP pretty well. When the Quake source was released, I played
with it for while. It's also the first thing to use with the Allegro
library.

But in fact, I actually DO need a realmode compiler... should have mentioned
that of course.


> PS: "copy a:\. ." crash and "if you give no /P, FreeCOM allows EXIT" are
> well known! Please read Bugzilla before you tell us about old bugs.
> The "dir .exe" shorthand for "dir *.exe" is also a well known feature
request.
> Please try both EDIT 0.7a and 0.81, and then help to create 0.7b and
0.82...
> they both have enough bugs and we do already know it.

Believe me or not, but I queried your Bugzilla for some of these things, and
didn't find anything. But I will try better next time, I promise!  :-)


greetz
koder




---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] best free C++ compiler

2004-07-21 Thread Gregory Pietsch
Koder wrote:
Hi,
After a few years of being idle in the DOS-scene, I am looking to writing
some new apps. I am using Borland's TC 2.01 because that has been released
for free. Here are some questions for you dev's:
1) If I were to write a FreeDOS-targetted application on FreeDOS, which C++
compiler would be the most interesting? I have a copy of TC++ 3.0 lying
around somewhere. Is that one freely available yet?
 

I typically use djgpp or Cygwin/gcc and M$ Visual C++ in console app 
mode. I then try OpenWatcom and see if I can get everything working on 
all three with a minimum of fuss. Throw in an 
autoconf/automake-generated configure script, et voila!

2) Is anyone using lex/yacc in any project? Did you use it for the
processing of .bat files? If not, then why not? Will lex/yacc work with TC
2.01?
 

GNU flex/bison and Berkeley yacc (or byacc) are Free versions of 
lex/yacc. The code produced with them should be portable enough that you 
can use it.

I know I could just look all of this up, but I guess you guys already know
the answers...
Thanks in advance!
 

Gregory Pietsch
---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] New tools: CONCAT, OSCHECK (for installer)

2004-07-21 Thread Bernd Blaauw
Aitor Santamaría Merino schreef:
A bit offtopic, well, I don't know much about the NT loader, but it 
always surprised to me how fragile is the whole installation of a 
robust operating system like WinNT can be easily trashed in a few 
seconds, by just SYS:-ing whenever it loads from an existing MS-DOS 
(read Win9X/ME)...
Does anyone know if there is some recovery in this case? (and you 
don't have a backup of the bootsector, or a GHOST, or whatever).
Recovery console only, I think.
*to install it when Windows is still running properly: winnt32.exe /cmdcons
*to run it if not installed: boot from installation cdrom, and select 
repair.

only useful commands are FIXBOOT and FIXMBR.
not even an EDIT for changing boot.ini if partition layout changed, for 
example. To allow that, a registry change is needed :(

bootsector is very easy to destroy and very difficult to recreate..
Bernd
---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] New tools: CONCAT, OSCHECK (for installer)

2004-07-21 Thread Aitor Santamaría Merino
Bernd Blaauw escribió:
still SYS should have some additional possibilities, like WARNING the 
user.
I remember my SYS C:..while C: contained Win2000 bootloader..bye bye 
Win2000 installation :(
A bit offtopic, well, I don't know much about the NT loader, but it 
always surprised to me how fragile is the whole installation of a robust 
operating system like WinNT can be easily trashed in a few seconds, by 
just SYS:-ing whenever it loads from an existing MS-DOS (read Win9X/ME)...
Does anyone know if there is some recovery in this case? (and you don't 
have a backup of the bootsector, or a GHOST, or whatever).

Aitor
---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] Re: best free C++ compiler

2004-07-21 Thread Jim Hall
Eric Auer wrote:
Hi!

1) If I were to write a FreeDOS-targetted application on FreeDOS, which C++
compiler would be the most interesting? I have a copy of TC++ 3.0 lying
around somewhere. Is that one freely available yet?

Only TC 2.01 and TC++ 1.02 are free. And OpenWatcom! Quite big but seems
to be quite powerful as well.
...

And note: TC/TC++ are free as in beer (zero cost.)  But they are not 
"free as in speech" - source code is not available.

Not that I'm against TC/TC++ but I wanted to make that distinction.
-jh

--
_
This email message has been automatically encrypted using ROT-26.
---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


[Freedos-devel] Re: best free C++ compiler

2004-07-21 Thread Eric Auer

Hi!

> 1) If I were to write a FreeDOS-targetted application on FreeDOS, which C++
> compiler would be the most interesting? I have a copy of TC++ 3.0 lying
> around somewhere. Is that one freely available yet?

Only TC 2.01 and TC++ 1.02 are free. And OpenWatcom! Quite big but seems
to be quite powerful as well.

> 2) Is anyone using lex/yacc in any project? Did you use it for the
> processing of .bat files? If not, then why not? Will lex/yacc work with TC
> 2.01?

I think you will want programming with DJGPP in a very GNUish environment.
DJGPP can only compile 32bit protected mode programs (which will use the
CWSDPMI for the DOS extender) but unless your C++ project is writing a
driver, there will be no problem with that. DJGPP is a DOS version of GCC/G++,
which includes a DOS version of a glibc type library. Many tools like BASH
and AUTOMAKE/AUTOCONF/SED/... are available for DJGPP as well, and its free.

Eric.

PS: My driver-ish projects are all written in
TC 2.01 or NASM assembly language, but I also use DJGPP for bigger apps.
The FreeDOS kernel can be compiled with TC 2.01, too, but OpenWatcom does
better optimization here.

PS: "copy a:\. ." crash and "if you give no /P, FreeCOM allows EXIT" are
well known! Please read Bugzilla before you tell us about old bugs.
The "dir .exe" shorthand for "dir *.exe" is also a well known feature request.
Please try both EDIT 0.7a and 0.81, and then help to create 0.7b and 0.82...
they both have enough bugs and we do already know it.



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] best free C++ compiler

2004-07-21 Thread Steve Nickolas - Using Windoze
Koder wrote:
Hi,
After a few years of being idle in the DOS-scene, I am looking to writing
some new apps. I am using Borland's TC 2.01 because that has been released
for free. Here are some questions for you dev's:
1) If I were to write a FreeDOS-targetted application on FreeDOS, which C++
compiler would be the most interesting? I have a copy of TC++ 3.0 lying
around somewhere. Is that one freely available yet?
No, but 1.01 is, which is somewhere between the two.
2) Is anyone using lex/yacc in any project? Did you use it for the
processing of .bat files? If not, then why not? Will lex/yacc work with TC
2.01?
Perhaps, though you might want to look through the remains of GNUish on 
the FreeDOS mirrors for a 16-bit yacc or bison...

-uso.

---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


[Freedos-devel] Re: New tools: CONCAT, OSCHECK (for installer)

2004-07-21 Thread Eric Auer

Hi, Bernd wrote about OSCHECK:

> verry nice! however still not safe to SYS C: if a bootsector is 
> analysed but contains a strange name.
> Say, a KERNEL2.SYS.

I thought about "scan for *.SYS / *.COM in boot sector" but then I dropped
the idea because I only wanted to protect the innocent, not the witty :-).

Browsing the whole root directory seems to be more work than searching
for "SYS with 8 uppercase ASCII chars in front of it" and "COM with 8 ...".
Anyway, if you really want to break things, you can still call your kernel
SHOOTMYF.OOT and then the heuristics will still fail.

Intended use of OSCHECK:
- first run WHICHFAT to detect CDROM/network drives
- then run OSCHECK to detect the categories:
  1. FreeDOS 2. MetaKern 3. MSDOS/"WinDOS" 4. PCDOS/DRDOS
- finally use the boot sector backup and create a boot menu if
  category 3 or 4 detected (or use boot.ini after attrib -everything boot.ini
  if WinNT class system and boot.ini file detected), assume that the
  system is already bootable if category 2 detected and "just do SYS" for
  category 1.

The current version already detects 99% of the cases so it drastically
helps installer scripts to protect people from shooting into their own
(Win-on-C:) foot.

Eric


---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


[Freedos-devel] Some incompatibilities with MS-DOS (bugs?)

2004-07-21 Thread Koder
Hi,

The recent distribution of FreeDOS is very well done and very stable in my
first try-outs. I can still remember the days where I would curse the entire
thing to hell, just a some years ago. It's a very OS now!

But in just some minutes of installing and configuring it, I have come
around some incompatibilities with MS-DOS or even some bugs, or 'hidden
features' if you will  :)


in FreeCom .0.82:

1)  You can 'exit' from the ground-interpreter. By this I mean the
essential, bottom version of the FreeCom interpreter. That could be nice in
some cases, but it's not real MS-DOS behavior.

2)  Try to do the following commands. It'll crash FreeCom, saying "Heap
corrupted":

   C:\> md test
   C:\> cd test
   C:\TEST> copy a:\. .

Please note the 2 dots on the end. I am asking FreeCom to copy all the files
in A-root to the current directory. Doing "copy a:\*.*" would do the exact
same thing indeed. But this used to work in MS-DOS 6 for sure.

3)  Executing "dir .exe" should do the exact same thing as "dir *.exe". This
is some short notation in MS-DOS that I used all the time.


in EDIT 0.8

1)  When you hit ALT and the menu is selected, you need to hit ENTER to
actually open it. That is fine for me, but in the MS EDIT you could also
press the DOWN-arrow-key. I think it's not such a difficult thing to
implement, and it would be a nice thing to add.


Voila, more will probably follow, and I am also planning on using the Dutch
NLS since I am dutch-speaking, and some proof reading never hurts, right?


greetz
koder





---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


[Freedos-devel] best free C++ compiler

2004-07-21 Thread Koder
Hi,

After a few years of being idle in the DOS-scene, I am looking to writing
some new apps. I am using Borland's TC 2.01 because that has been released
for free. Here are some questions for you dev's:

1) If I were to write a FreeDOS-targetted application on FreeDOS, which C++
compiler would be the most interesting? I have a copy of TC++ 3.0 lying
around somewhere. Is that one freely available yet?

2) Is anyone using lex/yacc in any project? Did you use it for the
processing of .bat files? If not, then why not? Will lex/yacc work with TC
2.01?


I know I could just look all of this up, but I guess you guys already know
the answers...

Thanks in advance!


greetz
koder




---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] New tools: CONCAT, OSCHECK (for installer)

2004-07-21 Thread Bernd Blaauw
Eric Auer schreef:
In addition, OSCHECK searches the boot sector for typical kernel file names.
When such a string is found, OSCHECK looks for the corresponding file on disk.
Both on-screen messages and returned errorlevels give you detailled information
about which FORMAT/SYS tool was probably used and whether the disk seems to
be bootable and for which OS.
 

verry nice! however still not safe to SYS C: if a bootsector is 
analysed but contains a strange name.
Say, a KERNEL2.SYS.
difficult to add "read all filenames from root, and search if there's a 
reference to at least one of them in the bootsector" ?
that makes the difference between:
1) "unidentified bootsector, no related kernel file found, overwriting 
by FreeDOS bootsector"
2) "unidentified bootsector, related kernel file(s) found, not touching 
anything"

PS: I think using OSCHECK in a batch script might be more useful than
adding the functionality of OSCHECK to SYS - the command line syntax of
SYS is already complex enough (because it contains SYS, with some possible
parameter overrides and boot sector file writing etc., as well as SYS CONFIG
which is a tool to set config variables in a kernel binary).
 

still SYS should have some additional possibilities, like WARNING the user.
I remember my SYS C:..while C: contained Win2000 bootloader..bye bye 
Win2000 installation :(

OSCHECK tool is very verbose/specialised and very useful for batchfiles.
However, a subset of its functionality (like dumping bootsector, and 
user-protection) can optionally be integrated into SYS, just in a more 
generic way.
(the "existing non-freedos bootsector + corresponding kernel file(s) 
found, are you sure you want to overwrite bootsector by freedos 
bootsector? [Y/N]")

Bernd
---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] Re: Re: EMM386 VCPI/DPMI Help / Question

2004-07-21 Thread Johnson Lam
On Mon, 5 Jul 2004 22:58:22 +0200 (MEST), you wrote:

Hi Eric and everyone,

>> "DEVICE=C:\FDOS\BIN\HIMEMORY\EMM386 FRAME=NONE EMM=1024"
>> ... and any /EMM= values below 2354 cause the following error:
>
>Interesting, but then you already know the solution - use an EMM=...
>value above 2354. Or use NOEMS, unless you need EMS.

NOEMS won't work, it report the message in my last post

I just need FRI night I can get my hand on the test machine ... to see
EMM below 4096 is working or not.


Rgds,
Johnson.



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] Re: Re: EMM386 VCPI/DPMI Help / Question

2004-07-21 Thread Arkady V.Belousov
Салям!

8-Июл-2004 19:52 [EMAIL PROTECTED] (Bernd Blaauw) wrote to
[EMAIL PROTECTED]:

BB> MSDOS uses errlvl 1 for unformatted, and errlvl 12 is OK then.
BB> However, I don't know code to implement it:
BB> If  errorlevel  16 goto skipwipe // don't format
BB> If "%errorlevel%'=="1" format c: // unformatted, msdos
BB> If "%errorlevel%"=="12" format c: // unfortunately also wipes out FAT12

if errorlevel 1  if not errorlevel 2  goto level1
if errorlevel 12 if not errorlevel 13 goto level12
...
:level1
...
goto end
:level12
...




---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] New tools: CONCAT, OSCHECK (for installer)

2004-07-21 Thread Arkady V.Belousov
Hi!

21-Июл-2004 06:02 [EMAIL PROTECTED] (Eric Auer) wrote to
[EMAIL PROTECTED]:

EA> Hi, I wrote 2 tools which might be useful for the installer:
EA> http://www.coli.uni-sb.de/~eric/stuff/soft/specials/
EA> tiny-file-append-concat.zip
EA> Usage: "concat somefile.xyz" will append the contents of somefile.xyz to
EA> the end of target.bin (name "target.bin" is hardcoded).

 copy/b target.bin+somefile.xyz




---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
___
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel