octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #37122] mex with subdirs links same object twi


From: anonymous
Subject: [Octave-bug-tracker] [bug #37122] mex with subdirs links same object twice (multiple definition)
Date: Tue, 23 Apr 2013 08:34:17 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0

Follow-up Comment #5, bug #37122 (project octave):

I tested this with 3.6.4. Unfortunately, I get exactly the same error (see
below). I tried to fix this myself, but I failed even in building Octave on
Windows.

octave:13> mex -v mex_test.c subdir/f.c subdir/g.c
subdir.o: In function `g':
C:Usersbuchachcoctsubdir/subdir/g.c:1: multiple definition of `g'
subdir.o:C:Usersbuchachcoctsubdir/subdir/g.c:1: first defined here
collect2: ld returned 1 exit status
gcc -shared-libgcc -c -I/c/OctaveB/gplibs/include
-I/c/OctaveB/OctaveLibs/include -I/c/OctaveB/GnuWin32/include  -IC:Oc
taveOctave3.6.4_gcc4.6.2includeoctave-3.6.4octave..
-IC:OctaveOctave3.6.4_gcc4.6.2includeoctave-3.6.4octave -I
C:OctaveOctave3.6.4_gcc4.6.2include -mieee-fp -g -O2    -I.  mex_test.c -o
mex_test.o
gcc -shared-libgcc -c -I/c/OctaveB/gplibs/include
-I/c/OctaveB/OctaveLibs/include -I/c/OctaveB/GnuWin32/include  -IC:Oc
taveOctave3.6.4_gcc4.6.2includeoctave-3.6.4octave..
-IC:OctaveOctave3.6.4_gcc4.6.2includeoctave-3.6.4octave -I
C:OctaveOctave3.6.4_gcc4.6.2include -mieee-fp -g -O2    -I.  subdir/f.c -o
subdir.o
gcc -shared-libgcc -c -I/c/OctaveB/gplibs/include
-I/c/OctaveB/OctaveLibs/include -I/c/OctaveB/GnuWin32/include  -IC:Oc
taveOctave3.6.4_gcc4.6.2includeoctave-3.6.4octave..
-IC:OctaveOctave3.6.4_gcc4.6.2includeoctave-3.6.4octave -I
C:OctaveOctave3.6.4_gcc4.6.2include -mieee-fp -g -O2    -I.  subdir/g.c -o
subdir.o
g++ -shared-libgcc -shared -Wl,--export-all-symbols -Wl,--enable-auto-import
-Wl,--enable-runtime-pseudo-reloc  -o mex_t
est.mex  mex_test.o subdir.o subdir.o  
-LC:OctaveOctave3.6.4_gcc4.6.2liboctave3.6.4 -LC:OctaveOctave3.6.4_gcc4.6
.2lib -loctinterp -loctave -lcruft
warning: unable to find mkoctfile in expected location:
'C:OctaveOctave3.6.4_gcc4.6.2binmkoctfile-3.6.4'
warning: mkoctfile exited with failure status

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?37122>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]