[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mkoctfile, need dynamic linking even for compiling a .cc file?
From: |
Joe Koski |
Subject: |
Re: Mkoctfile, need dynamic linking even for compiling a .cc file? |
Date: |
Tue, 13 Jan 2004 21:10:01 -0700 |
User-agent: |
Microsoft-Entourage/10.1.1.2418 |
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
-------------------------------------------------------------