Review: In the above "DEV-CPP / MINGW32 Environment:" We know how to make dynamic libraries and use. And how the DEV-CPP / MingW32 is described earlier. From here, I will use the way to use some of the experience and development tools combined with DEV-CPP / MingW32 and bonded. I hope that you can make your opinion carefully and use it well. Because these things are my years of experience and products with the majority of netizens. Below I will change according to the status quo, change the configuration I explained, now use DEV-CPP 4.9.9.1 I want to have a new one before I said, I have already installed new.
Chapter 11 Creates your own project in DEV-CPP
I think everyone will feel very hard when using DEV-CPP, because usually uses some other development tools, such as GTK WXWindows (now I am wxwidget, I still know that I have already changed nation). To generate a project using these tools, you always have to set the parameters, and if each similar project is set, you have an engineering parameter, then I think this is too trouble. Ok, I can now make your DEV-CPP newly create your own custom project. Here, we have to generate manually, so we must generate more direct and flexible than using software.
At the beginning, we have to know how DEV-CPP creates new projects. Open the installation directory of the DEV-CPP. I think you will have a directory named Templates to open it, we can find the secret of the dev engineering. In fact, in DEV, each project is composed of a set of files. These files describe the set parameters of the project and initialization work. These files include:
Engineering name .Template program file .txt (icon .ico) if needed
Below we talk less nonsense, start writing a look.
I started to write the template file first.
The Template file is made of three groups of labels, where [Template] describes the state of the project in the new project dialog. [UnitX] x is a number starting from 0, where a parameter of a project file is stored. [Project] is the setting of file attributes, such as compilation parameters.
Below I write a project file for GTK , I now assume that you have installed the GTK development library. And installed under (gtk_dev) path (here, the brackets, including parentheses represent your installation path). Also, the content starting with # 号 is my explanation, please remove when prepared.
[Template] # 下 版 版 信息, since it is useful, why bother to use so many versions, I am set to 1VER = 1 # project name, will show a simple introduction of Name = GTK # project in the dialog box Description = CREATE A GUI using gtk . # Where is the location, that is, the tab, if it is BASIC, will appear on the first page. Here is Guicatagory = GUI
[Unit0] #C Language Document Name CNAME = Main.c # c When the project file name cppname = main.cpp # C = GTK.TXT # C language, Project file content CPP = gtk.txt
[Project] unitcount = 1 # This parameter affects the icon Type = 0 # in the dialog box Type = 0 # If you can only use C to set the directory of 1iscpp = 0 # lib file (here I can only use a directory, multiple It is not possible) Libs = (gtk_dev) / lib # below is the compiler parameter. We include the use -i to add multiple compiler = -MMS-bitfields -i "(gtk_dev) / IncludE/gtk-2.0 "-I" (gtk_dev) /lib/gtk-2.0/include "-i" (gtk_dev) /include/atk-1.0 "-i" (gtk_dev) /include/pango-1.0 "-i" (GTK_DEV) / Include /Glib-2.0 "-i" (gtk_dev) /lib/glib-2.0/include "# below is the connector parameter Our lib directory can be added here, add multiple link = -lgtk-win32-2.0 -LGDK-Win32-2.0 -LATK-1.0 -LGDK_PIXBUF-2.0 -LPANGOWIN32-1.0 -LGDI32 -LPANGO-1.0 -LGObject-2.0 -LgModule-2.0 -lglib-2.0 -lintl -liconvname = gtk Project Let's write a gtk.txt If not, you will create a blank document in a new project. This is set in Unit0.
#include
Save the above two files to the Templates folder. Restart the DEV-CPP You will see your project GTK in the GUI tab in the New Project dialog. Excite.
If you set it correct, then your project can be used normally. For questions about GTK installation, please see "L & W Developer Agreement". Good luck
Chapter 12 Generates your own bag in DEV-CPP
In the previous chapter, we know how to install customization projects in DEV-CPP, let me introduce how to make a package file. However, here my package cannot produce the kind of DEV-CPP release, can be installed directly with the package manager. Because I have not found a compression program that can compress BZIP2 (under Win32). But first introduce the composition of the package file, you can install the package file with a copy. The description file of the package file is in the packages directory. The description file is the package name. He will write one simply below.
[Setup] AppName = package name appversion = version description = Description URL = address
[FILES] relative to the installation directory file such as bin / include / studio.h
This is simple enough. Others as long as they can do it according to the package described.
This chapter is not complete, we will continue. If you can find a compressed bzip2 in the future, you will continue. Textual sound: I hope this article can bring you convenience in development. In the next article, I will introduce installation and settings for WXWidget. I think everyone will definitely look forward to it. Moreover, I will compile it with a new compilation. There are many new stranges, and at least similar compilation methods are found with the Google search. Really been waiting.
Studio Software Development Group (SDT) Studio Development Team Beidou Star (Huang Yuxi)