www.digitalmars.com         C & C++   DMDScript  

c++ - Cant find include files

reply %u <aaron.baska dedicatedcomputing.com> writes:
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.
Aug 30 2011
parent reply Jan Knepper <jan smartsoft.us> writes:
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.
Aug 30 2011
parent reply ab <aaron.baska dedicatedcomputing.com> writes:
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,
Aug 30 2011
parent reply Bertel Brander <bertel post4.tele.dk> writes:
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.
Aug 30 2011
parent reply ab <aaron.baska dedicatedcomputing.com> writes:
Closer, now it just has a Symbol Undefined for _bios_serialcom
Aug 31 2011
parent reply Walter Bright <newshound2 digitalmars.com> writes:
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.
Aug 31 2011
parent ab <aaron.baska dedicatedcomputing.com> writes:
This may be dumb, but how do i compile this for real mode programming?
Jan 12 2012