Thread overview
Cant find include files
Aug 30, 2011
%u
Aug 30, 2011
Jan Knepper
Aug 30, 2011
ab
Aug 30, 2011
Bertel Brander
Aug 31, 2011
ab
Sep 01, 2011
Walter Bright
Jan 12, 2012
ab
August 30, 2011
Is there something special i have to do to get the compiler to find
the specified include files?  I am trying use to use the BIOS.H file.
If i do a #include <bios.h> the compiler complains it cant find the
attributes im using _COM_SEND etc.
I have also tried doing #include "bios.h" and moving the file to the
same folder, same output.  Is there some switch im missing?  Right now
im just running DMC.exe main, for my file main.c.
August 30, 2011
How are you invoking the compiler?
- Command Line?
- IDDE?

Do you have environment variable INCLUDE set?

Do you have an sc.ini in the ~/bin directory?

If so, what does it contain?



On 08/30/2011 02:15 PM, %u wrote:
> Is there something special i have to do to get the compiler to find
> the specified include files?  I am trying use to use the BIOS.H file.
> If i do a #include<bios.h>  the compiler complains it cant find the
> attributes im using _COM_SEND etc.
> I have also tried doing #include "bios.h" and moving the file to the
> same folder, same output.  Is there some switch im missing?  Right now
> im just running DMC.exe main, for my file main.c.

August 30, 2011
I am invoking the compiler by command line.

I do not have the environmental variable set. I was under the impression if you either had the file in the same directory or had the sc.ini you did not need to do this.

My sc.ini contains:
[Version]
version=7.51 Build 020

[Environment]
PATH=%PATH%;"%@P%\..\bin"
BIN="%@P%\..\bin"
INCLUDE="%@P%\..\include";"%@P%\..\mfc\include";%INCLUDE%
LIB="%@P%\..\lib";"%@P%\..\mfc\lib";%LIB%
HELP="%@P%\..\help"

Thanks,
August 30, 2011
Den 30-08-2011 23:00, ab skrev:
> I am invoking the compiler by command line.
>
> I do not have the environmental variable set. I was under the
> impression if you either had the file in the same directory or had
> the sc.ini you did not need to do this.
>
> My sc.ini contains:
> [Version]
> version=7.51 Build 020
>
> [Environment]
> PATH=%PATH%;"%@P%\..\bin"
> BIN="%@P%\..\bin"
> INCLUDE="%@P%\..\include";"%@P%\..\mfc\include";%INCLUDE%
> LIB="%@P%\..\lib";"%@P%\..\mfc\lib";%LIB%
> HELP="%@P%\..\help"

I'm not an expert, but I think that the problem is that
what's in bios.h is disabled when you have __NT__ defined,
and I think it is by default.
August 31, 2011
Closer, now it just has a Symbol Undefined for _bios_serialcom
September 01, 2011
On 8/31/2011 6:33 AM, ab wrote:
> Closer, now it just has a Symbol Undefined for _bios_serialcom

The bios functions only are defined for real mode programming, not for Win32.
January 12, 2012
This may be dumb, but how do i compile this for real mode programming?