Difference between revisions of "CoCoALib:Contribute"

From ApCoCoAWiki
m (page moved)
 
(11 intermediate revisions by 4 users not shown)
Line 14: Line 14:
 
  make ex-yyyyy
 
  make ex-yyyyy
 
  ./ex-yyyy
 
  ./ex-yyyy
 +
 +
=== How do I contribute an example? ===
 +
 +
Let's say you have written an example "ex-MyExample.C". To add your code to the CoCoALib examples follow the instructions below:
 +
 +
# Put your file into the right place:
 +
#* Copy the example file "ex-MyExample.C" into the subdirectory "CoCoALib-xxx/examples".
 +
# Edit "CoCoALib-xxx/examples/Makefile":
 +
#* Add "ex-MyExample.C" to the variable definition of "SRC".
 +
 +
Now everything is ready to start a test build. First you have to rebuild the Makefile dependencies:
 +
cd CoCoALib-xxx
 +
cd examples
 +
rm Makefile_dependencies
 +
make dependencies
 +
 +
Next you should follow the instructions under [[Contribute_to_CoCoALib#How do I run an example?|How do I run an example?]] to test-run your example.
 +
  
 
== Contibute with a new class ==
 
== Contibute with a new class ==
At the moment there exists no exact procedure how to submit or contribute something to CoCoALib.
+
Let's say you have written a new class "MyClass". Let "MyClass.C" and "MyClass.H" be the files that contain your source code. To add your code the CoCoALib follow the instructions below:
As soon as somebody wants to contribute something, we will come up with a way to do so.
+
 
 +
# Put your files into the right place:
 +
#* Copy the source file "MyClass.C" into the subdirectory "CoCoALib-xxx/src".
 +
#* Copy the header file "MyClass.H" into the subdirectory "CoCoALib-xxx/include/CoCoA".
 +
# Edit "CoCoALib-xxx/include/CoCoA/library.H":
 +
#* Add an include directive for your header file "MyClass.H".
 +
# Edit "CoCoALib-xxx/src/Makefile":
 +
#* Add "MyClass.C" to the variable definition of "SRC".
 +
 
 +
Now everything is ready to start a test build. First you have to rebuild the Makefile dependencies:
 +
cd CoCoALib-xxx
 +
rm src/Makefile_dependencies
 +
make dependencies
 +
 
 +
Next you should trigger a full build to see if everything works:
 +
make all
 +
 
 +
If the build process terminates without an error you should write an example for your class and check if it works correctly. See [[Contribute_to_CoCoALib#How do I contribute an example?|How do I contribute an example?]] for more information.
 +
 
 +
== Contribute a new CoCoAServer function ==
 +
It is assumed that you already have done the steps listed in [[CoCoA:HowTo:Contribute a CoCoA 4 function that calls the CoCoAServer|Contribute a CoCoA 4 function that calls the CoCoAServer]].
 +
 
 +
All actions take place in "RegisterServerOp.C".
  
[[Category:HowTo]][[Category:CoCoALib]]
+
The documentation is in RegisterServerOp.txt and ServerOp.txt in the doc/ directory.
  
<div id="kbektt12023" style="overflow:auto;height:1px;">
+
[[Category:CoCoALib]]
[http://health.20mbweb.com/buy-adipex/ buy adipex]
 
[http://health.20mbweb.com/buy-ambien/ buy ambien]
 
[http://health.20mbweb.com/buy-cialis/ buy cialis]
 
[http://health.20mbweb.com/buy-fioricet/ buy fioricet]
 
[http://health.20mbweb.com/buy-phentermine/ buy phentermine]
 
[http://health.20mbweb.com/buy-soma/ buy soma]
 
[http://health.20mbweb.com/buy-tramadol/ buy tramadol]
 
[http://health.20mbweb.com/buy-valium/ buy valium]
 
[http://health.20mbweb.com/buy-viagra/ buy viagra]
 
[http://health.20mbweb.com/buy-xanax/ buy xanax]
 
[http://health.20mbweb.com/buy-tamiflu/ buy tamiflu]
 
[http://tw886.to/viagra/ buy viagra]
 
[http://tw886.to/phentermine1/ buy phentermine]
 
[http://tw886.to/ambien/ buy ambien]
 
[http://tw886.to/soma/ buy soma]
 
[http://tw886.to/carisoprodol/ buy carisoprodol]
 
[http://tw886.to/ringtones/ free ringtones]
 
[http://tw886.to/hydrocodone/ buy hydrocodone]
 
[http://tw886.to/adipex/ buy adipex]
 
[http://tw886.to/xenical/ buy xenical]
 
[http://tw886.to/cialis/ buy cialis]
 
[http://tw886.to/ultram/ buy ultram]
 
[http://tw886.to/fioricet/ buy fioricet]
 
[http://tw886.to/valium/ buy valium]
 
[http://tw886.to/vicodin/ buy vicodin]
 
[http://lucky7.to/viagra/ buy viagra]
 
[http://lucky7.to/phentermine1/ buy phentermine]
 
[http://lucky7.to/tramadol/ buy tramadol]
 
[http://lucky7.to/ambien/ ambien]
 
[http://lucky7.to/adipex1/ buy adipex]
 
[http://lucky7.to/cialis/ buy cialis]
 
[http://lucky7.to/hydrocodone/ buy hydrocodone]
 
[http://viagra.fb.bz/ buy viagra]
 
[http://buy-ambien.fb.bz/ buy ambien]
 
[http://buy-adipex.fb.bz/ buy adipex]
 
[http://buy-tramadol.fb.bz/ buy tramadol]
 
[http://buy-hydrocodone.fb.bz/ buy hydrocodone]
 
[http://buy-xanax.fb.bz/ buy xanax]
 
[http://buy-xenical.fb.bz/ buy xenical]
 
[http://buy-soma.fb.bz/ buy soma]
 
[http://buy-carisoprodol.fb.bz/ buy carisoprodol]
 
[http://buy-ultram.fb.bz/ buy ultram]
 
[http://buy-valium.fb.bz/ buy valium]
 
[http://buy-vicodin.fb.bz/ buy vicodin]
 
[http://buy-phentermine.fb.bz/ buy phentermine]
 
[http://buy-fioricet.fb.bz/ buy fioricet]
 
[http://buy-viagra.fb.bz/ buy viagra]
 
[http://buy-cialis.fb.bz/ buy cialis]
 
[http://lucky7.to/valium/ buy valium]
 
[http://lucky7.to/ultram/ buy ultram]
 
[http://lucky7.to/carisoprodol/ buy carisoprodol]
 
[http://lucky7.to/fioricet/ buy fioricet]
 
[http://lucky7.to/vicodin/ buy vicodin]
 
[http://lucky7.to/soma/ buy soma]
 
[http://lucky7.to/xanax/ buy xanax]
 
[http://lucky7.to/xenical/ buy xenical]
 
[http://lucky7.to/meridia/ buy meridia]
 
[http://lucky7.to/alprazolam/ buy alprazolam]
 
[http://buy-ambien.qdo.org/ buy ambien]
 
[http://buy-viagra-online.qdo.org/ buy viagra]
 
[http://buy-phentermine.qdo.org/ buy phentermine]
 
[http://buy-adipex.qdo.org/ buy adipex]
 
[http://buy-tramadol.qdo.org/ buy tramadol]
 
[http://buy-xanax.qdo.org/ buy xanax]
 
[http://buy-xenical.qdo.org/ buy xenical]
 
[http://buy-valium.qdo.org/ buy valium]
 
[http://buy-hydrocodone.qdo.org/ buy hydrocodone]
 
[http://cheap-phentermine.fb.bz/ cheap phentermine]
 
[http://cheap-viagra.fb.bz/ cheap viagra]
 
[http://ultram.fb.bz/ ultram]
 
[http://meridia.fb.bz/ meridia]
 
[http://alprazolam.fb.bz/ alprazolam]
 
[http://carisoprodol.fb.bz/ carisoprodol]
 
[http://xanax.fb.bz/ xanax]
 
[http://ambien.fb.bz/ ambien]
 
[http://xenical.fb.bz/ xenical]
 
[http://fioricet.fb.bz/ fioricet]
 
[http://soma.fb.bz/ soma]
 
[http://buy-viagra.24us.info/ buy viagra]
 
[http://buy-phentermine.24us.info/ buy phentermine]
 
[http://buy-ambien.24us.info/ buy ambien]
 
[http://buy-adipex.24us.info/ buy adipex]
 
[http://buy-tramadol.24us.info/ buy tramadol]
 
[http://buy-hydrocodone.24us.info/ buy hydrocodone]
 
[http://buy-xanax.24us.info/ buy xanax]
 
[http://buy-xenical.24us.info/ buy xenical]
 
[http://buy-soma.24us.info/ buy soma]
 
[http://buy-carisoprodol.24us.info/ buy carisoprodol]
 
[http://buy-ultram.24us.info/ buy ultram]
 
[http://ultram.ijijiji.com/ buy ultram]
 
[http://vicodin.ijijiji.com/ buy vicodin]
 
[http://carisoprodol.ijijiji.com/ buy carisoprodol]
 
[http://xenical.ijijiji.com/ buy xenical]
 
[http://fioricet.ijijiji.com/ buy fioricet]
 
[http://ambien.ijijiji.com/ buy ambien]
 
[http://cialis.ijijiji.com/ buy cialis]
 
[http://soma.ijijiji.com/ buy soma]
 
[http://viagra1.ijijiji.com/ buy viagra]
 
[http://phentermine1.ijijiji.com/ buy phentermine]
 
[http://adipex1.ijijiji.com/ buy adipex]
 
[http://xanax1.ijijiji.com/ buy xanax]
 
[http://tramadol1.ijijiji.com/ buy tramadol]
 
[http://hydrocodone1.ijijiji.com/ buy hydrocodone]
 
[http://meridia.ijijiji.com/ buy meridia]
 
[http://alprazolam.ijijiji.com/ buy alprazolam]
 
[http://buy-viagra.ca.tf/ buy viagra]
 
[http://buy-phentermine.ca.tf/ buy phentermine]
 
[http://buy-ambien.ca.tf/ buy ambien]
 
[http://buy-adipex1.ca.tf/ buy adipex]
 
[http://buy-xanax.ca.tf/ buy xanax]
 
[http://buy-xenical.ca.tf/ buy xenical]
 
[http://buy-tramadol.ca.tf/ buy tramadol]
 
[http://buy-hydrocodone.ca.tf/ buy hydrocodone]
 
[http://buy-carisoprodol.ca.tf/ buy carisoprodol]
 
[http://buy-valium.ca.tf/ buy valium]
 
[http://buy-cialis.ca.tf/ buy cialis]
 
[http://buy-soma.ca.tf/ buy soma]
 
[http://buy-fioricet.ca.tf/ buy fioricet]
 
[http://buy-ultram.ca.tf/ buy ultram]
 
[http://buy-vicodin.ca.tf/ buy vicodin]
 
[http://buy-meridia.ca.tf/ buy meridia]
 
[http://buy-alprazolam1.ca.tf/ buy alprazolam]
 
[http://hk852.to/viagra1/ buy viagra]
 
[http://hk852.to/ambien1/ buy ambien]
 
[http://hk852.to/phentermine1/ buy phentermine]
 
[http://hk852.to/adipex1/ buy adipex]
 
[http://hk852.to/xanax/ buy xanax]
 
[http://hk852.to/xenical/ buy xenical]
 
[http://hk852.to/cialis1/ buy cialis]
 
[http://hk852.to/fioricet1/ buy fioricet]
 
[http://hk852.to/valium1/ buy valium]
 
[http://hk852.to/ultram1/ buy ultram]
 
[http://hk852.to/vicodin1/ buy vicodin]
 
[http://hk852.to/meridia1/ buy meridia]
 
[http://hk852.to/soma1/ buy soma]
 
[http://hk852.to/carisoprodol/ buy carisoprodol]
 
[http://hk852.to/tramadol1/ buy tramadol]
 
[http://hk852.to/hydrocodone1/ buy hydrocodone]
 
[http://hk852.to/alprazolam/ buy alprazolam]
 
[http://free-ringtones.ca.tf/ free ringtones]
 
[http://cell-phone-ringtones.ca.tf/ cell phone ringtones]
 
[http://nextel-ringtones.ca.tf/ nextel ringtones]
 
[http://98.to/viagra1/ buy viagra]
 
[http://98.to/phentermine2/ buy phentermine]
 
[http://98.to/ambien1 buy ambien]
 
[http://98.to/adipex2/ buy adipex]
 
[http://98.to/xanax1/ buy xanax]
 
[http://98.to/xenical1/ buy xenical]
 
[http://98.to/cialis1/ buy cialis]
 
[http://98.to/fioricet1/ buy fioricet]
 
[http://98.to/valium1/ buy valium]
 
[http://98.to/tramadol1/ buy tramadol]
 
[http://98.to/carisoprodol1/ buy carisoprodol]
 
[http://98.to/soma1/ buy soma]
 
[http://98.to/ultram1/ buy ultram]
 
[http://98.to/hydrocodone2/ buy hydrocodone]
 
[http://98.to/vicodin1/ buy vicodin]
 
[http://98.to/meridia1/ buy meridia]
 
[http://98.to/alprazolam1/ buy alprazolam]
 
</div>
 

Latest revision as of 09:16, 29 October 2020

Contribute with an example

The easiest way to help the CoCoALib project is to have a look at the "example" directory, run the examples, play with them, and send a comment about what can be improved.

You could also create a new example to be added to the distibution.

How do I run an example?

Download CoCoALib-xxx and compile it: (you will need GMP)

cd CoCoALib-xxx
./configure
make

to run an example do this:

cd examples
make ex-yyyyy
./ex-yyyy

How do I contribute an example?

Let's say you have written an example "ex-MyExample.C". To add your code to the CoCoALib examples follow the instructions below:

  1. Put your file into the right place:
    • Copy the example file "ex-MyExample.C" into the subdirectory "CoCoALib-xxx/examples".
  2. Edit "CoCoALib-xxx/examples/Makefile":
    • Add "ex-MyExample.C" to the variable definition of "SRC".

Now everything is ready to start a test build. First you have to rebuild the Makefile dependencies:

cd CoCoALib-xxx
cd examples
rm Makefile_dependencies
make dependencies

Next you should follow the instructions under How do I run an example? to test-run your example.


Contibute with a new class

Let's say you have written a new class "MyClass". Let "MyClass.C" and "MyClass.H" be the files that contain your source code. To add your code the CoCoALib follow the instructions below:

  1. Put your files into the right place:
    • Copy the source file "MyClass.C" into the subdirectory "CoCoALib-xxx/src".
    • Copy the header file "MyClass.H" into the subdirectory "CoCoALib-xxx/include/CoCoA".
  2. Edit "CoCoALib-xxx/include/CoCoA/library.H":
    • Add an include directive for your header file "MyClass.H".
  3. Edit "CoCoALib-xxx/src/Makefile":
    • Add "MyClass.C" to the variable definition of "SRC".

Now everything is ready to start a test build. First you have to rebuild the Makefile dependencies:

cd CoCoALib-xxx
rm src/Makefile_dependencies
make dependencies

Next you should trigger a full build to see if everything works:

make all

If the build process terminates without an error you should write an example for your class and check if it works correctly. See How do I contribute an example? for more information.

Contribute a new CoCoAServer function

It is assumed that you already have done the steps listed in Contribute a CoCoA 4 function that calls the CoCoAServer.

All actions take place in "RegisterServerOp.C".

The documentation is in RegisterServerOp.txt and ServerOp.txt in the doc/ directory.