« Return to Thread: Trying to embed gnu.xml.dom.DomDocumentBuilderFactory

Re: Trying to embed gnu.xml.dom.DomDocumentBuilderFactory

by David Daney :: Rate this Message:

Reply to Author | View in Thread

Mohsen Saboorian wrote:
>> http://gcc.gnu.org/wiki/Statically%20linking%20libgcj
>
> My GCC version is 4.1.2 (2006-9-28 prerelease, Ubuntu
> 4.1.1.14ubuntu7), not 4.2 but still I can use -static-libgcj option.
>
You should look at the documentation that comes with your compiler.  
IIRC Red Hat and Debian are using a hybrid mash-up of code from several
different versions.

If you were using a straight FSF release the -static-libgcj option is
not available until 4.2.  If you have the -static-libgcj option
available, it is far preferable to use it rather than manually
specifying a large string of libraries.

As a side note, I am not sure why you want to statically link.  Usually
it only makes sense for small embedded environments.

David Daney

 « Return to Thread: Trying to embed gnu.xml.dom.DomDocumentBuilderFactory