Friday, February 19, 2010

Code Generation

You can turn this option

off with:

Options | Compiler | Code Generation | Overlay Support

Q. When I try to load a new file after editing a file, the first

file remains on the screen. How do I close the first file?

A. Use Alt-F3 to close the current file. Also, use F6 to move

from one file to the next, if there is more than one file

open at a time.

Q. I'm doing a search and replace operation, and the editor prompts me for

each replacement. I've selected "Change All", but it still does it.

A. To disable the prompting, you must unselect the "Prompt on replace"

option on the left side of the dialog box.

Q. When I try to use the any of the pseudo registers, like _AX, I

get the error message "Undefined symbol '_AX' in function..."

when I compile. Why?

A. You are only allowed to use the pseudo registers in the Turbo

C++ and ANSI modes of the compiler. You can change this setting

in the Options | Compiler | Source menu.

Q. Since I don't have a mouse, can I still copy blocks of code

from one file to another?

A. Yes. You can mark the beginning and end of a block by moving

to the appropriate area and pressing Ctrl-K-B (mark beginning) and

Ctrl-K-K (mark end). You can then use the copy and paste commands

in the Edit menu.

Q: How do I stop all of the files I have ever edited from constantly

being open when I bring up Turbo C++?

A: By default, Turbo C++ saves what is called the desktop configuration.

This configuration is saved in a file with a .DSK extension. By deleting

any files of this type, then entering Options/Environment/Preferences

and removing the check from 'auto save desktop', you will begin with a

clean desktop each time you invoke Turbo C++.

C o m m a n d - L i n e C o m p i l e r

----------------------------------------------------------------------

Q. Why is Turbo C++ not able to find any of my #include files?

A. The compiler searches for include files in the Turbo C++ Include

Directories path. You specify this path with the -I option. The INSTALL

program initially writes a configuration file (TURBOC.CFG) that

sets this path to the directory where it copied all the Turbo C++

*.h files.

Q. Why do I get the message:

Linker Error: Unable to open input file 'C0x.OBJ'

A. The linker searches for Turbo C++ start-up and library files in the

Turbo C++ Library Directories path. You can specify this path with

the -L option. If you allow TCC to invoke the linker, it will search

the directories in the configuration file (TURBOC

No comments:

Post a Comment