NO

Author Topic: user definded header file  (Read 5021 times)

pradeepkhatri2000

  • Guest
user definded header file
« on: July 25, 2010, 06:34:54 PM »
How to create user defined header files and how to link it with function files?

Pradeep

Offline AlexN

  • Global Moderator
  • Member
  • *****
  • Posts: 394
    • Alex's Link Sammlung
Re: user definded header file
« Reply #1 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).
best regards
 Alex ;)

danial500

  • Guest
Re: user definded header file
« Reply #2 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).