This is the mail archive of the
mailing list for the GCC project.
- From: "Dimitri Frederickx" <dimi at flashmail dot com>
- To: <gcc-helpr at gcc dot gnu dot org>, <gcc at gcc dot gnu dot org>
- Date: Tue, 5 Feb 2002 04:21:14 +0100
- Subject: -fno-leading-underscore error
I'm compiling a program under cygwin. I have .c and .s files (c and
assemble). During the linking I get the following errors:
cpu.o): In function `x_thread_switch':
undefined reference to `x_host_switch'
I use the functions in my .c files but the declaration of the function is in
the .s file.
While compiling gcc puts an underscore in front of the function, but in my
compiled .s files the function has NO leading underscore!
I tried to compile with -fno-leading-underscore but there is still a _ in my
.o files. How do I solve this problem? How do I get rit of those