Jun 4, 2010

Building Distributed Programs Using GCC

In the case of distributed computing, a program is build (into a binary) and distributed on multiple computers for running. It is often that we do not want to install libraries depended by our program on every working computers. Instead, we can instruct GCC to link static libraries by setting the environment variable:
LDFLAGS=-static -static-libgcc

I have tried this method under Cygwin and Ubuntu Linux. However, if I do this under Darwin (Mac OS X 10.6 Snow Leopard), the linker complains that
ld: library not found for -lcrt0.o
In this Technical Q&A, Apple explains that they want to make Mac OS X upgrading easier, so they do not provide crt0.o to encourage dynamic linking.

1 comment:

CIIT Noida said...

The most popular destination for Hadoop Training in

in NOIDA is CIITNOIDA in Sector-2

You can Master the various components of Hadoop ecosystem like Hadoop, MapReduce Architecture, Pig, Hive, HBase, Sqoop, Flume by their Senior Experts

from Industry with good Industrial experience of handling big projects.

You can even Get hands-on practice with live projects and ORACLE certification at CIITNOIDA.

This Big Data Hadoop Training in Noida is best

suited for CS & IT Engineering Students, professionals looking to gain expertise in Big Data and work for Fortune 500 Software Companies.

Hadoop Training in Noida
Big Data Hadoop Training in Noida