Pelles C forum

C language => Expert questions => Topic started by: pradeepkhatri2000 on July 25, 2010, 06:34:54 pm

Title: user definded header file
Post by: pradeepkhatri2000 on July 25, 2010, 06:34:54 pm
How to create user defined header files and how to link it with function files?

Pradeep
Title: Re: user definded header file
Post by: AlexN on July 26, 2010, 07:51:05 am
How to create user defined header files and how to link it with function files?

To create an user defined header file is very simple, make it with an editor. ;)

If you want to link it, you must create a library or an object file. In POIDE you will find a template to create a library - to create an object file you only have to compile a C source file.

The header file makes promises to the compiler with functions and variables the linker will find in the libraries or object files. You must say to the linker  to add then this libraries or object files to your code to create a complete program (EXE).
Title: Re: user definded header file
Post by: danial500 on October 04, 2014, 09:21:39 am
On the off chance that you need to connection it, you must make a library or an item document. In POIDE you will discover a layout to make a library - to make an article record you just need to gather a C source document.
The header document makes guarantees to the compiler with capacities and variables the linker will discover in the libraries or article documents. You must say to the linker  to include then this libraries or article records to your code to make a complete project (EXE).