Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://rtm-cs.sinp.msu.ru/manual/mico/doc/node51.html
Дата изменения: Mon Jun 7 21:54:58 1999 Дата индексирования: Mon Oct 1 21:22:25 2012 Кодировка: |
Let us consider building a simple MICO-aplication that consists of two
files: account.idl
and main.cc
. Here is how to build
account
:
idl account.idl
mico-c++ -I. -c account.cc -o account.o
mico-c++ -I. -c main.cc -o main.o
mico-ld account.o main.o -o account -lmico2.2.7
As a second example let us consider building a dynamically loadable module
and a client program that loads the module. We have three source files
now: account.idl
, client.cc
, and module.cc
:
idl account.idl
mico-shc++ -I. -c account.cc -o account.o
mico-shc++ -I. -c module.cc -o module.o
mico-shld -o module module.o account.o -lmico2.2.7
mico-c++ -I. -c client.cc -o client.o
mico-ld account.o client.o -o client -lmico2.2.7
Note that
account.o
must be linked both into the module and the client but
is compiled only once using mico-shc++. One would expect that
account.cc had to be compiled twice: once with mico-c++
for use in the client and once with mico-shc++ for use in the
module. The rule is that using mico-shc++ where mico-c++
should be used does not harm, but not the other way around.