c++.dos.16-bits - CAN NOT with intdos().
- Altaf (17/17) Feb 17 2002 Hi Folks,
- Jan Knepper (6/23) Feb 17 2002 Where is it comming 'undefined'?
- Kenneth Roger (4/6) Feb 17 2002 It gets defined automatically if the compilation has defaulted to Window...
Hi Folks, I have been trying to recompile/porting old 16bit code with sc.exe. A function call intdos() is comming as undefined. I see the function in dos.h BUT it is nested with #ifndef __NT__ ... .. #endif I am not defining __NT__ anywhere in my compile line. here is a small example. http://www.digitalmars.com/chmod.c uses the same intdos() and it is not compiling as well. I tried sc -mti chmod.c Can anyone please resolve the mistery for me?? Altaf
Feb 17 2002
Where is it comming 'undefined'? During compile? You might want to include 'dos.h' During link? You might be missing the library that contains the implementation. try -ml instead of -mti Jan Altaf wrote:Hi Folks, I have been trying to recompile/porting old 16bit code with sc.exe. A function call intdos() is comming as undefined. I see the function in dos.h BUT it is nested with #ifndef __NT__ ... .. #endif I am not defining __NT__ anywhere in my compile line. here is a small example. http://www.digitalmars.com/chmod.c uses the same intdos() and it is not compiling as well. I tried sc -mti chmod.c Can anyone please resolve the mistery for me?? Altaf
Feb 17 2002
sc -mti chmod.cTry sc -mtdw chmod.cI am not defining __NT__ anywhere in my compile line.It gets defined automatically if the compilation has defaulted to Windows. Your -mti switch might not be recognized.
Feb 17 2002