You can can compile and link in one step using "wcl"

On Sun, Nov 1, 2020 at 6:39 AM Paul Dufresne via Freedos-devel
<freedos-devel@lists.sourceforge.net> wrote:
>
> Hi! It is said on: https://www.freedos.org/contribute/ that:
> "Port FreeDOS utilities to OpenWatcom C and NASM—our preferred C compiler and 
> Assembler for FreeDOS."
>
> I kind of just discovered the OpenWatcom C,C++ compiler yesterday, and just 
> was able to compile and link my first program this morning.
>
> Since it was a little harder than other compilers, I would like to show how I 
> did here, for others (and maybe me later).
> I might be missing some important options... but part of my problems was that 
> I was seeing tons of options, but the essential was hard to see.
>
> I am using FreeDOS 1.3-rc3.
>
> Launch "FDIMPLES", that allows you to install packages from a list (taken 
> from a CDROM I think).
>
> Select "Development", tab, select "OW", tab, tab, Ok should be selected, 
> Enter.
> I let you get out of it after install.
>
> CD \DEVEL\OW
> owsetenv.bat
> I found it, while writing this (was explaining how I created a similar file).
> For me it write: Environment PATH not set. But it does set it.
>
> mkdir c:\myc
> c:
> cd \myc
> edit test.c
> in it:
> ---
> #include <stdio.h>
> int void main(){
>   printf("Hi! Hello from Open Watcom 1.9!\n");
>   return 0;
> }
> ---
> wpp test.c
> wlink FILE test.obj
> test.exe
>
>
>
>
>
>
> _______________________________________________
> Freedos-devel mailing list
> Freedos-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-devel


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

Reply via email to