Adding the scriptol compiler to the Tools menu Using the scriptol compiler Compatibility |
- Open the Tools menu, then click on "Configure Tools" to open the dialog. - Click on the Add button - Click on Browse and search for the solc.exe scriptol compiler. Fill the fourth fields: Title: Scriptol Program: [scriptol path] solc.exe Working directory: c:\cbuilder\projects (this is just an example) Parameters: -c $EDNAME (this variable is picked up in the popup list)
Create a new file as text (it is created with the txt extension), select the "save as" command in the File menu. Choose the any file option (this prevents the dialog to add an extension), save your source as xxxx.sol in the same directory that the solc.exe program (you can copy it in any directory, along with library and headers provided in the archive). Select Tools and then Scriptol at bottom of the menu. The xxx.sol file will be compiled to xxx.cpp You have then to add the xxx.cpp file to your project.
If the scriptol source requires the libsol library, the library must be compatible with your C++ compiler. A library is furnished for MingW, Borland C++ 5.5 and Visual C++. All the C++ files of your project are compiled with the compiler specified in the global solc.ini configuration file of the specific .cfg configuration file.