On 23-Oct-2008, John Swensen wrote:
| I have a problem where linking GTK libraries into an OCT file
prevents
| it from loading properly in Octave. I am using the latest from HG
(as
| of last night) on OSX 10.5. I do know for a fact that this does
work
| on Ubuntu Linux 8.04.
|
| PROGRAM (testfunc.cc)
| ---------------
| #include <octave/oct.h>
|
| #include<iostream>
| using namespace std;
|
| DEFUN_DLD (testfunc, args, , "")
| {
| return octave_value();
| }
|
|
| COMPILE COMMANDS
| ---------------------------------
| 1) mkoctfile -v -o testfunc.oct testfunc.cc
| 2) mkoctfile -v -o testfunc.oct `pkg-config --cflags gtk+-2.0
| gtkgl-2.0 gtkmm-2.4` -L`pkg-config --libs gtk+-2.0 gtkgl-2.0
| gthread-2.0 gtkmm-2.4` testfunc.cc
Why are you using the -L in front of the `pkg-config ...` substitution
here:
-L`pkg-config --libs gtk+-2.0 gtkgl-2.0 gthread-2.0 gtkmm-2.4`
Doesn't the "pkg-config --libs ..." command print the -L part of the
flags?
jwe