Themen / Inhaltsliste
Compilation with MSVC40
Preparation of the Compiler (only once after a standard installation) :
- Menu [Tools] [Options] [Directories] Include-Files, there my private header
subdirectory (C:\HOME\CC\INCLUDE) has to be added.
Creation of a Project for a main program (is only neccesary if that main
program should be debugged)
- Menu [File] [New] [Project Workspace] [Button OK]
- Usually I select WIN32, so the windows sockets can be used (and some other
extensions as long file names)
- If you want to create a Console Application, then use as subdirectory C:\HOME\CC\xxx\MDOS40,
if you want to create an Application then use as subdirectory C:\HOME\CC\xxx\MSVC40,
(as I did) then i a subdirectory the 3 Files xxx.mdp, xxx.mak and xxx.ncb
will be created. Under this project directory two directories "Debug" and
"Release" will hold .OBJ and .EXE Files.
- Button [Create]
- Menu [Insert] [Files into Project]. Insert first the main program for exemple
C:\HOME\CC\UTIL\ALL.CPP.Try to Translate. Then add the required subroutines.
from subdirectory C:\HOME\CC\LQ .
This procedure in opposite to the usage of a precompiled library has
- Advantages :
- Subroutines may be debugged directly with the main program
- Disadvantages :
- Compilation time for the whole project is longer.
- for each main program all .obj files will be saved in separate subdirectories.
Needs more disk space.
See also : Compilation with other compilers (overview)