[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Static link trouble
From: |
Paul Pluzhnikov |
Subject: |
Re: Static link trouble |
Date: |
Mon, 11 Sep 2006 06:48:00 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Jumbo Shrimp, linux) |
"Salvatore Di Fazio" <salvatore.difazio@gmail.com> writes:
> I would like to build a version of my software with all the libraries
> linked in static mode.
Extremely bad idea(TM) [unless your taget is some embedded system].
> I tried with the following command:
> g++ -static -L/some/path/for/the/libstdc++.a -LACE
That command line is completely bogus.
You are telling g++ to look for libraries in the following
directories:
/some/path/for/the/libstdc++.a/
./ACE/
and then don't supply any libraries at all.
In addition, you didn't supply any object files for 'g++' to link.
> but I recevied the following errors:
>
> undefined reference to 'std::basic_string ...' ....
> undefined reference to 'operator new' ....
Really?
Which version of g++, and on what OS?
On Linux, I get:
$ g++ -static -L/some/path/for/the/libstdc++.a -LACE
g++: no input files
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
- Static link trouble, Salvatore Di Fazio, 2006/09/11
- Re: Static link trouble,
Paul Pluzhnikov <=