"Salvatore Di Fazio" <[EMAIL PROTECTED]> 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.
_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus

Reply via email to