This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Need help in compiling header files using GCC
- From: leehj <leehj at csse dot unimelb dot edu dot au>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 29 Dec 2007 00:40:54 -0800 (PST)
- Subject: Need help in compiling header files using GCC
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
--
View this message in context: http://www.nabble.com/Need-help-in-compiling-header-files-using-GCC-tp14535850p14535850.html
Sent from the gcc - bugs mailing list archive at Nabble.com.