From graphics-request at octave dot org Wed Feb 15 15:14:38 2006 Subject: Re: Octave GUI MinGW first light & need help. From: Sebastien Loisel To: David dot Bateman at motorola dot com Cc: octave maintainers mailing list , octave-graphics Date: Wed, 15 Feb 2006 22:12:55 +0100 ------=_Part_10225_23774124.1140037975659 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline David, any suggestions? It's all autoconfiscated, and everything works in Linux, but in Windows I can't seem to find octave_call anywhere. And by the way, am I stupid or is there no good way of getting compile and link options from mkoctfile or octave in general? g++ -g -O2 -I/c/Qt/4.1.0/include -I/c/Qt/4.1.0/include/QtCore -I/c/Qt/4.1.0/include/QtGui -I/c/Qt/4.1.0/include/QtOpenGL -I/c/Qt/4.1.0/mkspecs/win32-g++ -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPOR= T -DQT_NEEDS_QMAIN -frtti -fexceptions=20 -I/octave-2.9.4/include/octave-2.9.4-I/octave- 2.9.4/include/octave-2.9.4/octave -I/octave-2.9.4/include -mieee-fp -o octave-gui.exe editwindow.o mainwindow.o mygui.o test.o internal_my_plot.o plotter.o moc_editwindow.o moc_embed.o moc_mainwindow.o moc_plotter.o moc_tools.o -shared -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-reloc -L/octave-2.9.4/lib/octave-2.9.4-loctinterp -loctave -lcruft -llapack -lblas -lfftw3 -lreadline -lhdf5 -lz -lm -L/mingw/bin -L/lib -lwsock32 -lwsock32 -Lc:/octave/MinGW/bin -LC:/octave/msys/lib -Lc:/octave/MinGW/bin/../lib/gcc/mingw32/3.4.2 -Lc:/octave/MinGW/bin/../lib/gcc -Lc:/octave/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../mingw32/lib -Lc:/octave/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../.. -lhdf5 -lz -lm -lwsock32 -lfrtbegin -lg2c -lmingw32 -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -L/c/Qt/4.1.0/lib -lopengl32 -lglu32 -lgdi3= 2 -luser32 -lmingw32 -lqtmain -lQtOpenGL4 -lQtGui4 -lQtCore4 -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -Wl,-s -Wl,-subsystem,windows -L/octave-2.9.4/lib/octave-2.9.4 -loctinterp -loctave -lcruft -Lc:/octave/MinGW/bin -LC:/octave/msys/lib -Lc:/octave/MinGW/bin/../lib/gcc/mingw32/3.4.2 -Lc:/octave/MinGW/bin/../lib/gcc -Lc:/octave/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../../../mingw32/lib -Lc:/octave/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../.. -lhdf5 -lz -lm -lwsock32 -lfrtbegin -lg2c -lmingw32 -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 mygui.o(.text+0x328): In function `Z5qMainiPPc': c:/octave-gui-0.4/mygui.cpp:17: undefined reference to `octave_exit' test.o(.text+0xce): In function `Z6myevalPKc': c:/octave-gui-0.4/test.cpp:18: undefined reference to `octave_call' test.o(.text+0x2b4): In function `Z8testmainiPPc': c:/octave-gui-0.4/test.cpp:35: undefined reference to `octave_init' collect2: ld returned 1 exit status make: *** [octave-gui.exe] Error 1 sh-2.04$ cd /octave-2.9.4/ sh-2.04$ grep octave_call `find .` 2>/dev/null ------=_Part_10225_23774124.1140037975659 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline David, any suggestions? It's all autoconfiscated, and everything works in L= inux, but in Windows I can't seem to find octave_call anywhere.

And = by the way, am I stupid or is there no good way of getting compile and link= options from mkoctfile or octave in general?

g++  -g -O2 -I/c/Qt/4.1.0/include -I/c/Qt/4.1.0/include/QtCore= -I/c/Qt/4.1.0/include/QtGui -I/c/Qt/4.1.0/include/QtOpenGL -I/c/Qt/4.1.0/m= kspecs/win32-g++ -DUNICODE -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_NO_DEBUG -D= QT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -DQT_NEEDS_QMA= IN -frtti -fexceptions  -I/octave- 2.9.4/include/octave-2.9.4 -I/octave-2.9.4/include/octave-2.9.4/octave -I/o= ctave-2.9.4/include -mieee-fp   -o octave-gui.exe  editwindo= w.o mainwindow.o mygui.o test.o internal_my_plot.o plotter.o moc_editwindow= .o moc_embed.o moc_mainwindow.o moc_plotter.o moc_tools.o  -shared -Wl= ,--export-all-symbols -Wl,--enable-auto-import -Wl,--enable-runtime-pseudo-= reloc -L/octave- 2.9.4/lib/octave-2.9.4 -loctinterp -loctave -lcruft -llapack -lblas -lfftw3= -lreadline -lhdf5 -lz -lm -L/mingw/bin -L/lib -lwsock32 -lwsock32 -Lc:/oct= ave/MinGW/bin -LC:/octave/msys/lib -Lc:/octave/MinGW/bin/../lib/gcc/mingw32= /3.4.2 -Lc:/octave/MinGW/bin/../lib/gcc -Lc:/octave/MinGW/bin/../lib/gcc/mi= ngw32/3.4.2/../../../../mingw32/lib -Lc:/octave/MinGW/bin/../lib/gcc/mingw3= 2/3.4.2/../../.. -lhdf5 -lz -lm -lwsock32 -lfrtbegin -lg2c -lmingw32 -lmold= name -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -L/c/Qt/4.= 1.0/lib -lopengl32 -lglu32 -lgdi32 -luser32 -lmingw32 -lqtmain -lQtOpenGL4 = -lQtGui4 -lQtCore4 -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-imp= ort -Wl,-enable-runtime-pseudo-reloc -Wl,-s -Wl,-s -Wl,-subsystem,windows&n= bsp;  -L/octave- 2.9.4/lib/octave-2.9.4 -loctinterp -loctave -lcruft -Lc:/octave/MinGW/bin -= LC:/octave/msys/lib -Lc:/octave/MinGW/bin/../lib/gcc/mingw32/3.4.2 -Lc:/oct= ave/MinGW/bin/../lib/gcc -Lc:/octave/MinGW/bin/../lib/gcc/mingw32/3.4.2/../= ../../../mingw32/lib -Lc:/octave/MinGW/bin/../lib/gcc/mingw32/3.4.2/../../.= . -lhdf5 -lz -lm -lwsock32 -lfrtbegin -lg2c -lmingw32 -lmoldname -lmingwex = -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32
mygui.o(.text+0x328): In function `Z5qMainiPPc':
c:/octave-gui-0.4/m= ygui.cpp:17: undefined reference to `octave_exit'
test.o(.text+0xce): In= function `Z6myevalPKc':
c:/octave-gui-0.4/test.cpp:18: undefined refere= nce to `octave_call'
test.o(.text+0x2b4): In function `Z8testmainiPPc':
c:/octave-gui-0.4= /test.cpp:35: undefined reference to `octave_init'
collect2: ld returned= 1 exit status
make: *** [octave-gui.exe] Error 1
sh-2.04$ cd /octave= - 2.9.4/
sh-2.04$ grep octave_call `find .` 2>/dev/null

------=_Part_10225_23774124.1140037975659--