Dear All,
When compiling the following simple program: ....... #include <iostream> #include <ql/quantlib.hpp> using namespace std;
int main(int argc, char* argv[]) { cout<<"C++ Program Output"<<endl; return 0; } ....... with the following command: g++ hello.cpp -o hello -I/opt/local/include
I get the following error message: ld: symbol(s) not found When compiling a program with boost there is no problem. Hardware Overview:
Model Name: MacBook Pro Model Identifier: MacBookPro5,5 Processor Name: Intel Core 2 Duo
Processor Speed: 2.53 GHz Number Of Processors: 1 Total Number Of Cores: 2
L2 Cache: 3 MB Memory: 4 GB Can someone help me out?
Thanks in advance, André de Boer ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
It's in /opt/local/lib On 7/24/10 5:19 PM, André de Boer wrote: Dear All, -- Regards, Animesh Saxena (http://quantanalysis.wordpress.com) ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
On Sat, 2010-07-24 at 17:41 +0530, animesh saxena wrote:
> You need to link with this file. libQuantLib.0.dylib > > It's in /opt/local/lib Yes, but it's better practice not to rely on full names. You can just add -lQuantLib to the compiler options and let the linker figure out what library should be used. If /opt/local/lib is not among the folders that the linker checks, you should also add -L/opt/local/lib to the command line. Luigi -- Discontent is the first necessity of progress. -- Thomas A. Edison ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |