octave-maintainers
[Top][All Lists]
Advanced

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

Re: Problem with an oct file that won't load


From: John Swensen
Subject: Re: Problem with an oct file that won't load
Date: Thu, 23 Oct 2008 11:58:34 -0400


On Oct 23, 2008, at 10:36 AM, John W. Eaton wrote:

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

While that is true that it shouldn't have -L, I still get the exact same error after removing the -L.

John Swensen


reply via email to

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