Michael Goffioul wrote:
> On Wed, Sep 24, 2008 at 9:57 PM, Benjamin Lindner <[EMAIL PROTECTED]> wrote:
>> Hello,
>>
>> in order to build __COM__.oct in the windows-1.0.6 package using
>> mingw32-gcc, an additional link libray is required
>>
>> Index: Makefile
>> ===================================================================
>> --- Makefile    (revision 5308)
>> +++ Makefile    (working copy)
>> @@ -24,7 +24,7 @@
>>        $(MKOCTFILE) -o $@ $^ -luser32 -ladvapi32
>>
>>  __COM__.oct: __COM__.o
>> -       $(MKOCTFILE) -o $@ $^ -lole32 -loleaut32 -luser32
>> +       $(MKOCTFILE) -o $@ $^ -lole32 -loleaut32 -luser32 -luuid
>>
>>  ../inst/%.m : %.m.in
>>        if [ ! -d ../inst ]; then mkdir ../inst; fi
>>
>> I don't know if this will now work with msvc.
>> If not, then the added -luuid should somehow be conditional to a mingw
>> build (is this easily possible in makefiles?)
> 
> This is not needed under MSVC. So I suggest that you try to
> write a configure test for the missing feature and use a new
> substituted variable in Makeconf.in.
> 
> What is the missing symbol?
> 

mkoctfile -DHAVE_OCTAVE_30 -v -o __COM__.oct __COM__.o -lole32 
-loleaut32 -luser32
mingw32-g++-4.3.0-dw2 -shared -shared-libgcc -Wl,--export-all-symbols 
-Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc  -o 
__COM__.oct  __COM__.o   -lole32 -loleaut32 -luser32 
-LC:\Programs\msys\1.0.11-tdm430-2\opt\octave_mingw32_gcc-4.3.0-dw2\3.0.2-3\lib\octave-3.0.2
 
-LC:\Programs\msys\1.0.11-tdm430-2\opt\octave_mingw32_gcc-4.3.0-dw2\3.0.2-3\lib 
-loctinterp -loctave  -lcruft -shared-libgcc -llapack -lblas -lfftw3 
-lreadline  -lncurses -lhdf5 -lz -lm -lstdc++_s -lws2_32 -lkernel32 
-lgfortran -lstdc++_s
__COM__.o:__COM__.cc:(.text+0x4863): undefined reference to `_GUID_NULL'
__COM__.o:__COM__.cc:(.text+0x4a97): undefined reference to `_GUID_NULL'
__COM__.o:__COM__.cc:(.text+0x578e): undefined reference to `_IID_IDispatch'
__COM__.o:__COM__.cc:(.text$_ZN17octave_com_object13init_typenameEv[octave_com_object::init_typename()]+0x46):
 
undefined reference to `_IID_IProvideClassInfo'
collect2: ld returned 1 exit status
make: *** [__COM__.oct] Error 1


benjamin

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Octave-dev mailing list
Octave-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to