Changes between Version 5 and Version 6 of StartModDev


Ignore:
Timestamp:
Nov 29, 2012, 1:54:04 AM (10 years ago)
Author:
Beman Dawes
Comment:

Fill in details of creating the library

Legend:

Unmodified
Added
Removed
Modified
  • StartModDev

    v5 v6  
    3838== Creating the {{{simple}}} library ==
    3939
     40 * With your web browser, sign into your [https://github.com GitHub] account and create a repository named {{{simple}}}. Select the option to automatically create a README file. Copy the URL of the newly created repository to your clipboard.
     41 * From the command line, {{{cd}}} to a directory suitable for experimentation, clone the newly created repository, and create the library's directory structure:
     42{{{
     43git clone git@github.com:Beman/simple.git
     44cd simple
     45mkdir include
     46mkdir test
     47cd include
     48mkdir boost
     49cd boost
     50mkdir simple
     51}}}
     52
     53 * Using a text editor, create a file named twice.hpp in simple/include/boost/simple:
     54{{{
     55#include <string>
     56namespace boost { namespace simple {
     57inline std::string twice(const std::string& s)
     58{
     59  return s + s;
     60}
     61}}
     62}}}
     63
     64 * {{{cd}}} to simple/test and create a file named twice_test.cpp using a text editor:
     65{{{
     66#include <boost/simple/twice.hpp>
     67#include <boost/detail/lightweight_test.hpp>
     68
     69int main()
     70{
     71  BOOST_TEST(boost::simple::twice("foo") == "foofoo");
     72  return ::boost::report_errors();
     73}
     74}}}
     75
     76 * Also in simple/test, create a file named Jamfile.v2 using a text editor. Be careful to leave spaces between syntax elements as they are required:
     77{{{
     78test-suite simple :
     79    [ run twice_test.cpp ]
     80    ;
     81}}}
     82
     83 
     84
     85