Changed link from markdown to rst

Added labels for the links to point to
This commit is contained in:
Denton Liu 2016-05-18 11:18:39 -04:00
parent c851cd0481
commit d29b9b986e
3 changed files with 6 additions and 4 deletions

View File

@ -891,8 +891,8 @@ custom types without the overhead of external function calls:
As the compiler cannot know where the library will be As the compiler cannot know where the library will be
deployed at, these addresses have to be filled into the deployed at, these addresses have to be filled into the
final bytecode by a linker (see [Using the Commandline final bytecode by a linker
Compiler](#using-the-commandline-compiler) on how to use the (see :ref:`commandline-compiler`) on how to use the
commandline compiler for linking). If the addresses are not commandline compiler for linking). If the addresses are not
given as arguments to the compiler, the compiled hex code given as arguments to the compiler, the compiled hex code
will contain placeholders of the form `__Set______` (where will contain placeholders of the form `__Set______` (where

View File

@ -2,7 +2,7 @@
Frequently Asked Questions Frequently Asked Questions
########################### ###########################
This list was originally compiled by [fivedogit](mailto:fivedogit@gmail.com). This list was originally compiled by `fivedogit <mailto:fivedogit@gmail.com>`_.
*************** ***************

View File

@ -97,6 +97,8 @@ even though the instructions contained a jump in the beginning.
.. index:: ! commandline compiler, compiler;commandline, ! solc, ! linker .. index:: ! commandline compiler, compiler;commandline, ! solc, ! linker
.. _commandline-compiler:
****************************** ******************************
Using the Commandline Compiler Using the Commandline Compiler
****************************** ******************************
@ -119,7 +121,7 @@ files reside, so things like `import "/etc/passwd";` only work if you add `=/` a
If there are multiple matches due to remappings, the one with the longest common prefix is selected. If there are multiple matches due to remappings, the one with the longest common prefix is selected.
If your contracts use [libraries](#libraries), you will notice that the bytecode contains substrings of the form `__LibraryName______`. You can use `solc` as a linker meaning that it will insert the library addresses for you at those points: If your contracts use :ref:`libraries <libraries>`, you will notice that the bytecode contains substrings of the form `__LibraryName______`. You can use `solc` as a linker meaning that it will insert the library addresses for you at those points:
Either add `--libraries "Math:0x12345678901234567890 Heap:0xabcdef0123456"` to your command to provide an address for each library or store the string in a file (one library per line) and run `solc` using `--libraries fileName`. Either add `--libraries "Math:0x12345678901234567890 Heap:0xabcdef0123456"` to your command to provide an address for each library or store the string in a file (one library per line) and run `solc` using `--libraries fileName`.