getting_started.dox
changeset 19 9196fcd0d4d6
parent 18 a291609dad52
child 20 3ffc47b666b1
equal deleted inserted replaced
8:13d706814502 9:ac6fa0e89bd9
    19 namespace lemon {
    19 namespace lemon {
    20 /**
    20 /**
    21 [PAGE]hello_lemon[PAGE] Compile Your First Code
    21 [PAGE]hello_lemon[PAGE] Compile Your First Code
    22 
    22 
    23 First of all you have to install LEMON on your system (see
    23 First of all you have to install LEMON on your system (see
    24 \ref install for instructions).
    24 <a href="http://lemon.cs.elte.hu/trac/lemon/wiki/InstallGuide"><b>our
       
    25 web page</b></a> for instructions).
    25 After that you can paste the following code segment into a file
    26 After that you can paste the following code segment into a file
    26 <tt>hello_lemon.cc</tt> to have a first working program that uses LEMON.
    27 <tt>hello_lemon.cc</tt> to have a first working program that uses LEMON.
    27 
    28 
    28 \dontinclude hello_lemon.cc
    29 \dontinclude hello_lemon.cc
    29 \skip #include
    30 \skip #include
    39 then it is very easy to compile this program with the
    40 then it is very easy to compile this program with the
    40 following command (the argument <tt>-lemon</tt> tells the compiler
    41 following command (the argument <tt>-lemon</tt> tells the compiler
    41 that we are using the installed LEMON).
    42 that we are using the installed LEMON).
    42 
    43 
    43 \verbatim
    44 \verbatim
    44 g++ -lemon hello_lemon.cc -o hello_lemon
    45 g++ -lemon -o hello_lemon hello_lemon.cc
    45 \endverbatim
    46 \endverbatim
    46 
    47 
    47 As a result you will get the exacutable \c hello_lemon in the current
    48 As a result you will get the exacutable \c hello_lemon in the current
    48 directory, which you can run by the following command.
    49 directory, which you can run by the following command.
    49 
    50 
    54 If LEMON is installed <b>user-local</b> into a directory
    55 If LEMON is installed <b>user-local</b> into a directory
    55 (e.g. <tt>~/lemon</tt>), then compiling the code is a bit more difficult.
    56 (e.g. <tt>~/lemon</tt>), then compiling the code is a bit more difficult.
    56 You have to issue a command like this.
    57 You have to issue a command like this.
    57 
    58 
    58 \verbatim
    59 \verbatim
    59 g++ -lemon -I ~/lemon/include -L ~/lemon/lib hello_lemon.cc -o hello_lemon
    60 g++ -lemon -I ~/lemon/include -L ~/lemon/lib -o hello_lemon hello_lemon.cc
    60 \endverbatim
    61 \endverbatim
    61 
    62 
    62 If everything has gone well, then our program prints out the followings.
    63 If everything has gone well, then our program prints out the followings.
    63 
    64 
    64 \verbatim
    65 \verbatim