[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linker problem
From: |
Paul Pluzhnikov |
Subject: |
Re: Linker problem |
Date: |
Tue, 27 Dec 2005 20:52:37 -0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux) |
deva.srinivas@gmail.com writes:
> g++ -m32 -O3 -Wall -Wno-deprecated -fPIC -pthread -g $(INCDIR) -o
> <executable file> -L<library directories> -lmylib -lsystemclib1
> -lsystemclib2
>
> mylib is not getting linked.
Yes it is.
> I am getting undefined reference to
> sc_main which is defined in mylib.
It also matters where sc_main is referenced from.
If it is referenced from libsystemc*, then your order of the
libraries is incorrect, or rather, you should probably have some
object files on your link line. Generally, link lines that contain
only libraries and no '-u' arguments are probably wrong.
Further explanations here:
http://webpages.charter.net/ppluzhnikov/linker.html
> Could some one please help me in getting this issue resolved.
You may also wish to read this:
http://www.catb.org/~esr/faqs/smart-questions.html
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
- Linker problem, deva . srinivas, 2005/12/27
- Re: Linker problem,
Paul Pluzhnikov <=