From help-octave-request at bevo dot che dot wisc dot edu Tue Jan 13 21:55:33 2004 Subject: Re: Mkoctfile, need dynamic linking even for compiling a .cc file? From: Paul Kienzle To: "Henry F. Mollet" Cc: Octave_post Date: Tue, 13 Jan 2004 22:52:23 -0500 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 pkienzle at users dot sf dot net 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 > 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 -------------------------------------------------------------