glibc - How to stop Clang from duplicating functions in standard C header files? -


I have some pretty pretty C99 codes that have multiple C files are compiled, and when I compile it with Clag 2.7, I get some very strange errors:

  /usr/include/bits/stdio.h:77: ` Many definitions of 'wizarding' a2test.o: /usr/include/bits/stdio.h: 77: Firstly defined here   

What is happening is that & lt; Stdio.h & gt; For , the GNU Liby Header file should contain putchar , extern __inline __ , and for any reason in the conflict .o files Putting Definition Then when the linker sees duplicate definitions, then it is bleaching.

I suspect a configuration problem: When I use Inclination 2.7 which is with Debian Lane, everything is compiled but for the class I'm reading, the software is red Must be run on Hat Enterprise Linux 5, and my sysadmin has created the stigma 2.7 from the source. (We are not using 2.9 because we are not able to compile the Hello world, and we are not using later versions because we can not find the latest to make it.)

I'm looking for a solution that will allow me to compile. Either there is a way to reconfigure a command line option or clang, so it does not sound bad.

I have not already made any impact with -U__USE_EXTERN_INLINES . LLV tells that this problem arises from a conversation between the C 99 support of the state and the old version of GNU Libasi, which is established on RHEL. 5. It appears that one of us associated with RHEL 5, use clang -std = c99 -Ox to any x & gt; Is not possible for. 0 .

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -