Changes between Version 1 and Version 2 of shunfa/2011/0802


Ignore:
Timestamp:
Aug 2, 2011, 4:38:40 PM (13 years ago)
Author:
shunfa
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • shunfa/2011/0802

    v1 v2  
    143143#!text
    144144all:
    145         gcc -lpthread  spin_or_mutex.c -o spin_or_mutex
     145        gcc -lpthread  spin_or_mutex.c -o spin_or_mutex.o
    146146
    147147clean:
    148         rm -f spin_or_mutex
     148        rm -f spin_or_mutex.o
    149149
    150150}}}
     
    190190}}}
    191191 * 修改error
    192 {{{
    193 #!text
    194 AM_CONDITIONAL
    195 AC_PROG_CC
    196 AC_PROG_CXX
    197 AC_PROG_OBJC
    198 AM_PROG_AS
    199 AM_PROG_GCJ
    200 AM_PROG_UPC
     192 * 修改完後記得
     193{{{
     194$ aclocal
    201195}}}
    202196
     
    205199$ ./configure
    206200$ make
    207 make  all-am
    208 make[1]: Entering directory `/home/shunfa/test/P1_Thomas'
    209 source='spin_or_mutex.c' object='spin_or_mutex.o' libtool=no \
    210         DEPDIR=.deps depmode=none /bin/bash ./depcomp \
    211         gcc -DHAVE_CONFIG_H -I.     -g -O2 -c spin_or_mutex.c
    212 gcc  -g -O2   -o spin_or_mutex spin_or_mutex.o  -lpthread
    213 spin_or_mutex.o: In function `_start':
    214 (.text+0x0): multiple definition of `_start'
    215 /usr/lib/gcc/i486-linux-gnu/4.4.5/../../../../lib/crt1.o:(.text+0x0): first defined here
    216 spin_or_mutex.o:(.rodata+0x0): multiple definition of `_fp_hw'
    217 /usr/lib/gcc/i486-linux-gnu/4.4.5/../../../../lib/crt1.o:(.rodata+0x0): first defined here
    218 spin_or_mutex.o: In function `_fini':
    219 (.fini+0x0): multiple definition of `_fini'
    220 /usr/lib/gcc/i486-linux-gnu/4.4.5/../../../../lib/crti.o:(.fini+0x0): first defined here
    221 spin_or_mutex.o:(.rodata+0x4): multiple definition of `_IO_stdin_used'
    222 /usr/lib/gcc/i486-linux-gnu/4.4.5/../../../../lib/crt1.o:(.rodata.cst4+0x0): first defined here
    223 spin_or_mutex.o: In function `__data_start':
    224 (.data+0x0): multiple definition of `__data_start'
    225 /usr/lib/gcc/i486-linux-gnu/4.4.5/../../../../lib/crt1.o:(.data+0x0): first defined here
    226 spin_or_mutex.o: In function `__data_start':
    227 (.data+0x4): multiple definition of `__dso_handle'
    228 /usr/lib/gcc/i486-linux-gnu/4.4.5/crtbegin.o:(.data+0x0): first defined here
    229 spin_or_mutex.o: In function `_init':
    230 (.init+0x0): multiple definition of `_init'
    231 /usr/lib/gcc/i486-linux-gnu/4.4.5/../../../../lib/crti.o:(.init+0x0): first defined here
    232 /usr/lib/gcc/i486-linux-gnu/4.4.5/crtend.o:(.dtors+0x0): multiple definition of `__DTOR_END__'
    233 spin_or_mutex.o:(.dtors+0x4): first defined here
    234 collect2: ld returned 1 exit status
    235 make[1]: *** [spin_or_mutex] Error 1
    236 make[1]: Leaving directory `/home/shunfa/test/P1_Thomas'
    237 make: *** [all] Error 2
    238 }}}
     201}}}