To maintain the list of files that belong to the project,
you can use the "Project" then "Add/delete files" menu
entry. Note that you should add to the project only the C source files. The
header files will be automaticaly added to the dependencies of the project by
the IDE itself.
|
|
You
reach this dialog box either by choosing ‘Create’ in the project
options, or by choosing ‘Add/Delete files’. This
is the standard dialog box for project file maintenance. To
add a file, choose a file from the list box at the upper left or type its
name in the corresponding entry field, then click on the ‘Add’ button. To
remove a file, select it first in the list box at the bottom, then click
on the ‘Remove’ button. |
You add (one or several) files with the "Add new file" button.
For deleting a file from the project you select it in the list box at the left, then you press the "Remove selected file" button.
If your project uses special libraries, add them to the project files here. For instance, if you want to use the Windows sockets primitives for network programming add ws2_32.lib. You can enter the library without a path. If no library is found in the current directory with the name you typed, Wedit will search in the system \lcc\lib directory, and determine the path for you.
If you are building a Windows executable, you should add your resources, either by adding a .rc file or a binary .res file. Use the combination box with ‘List files of type’ header to choose the different files that you want to add to the project.
If you prepare a text file with a list of files (one file per line) to be added to the project, you push the "Read file list from a text file" button. This is very convenient when you have generated this list before using "make" or other utility.