[Top][All Lists]

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

Re: linker problems

From: Paul Pluzhnikov
Subject: Re: linker problems
Date: Fri, 08 Dec 2006 19:44:02 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux)

Joerg Schaber <> writes:

> I'm trying to compile and link a cpp-file with  the following
> commandline  options:
> g++ -I/libpath/ -lmylib  p.cpp

That command line is incorrect.
Correct command line is:

  g++ p.cpp -L/path/to/mylib -lmylib

To understand why the order matters, read this:

In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.

reply via email to

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