Changes between Version 2 and Version 3 of VincentTrial3
- Timestamp:
- May 12, 2005, 3:57:24 PM (21 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
VincentTrial3
v2 v3 1 1 = A project creation = 2 2 3 For this example, we create a project which contains two packages. One of this package needs another package. 4 5 We do first the package creation: 3 6 {{{ 4 7 > mkdir tmp … … 11 14 > cmt create B v1 12 15 ... 16 }}} 13 17 18 The 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 23 using namespace std; 24 25 class A 26 { 27 public: 28 A() {} 29 ~A() {} 30 void print (); 31 }; 32 > more A/v1/src/A.cxx 33 #include "A.h" 34 35 void A::print () 36 { 37 cout<<"A"<<endl; 38 } 39 > more B/v1/src/B.h 40 #include <iostream> 41 42 using namespace std; 43 44 class B 45 { 46 public: 47 B() {} 48 ~B() {} 49 void print (); 50 }; 51 > more B/v1/src/B.cxx 52 include "B.h" 53 54 void B::print () 55 { 56 cout<<"B"<<endl; 57 } 58 > 59 > more B/v1/src/main.cxx 60 #include "A.h" 61 #include "B.h" 62 int main() 63 { 64 A a; 65 B b; 66 67 a.print (); 68 b.print (); 69 70 return 0; 71 } 72 }}} 73 74 {{{ 14 75 > cd B/v1/cmt 15 76 > cmt broadcast make
