mkoctfile and 64 bit

Rishi Amrit rishiamrit at gmail.com
Fri Feb 29 17:52:27 CST 2008


Since in the first email itself you mentioned about using octave 2.1 and
octave 2.9. I wonder which one is the default. I know one thing for sure
that when you compile a .cc file with mkoctfile, it will run in only that
version of octave which you used the mkoctfile. So if you used
mkoctfile 2.9... it will run in octave
2.9 only ! .So make sure your mkoctfile and octave versions are same.

Rishi

On Fri, Feb 29, 2008 at 12:38 PM, Przemek Klosowski <
przemek at jazz.ncnr.nist.gov> wrote:

>   I have just installed the 64-bit version of Ubuntu 7.10 on a PC with an
>   Intel Q6660 CPU. Currently, I am not able to use
>   functions compiled with mkoctfile. Although the compilation with
>
> Somehow the mkoct file must be using the 32-bit compiler, generating
> 32-bit objects, which can't be linked with a 64-bit executable. You
> must either use 32-bit octave, or recompile your .oct files using the
> 64-bit compiler.  which apparently isn't the default on your system
> even though it should be on x86_64 Linux.  On my system (x86_64 fedora),
> I get these results:
>
> gcc -v
>    Using built-in specs.
>    Target: x86_64-redhat-linux
>
> mkoctfile oregonator.cc
> file oregonator.oct
>    oregonator.oct: ELF 64-bit LSB shared object, AMD x86-64, version 1
> (SYSV), not stripped
>
> What do you get on yours?
>
> _______________________________________________
> Help-octave mailing list
> Help-octave at octave.org
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
>



-- 
______________________________
Rishi Amrit
DCBE, UW-Madison
EH2009, 1415 Engineering Dr.
Madison, WI - 53706
Tel: +1-608-265-8607
Fax: +1-608-265-8794
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.cae.wisc.edu/pipermail/help-octave/attachments/20080229/054c0a78/attachment.html 


More information about the Help-octave mailing list