Skip to content
Sign upLog in
← Back to Community

HOW TO ADD HEADER FILES MANUALLY

Profile icon
MiguelMendoza1

How can I add a custom header file? Im using c-language

Voters
Profile icon
Anjali-KumarKum
Profile icon
RodrigoShoiti
Profile icon
AvinashKumar31
Profile icon
LandonPascale
Profile icon
PujiDONageswara
Profile icon
AaronJacobSam
Profile icon
2002910
Profile icon
andycandys
Profile icon
it19974842
Profile icon
MiguelMendoza1
Comments
hotnewtop
Profile icon
L3Monss

I am having the same problem it gives clang-12: error: linker command failed with exit code 1 (use -v to see invocation) error when I am trying to run

Profile icon
CSharpIsGud

Click the new file button and name the file with a .h extension

Profile icon
MiguelMendoza1

@CSharpIsGud
still not working :(

Profile icon
CSharpIsGud

make a file named anything ending with .h

Profile icon
sgmdoc7

@CSharpIsGud
this doesn't work. When you include it in the main file it still gives an error

Profile icon
CSharpIsGud

@sgmdoc7
You can't use <> to include files without passing a directory the files are in to the compiler, use "" instead

Profile icon
Lecream12

@CSharpIsGud
still not working tho