bash - How do I link C source files together using headers -


c code on left, bash window on right

[1]: http://i.stack.imgur.com/phtyz.jpg

i trying create new .c file putting #include "name.h" @ beginning of file can see i'm getting error.

it's saying cannot find include file. not linking them correctly using bash commands?

you use right commands, need have main() function somewhere in code in order program compile.

also, not need put #include "name.h" create .c (source) file, .h file (headers) used declare functions can use them in other source files.


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -