Free Pascal provides a robust, portable and powerful compiler. On the other hand,the C language benefits of a very long life time and therefore of millions of lines of codes. Hopefully, the Free Pascal compiler supports linking with objects and sharedobjects compiled in C. Reusing this material is therefore often desirable in Free Pascal projects.Furthermore, the C++ provides also a very large number of very useful libraries.But it is not possible yet to access them from Free Pascal directly. Therefore,it is necessary to write in C code, procedures and functions to access the C++ ones.Linking Free Pascal to C code is therefore even more important since C will act as a "glue" between Free Pascal code and C++ -or other languages. "How to Use C Code in Free Pascal Projects" ebook by G. Marcou, E. Engler, A. Varnek summerizes experience about this field It will be extended.
- Introduction
- Dangers of Mixing Code
- Hello in C
- Hello in C++
- Free Pascal Program
No comments:
Post a Comment