[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
"why does dynamic linking work when octave_config_info says it shouldn't
From: |
Henry F. Mollet |
Subject: |
"why does dynamic linking work when octave_config_info says it shouldn't?" |
Date: |
Thu, 15 Jan 2004 10:09:08 -0800 |
User-agent: |
Microsoft-Entourage/10.1.1.2418 |
After an off-list discussion and further checking, we've come to the
conclusion that Joe's Fink 2.1.46 and octave-forge installation and my Fink
2.1.46 installation both support dynamic linking and run oregonator.oct
*despite* the fact that both our systems allegedly *do not* support it:
octave:1> octave_config_info ("dld")
ans = 0
octave:2> octave_config_info ("ENABLE_DYNAMIC_LINKING")
ans = false
In my case, I had to make sure that I used a different name e.g.
myorgonator.cc, and then change to
DEFUN_DLD (myoregonator, args, ,
"The `myoregonator'.\n\
before compiling as per P.K's suggestion. The name change was needed because
the directory containing oregonator.m was in my path.
Henry
on 1/13/04 8:10 PM, Joe Koski at address@hidden wrote:
> For what it's worth, I was able to make oregonator.oct work on my Mac OS X
> 10.2.8 platform with Fink 2.1.46 and octave-forge. From previous posts, I
> think my configuration is similar to Henry's. And, yes, I did it in my
> Documents directory where I had all the permissions.
>
> Joe Koski
>
> on 1/13/04 8:52 PM, Paul Kienzle at address@hidden wrote:
>
>> Is this possibly because you don't have write permission
>> for the directory you are in [/doc/octave/examples]? The
>> C example works because you are in one of your own
>> directories [~/cando].
>>
>> Copy the oregonator.cc example somewhere in your
>> local path and try again.
>>
>> Paul Kienzle
>> address@hidden
>>
>> On Jan 13, 2004, at 9:54 PM, Henry F. Mollet wrote:
>>
>>> To *use* an .oct file, I must have an Octave version which supports
>>> dynamic
>>> linkng, which I don't have yet. Presumably it also means that I cannot
>>> even
>>> *compile* a .cc source file (to make my .oct executable file) for
>>> practice
>>> purposes? In contrast I can compile and run my own hello.c.
>>> Henry
>>>
>>>
>>> [~] tcsh:17> cd ../../sw/share/doc/octave/examples
>>> [doc/octave/examples] tcsh:18> ls
>>> Makefile info-emacs-info oregonator.cc
>>> Makefile.in info-emacs-octave-help oregonator.m
>>> hello.cc make_int.cc
>>>
>>> [doc/octave/examples] tcsh:19> mkoctfile oregonator.cc
>>> /var/tmp//cc5GNwcZ.s:unknown:FATAL:can't create output file:
>>> oregonator.o
>>>
>>> [doc/octave/examples] tcsh:31> mkoctfile hello.cc
>>> /var/tmp//cc9Bo7wZ.s:unknown:FATAL:can't create output file: hello.o
>>>
>>> [~/cando] tcsh:36> gcc hello.c
>>> hello.c: In function `main':
>>> hello.c:3: warning: return type of `main' is not `int'
>>> [~/cando] tcsh:37> a.out
>>> Hello, World!
>>> [~/cando] tcsh:38> cat hello.c
>>> #include <stdio.h>
>>> void main()
>>> {
>>> printf("Hello, World!\n");
>>> }
>>>
>>>
>>>
>>>
>>>
>>> -------------------------------------------------------------
>>> Octave is freely available under the terms of the GNU GPL.
>>>
>>> Octave's home on the web: http://www.octave.org
>>> How to fund new projects: http://www.octave.org/funding.html
>>> Subscription information: http://www.octave.org/archive.html
>>> -------------------------------------------------------------
>>>
>>
>>
>>
>> -------------------------------------------------------------
>> Octave is freely available under the terms of the GNU GPL.
>>
>> Octave's home on the web: http://www.octave.org
>> How to fund new projects: http://www.octave.org/funding.html
>> Subscription information: http://www.octave.org/archive.html
>> -------------------------------------------------------------
>>
>
>
>
> -------------------------------------------------------------
> Octave is freely available under the terms of the GNU GPL.
>
> Octave's home on the web: http://www.octave.org
> How to fund new projects: http://www.octave.org/funding.html
> Subscription information: http://www.octave.org/archive.html
> -------------------------------------------------------------
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------