Need help in compiling header files using GCC

View: New views
1 Messages — Rating Filter:   Alert me  

Need help in compiling header files using GCC

by leehj :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I would like to seek help in compiling header files (.h) using GCC.

I would like to seek help in compiling header files (.h) using GCC.

Basically I have a file which is .c file with multiple header files preprended in my .c file. And apart from that I have separate header files too.I tried to compile using below command:-

gcc -o xxx.c a.h b.h c.h xxx.exe

However, it gives me compiling error especially it could not recognize "sin" which is math option and "log" as well. I have Math.h prepended across in the xxx.c.

I tried looking on the online docs but it didnt state how to solve the above problem. I tried to look into c book and they just mentioned it is heavily based on how different compiler works to recognize these header files. Please help.

Thanks.

 Rgrds,
Jason
LightInTheBox - Buy quality products at wholesale price!