Changes between Version 2 and Version 3 of VincentTrial3


Ignore:
Timestamp:
May 12, 2005, 3:57:24 PM (21 years ago)
Author:
garonne
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • VincentTrial3

    v2 v3  
    11= A project creation =
    22
     3For this example, we create a project which contains two packages. One of this package needs another package.
     4
     5We do first the package creation:
    36{{{
    47> mkdir tmp
     
    1114> cmt create B v1
    1215...
     16}}}
    1317
     18The codes for A and B is tha same than in our previous example, so:
     19{{{
     20> more A/v1/src/A.h
     21#include <iostream>
     22
     23using namespace std;
     24
     25class A
     26{
     27    public:
     28        A() {}
     29        ~A()  {}
     30        void print ();
     31};
     32> more A/v1/src/A.cxx
     33#include "A.h"
     34
     35void A::print ()
     36{
     37        cout<<"A"<<endl;
     38}
     39> more B/v1/src/B.h
     40#include <iostream>
     41
     42using namespace std;
     43
     44class B
     45{
     46    public:
     47        B() {}
     48        ~B()  {}
     49        void print ();
     50};
     51> more B/v1/src/B.cxx
     52include "B.h"
     53
     54void B::print ()
     55{
     56        cout<<"B"<<endl;
     57}
     58>
     59> more B/v1/src/main.cxx
     60#include "A.h"
     61#include "B.h"
     62int main()
     63{
     64    A a;
     65    B b;
     66   
     67    a.print ();
     68    b.print ();
     69
     70    return 0;
     71}
     72}}}
     73
     74{{{
    1475> cd B/v1/cmt
    1576> cmt broadcast make