help-octave
[Top][All Lists]
Advanced

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

Re: Octave/C++


From: Geraint Paul Bevan
Subject: Re: Octave/C++
Date: Fri, 22 Jul 2005 15:00:44 +0100
User-agent: Debian Thunderbird 1.0.2 (X11/20050331)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mike Morley wrote:

> $mkoctfile Bot.cpp -llibrobot.a
> /usr/bin/ld: cannot find -llibrobot.a
> collect2: ld returned 1 exit status
> $
> 
> $mkoctfile Bot.cpp -Llibrobot.a $ln -s Bot.oct BotMake.oct $octave -q
> 1>BotMake() octave: symbol lookup error: /home/mjm80/BotMake.oct:
> undefined symbol: _ZN10robot_linkC1Ev $
> 
> 

The -l option adds the lib*.a to the file name so to include the library
librobot.a just use the option -lrobot (preceded by -L. if necessary to
tell it which directory to search).

$ mkoctfile Bot.cpp -o BotMake.oct -L. -lrobot

- --
Geraint Bevan
http://www.mech.gla.ac.uk/~gbevan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iEYEARECAAYFAkLg/AwACgkQcXV3N50QmNO/EQCff1QO5OBML12I85CzYLj29+Ll
y1sAmQGX9ZONwCYmGMkFH0mtEPvlu8N0
=5Oyu
-----END PGP SIGNATURE-----



-------------------------------------------------------------
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
-------------------------------------------------------------



reply via email to

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