Changeset 9:a48bf0d3a790 in lemon-tutorial for getting_started.dox
- Timestamp:
- 10/28/08 18:54:30 (16 years ago)
- Branch:
- default
- Children:
- 10:55e2f7712e87, 11:0a51fe554d01
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
getting_started.dox
r7 r9 18 18 19 19 /** 20 \page getting_started Getting Started 21 22 \section hello_lemon Compile Your First Code 20 \page hello_lemon Compile Your First Code 23 21 24 22 If you have installed LEMON on your system you can paste the following … … 31 29 32 30 First let us briefly explain how this example program works. 33 (The used notions will be discussed in detail in the following chapter.)31 (The used notions will be discussed in detail in the following sections.) 34 32 35 33 After some convenience typedefs we create a directed graph (\e digraph) … … 53 51 Finally we iterate through all arcs again and print their lengths. 54 52 55 Now let 's compile this simple example program.53 Now let us compile this simple example program. 56 54 57 \s ubsection hello_lemon_system If LEMON is Installed System-Wide55 \section hello_lemon_system If LEMON is Installed System-Wide 58 56 59 If your installation of LEMON into directory \c /usr/local was60 successful,then it is very easy to compile this program with the57 If LEMON is installed system-wide (into directory \c /usr/local), 58 then it is very easy to compile this program with the 61 59 following command (the argument <tt>-lemon</tt> tells the compiler 62 60 that we are using the installed LEMON): 63 61 64 62 \verbatim 65 g++ hello_lemon.cc -o hello_lemon -lemon63 g++ -lemon hello_lemon.cc -o hello_lemon 66 64 \endverbatim 67 65 … … 73 71 \endverbatim 74 72 75 \s ubsection hello_lemon_user If LEMON is Installed User-Local73 \section hello_lemon_user If LEMON is Installed User-Local 76 74 77 75 Compiling the code is a bit more difficult if you installed LEMON … … 81 79 82 80 \verbatim 83 g++ - I ~/lemon hello_lemon.cc -o hello_lemon -lemon -L ~/lemon/lemon/.libs81 g++ -lemon -I ~/lemon -L ~/lemon/lemon/.libs hello_lemon.cc -o hello_lemon 84 82 \endverbatim 85 86 \subsubsection hello_lemon_pkg_config Use pkg-config87 88 \todo Write this sub-subsection (\ref hello_lemon_pkg_config).89 83 90 84 If everything has gone well, then our program prints out the followings.
Note: See TracChangeset
for help on using the changeset viewer.