Hello everybody!
I would like to know "how to link header file (.h file ) and source file (.c file ) in c.
I have downloaded many .h files and .c files. I have noticed that the functions are declared in .h files and denined in .c files. I don't know how to link them in main program.
Please explain me.
thanks in advance,
Moe
Moe
0
Light Poster
Recommended Answers
Jump to PostI am not from Japan.
Japan is not a developing country. Now where are you from?
Jump to PostIt is a project management file used in the Visual Studio Development Environment. You can group mulitple source files to a single project file to make compiling and maintaining the project easier. I dont think you can use it with the Visual Studio 2003 Command line toolkit. You should have …
Jump to PostWhat is Library Directories & Include Directories & Resource Directories?
Please use my downloaded linkgrammar folder, link41b as an example.Library directory: the directory (or folder) that contains library files (file with .lib extension). You need not specify the compiler's standard library path (see your compiler installation directory)
Include …
Jump to PostUse your own head and attempt to figure it out yourself. Use your head for something other than a hat rack.
Good call man. I had given up answering these questions.
Jump to PostWolfpack
I can not use my own head.
U pointed out me the step of running api-example.c.
Why that step can not be used for constituent-example.c?Add this line
#include "link-includes.h"
at the top of the file
constituent-example.c
and try again.Edit: I got a …
All 44 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Moe
0
Light Poster
Moe
0
Light Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Moe
0
Light Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Moe
0
Light Poster
Moe
0
Light Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Moe
0
Light Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Moe
0
Light Poster
Moe
0
Light Poster
Moe
0
Light Poster
Moe
0
Light Poster
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
WolfPack
491
Posting Virtuoso
Team Colleague
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Moe
0
Light Poster
WolfPack
491
Posting Virtuoso
Team Colleague
Moe
0
Light Poster
Moe
0
Light Poster
WolfPack
491
Posting Virtuoso
Team Colleague
Moe
0
Light Poster
WolfPack
491
Posting Virtuoso
Team Colleague
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Moe
0
Light Poster
Moe
0
Light Poster

iamthwee
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.