Turbo C
#1
Posted 14 July 2003 - 12:51 AM
1) "unable to open include file Memzones.h"
2) "Unable to create output file FILENAME.obj"
What I must write on the Option menu, Directories (in directories, library directories, etc...)?
#2
Posted 14 July 2003 - 01:26 AM
TIA
Tom Lake
#3
Posted 14 July 2003 - 01:53 AM
Include Directories E:\TC\INCLUDE Library Directories E:\TC\LIB Output Directory E:\TC\OUTPUT\TOUCHE Source Directories E:\TC\PROGS\TOUCHE
in compiler->Code Generation
Model Options (?) Tiny [X] Treat enums as ints ( ) Small [X] Word alignment ( ) Medium [X] Duplicate strings merged ( ) Compact [ ] Unsigned characters ( ) Large [ ] Pre-compiled headers ( ) Huge Assume SS Equals DS (?) Default for memory model ( ) Never ( ) Always
in compiler->Advanced Code Generation
Floating Point Options (?) None [X] Generate underbars ( ) Emulation [ ] Line numbers debug info ( ) 8087 [ ] Debug info in OBJs ( ) 80287 [ ] Fast floating point [ ] Fast huge pointers Instruction Set [ ] Generate COMDEFs ( ) 8088/8086 [ ] Automatic far data (?) 80186 ( ) 80286 Far Data Threshold 32767
in compiler->Optimization Options
Optimizations [X] Suppress Redundant Loads [X] Jump optimization Register Variables ( ) None ( ) Register keyword (?) Automatic Optimize For ( ) Size (?) Speed
in Compiler->Messages-> Display... (this will display all warning - this is important to make bugless programs)
Display warnings (?) All Errors: Stop After 25 ( ) Selected Warnings: Stop After 100 ( ) None
in Debugger... (these settings help to make small programs)
Source Debugging Inspectors ( ) On [ ] Show inherited ( ) Standalone [ ] Show methods (?) None ( ) Show decimal Display Swapping ( ) Show hex (?) None (?) Show both ( ) Smart ( ) Always Program Heap Size 64 K bytes
I hope it'll help you
TomL_12953: Just look in my profile.
#4
Posted 14 July 2003 - 10:45 AM
Floating Point Options (?) None [X] Generate underbars ( ) Emulation [ ] Line numbers debug info ( ) 8087 [ ] Debug info in OBJs ( ) 80287 [ ] Fast floating point [ ] Fast huge pointers Instruction Set [ ] Generate COMDEFs ( ) 8088/8086 [ ] Automatic far data ( ) 80186 (? ) 80286 Far Data Threshold 32767
#5
Posted 14 July 2003 - 04:34 PM
I use these settings to compile TOUCHE.
#6
Posted 14 July 2003 - 05:12 PM
so it's more safe to compile with 80186
BUT Since you can't write protected mode programs in C (except you do inline assembley and if
you do so you'll know what to do and what not) you can keep the 80286 settings.
My assembley manual names the folowing instructions that were first available on 80286:
ARPL (only for OS software)-------Changes selectors of an app in protected mode
CLTS (Only for OS software)-------Switches Task-Switched-Flag off in protected mode
LGDT (Only for OS Software)-------Load Global Descriptor-Table-Register in Protected mode
LIDT (Only for OS software)-------Load Interrupt Descriptor-Table-Register in protected mode
LLDT (Only for OS software)------Load Local Desctiptor-Table-Register in protected mode
LMSW (only for OS Software)-----Load Machine Status word in protected mode
LSL (only for os software) ----Load Segment Boundarrys in protected mode
... and on ... they are all only for protected mode and only for os'ses.
The only thing you shouldn't do is compile in 80386 mode. there are a lot of new instructions (32 bit etc ...)
#7
Posted 15 July 2003 - 01:21 AM
http://www.2072produ....exe&download=1
Thaks by your help 2072, that settings allow me to make programs in the C compilator!
#8
Posted 16 July 2003 - 01:29 AM
#include
void main();
{
locate(1,1,"Betoe");
}
When i compile it, I have no errors, but when i run the program (Ctrl+F9), it seems that i have bad settings on the option menu, ->linker->libraries:
The error is:
"Linker error: unable to open file 'TV.LIB'"
But i have a great confusion with the libraries commands, a lot of errors etc...
I've read websites in french few days ago about C programmation and i fall on a terrible cunfusion
#9
Posted 16 July 2003 - 02:12 PM
Libraries [ ] Container Class [ ] Turbo Vision [ ] Graphics library [X] Standard Run Time
By the way you should add the tc\bin directory to your PATH it will help TC to find its executables.
#10
Posted 17 July 2003 - 06:24 PM
Thanks guys, other error that I had is that I save the files in *.CPP, not in *.C
Sorry guys, i modify about 4 times this reply, but i find my errors :iws:
Excuse me if you receive a mail every time that i modify this reply.
But i have more questions:
How can I clean the screen? i use cls();, but an error appear. The libraries that i use are: graphics.h, casio2.h, stdio.h.
[COLOR=red]
Other question: the C libraries casio2.h have new and the sames commands that casio.h? I read the casio2.html but is in french, is there an english version of the casio2 help?
#11
Posted 19 July 2003 - 06:34 PM
#12
Posted 20 July 2003 - 10:11 AM
void clearseg(unsigned int seg) { asm { mov ax,seg //seg is the adress to clear mov es,ax //es=seg xor ax,ax //ax=0 xor di,di //di=0 mov cx,512 //512 words to clear cld //init di and si rep stosw //copy in es:di the contain of ax } }
#13
Posted 20 July 2003 - 03:55 PM
Does memzones.h have commands like casio2.h? The help file give me a lot of doubts. I dont understand very well the memzones.h
#14
Posted 20 July 2003 - 09:53 PM
If you don't want to use libs right now you can just make some little programs in text mode only, it would be a good begining.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users