Creating libraries using jcompile
- malai
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 509
- Thank you received: 11
19 years 5 months ago #1832
by malai
Creating libraries using jcompile was created by malai
Hi,
We all know from jBASE4.1 the jBASE programs are compiled using jcompile.
Do any one know how to create library files using jcompile?
Lets say, I have 5 jBASE routines. I need to compile all the jBASE routines and to put them in a iibrary 'libMyLib.so'.
_________________
M A L A I
We all know from jBASE4.1 the jBASE programs are compiled using jcompile.
Do any one know how to create library files using jcompile?
Lets say, I have 5 jBASE routines. I need to compile all the jBASE routines and to put them in a iibrary 'libMyLib.so'.
_________________
M A L A I
Please Log in or Create an account to join the conversation.
- KingArthur
- Offline
- Senior Member
-
Less
More
- Posts: 75
- Thank you received: 1
19 years 5 months ago #1833
by KingArthur
Replied by KingArthur on topic Creating libraries using jcompile
Hi Malai,
In 4.0 the command jbc is used to compile and jBuildSLib is used for creating libraries.
But from 4.1 jcompile is capable of doing both.
follow this
-->jcompile -c SUBROUTINE1.b
-->jcompile -c SUBROUTINE2.b
This will create object files SUBROUTINE1.o and SUBROUTINE2.o
-->jcompile -s libMyLib.so SUBROUTINE1.o SUBROUTINE2.o
This will create library files libMyLib.so and libMyLib.so.el.
If the no of routines are more, there may be some other option to do the same.
Lets find out.
_________________
King Arthur
In 4.0 the command jbc is used to compile and jBuildSLib is used for creating libraries.
But from 4.1 jcompile is capable of doing both.
follow this
-->jcompile -c SUBROUTINE1.b
-->jcompile -c SUBROUTINE2.b
This will create object files SUBROUTINE1.o and SUBROUTINE2.o
-->jcompile -s libMyLib.so SUBROUTINE1.o SUBROUTINE2.o
This will create library files libMyLib.so and libMyLib.so.el.
If the no of routines are more, there may be some other option to do the same.
Lets find out.
_________________
King Arthur
Please Log in or Create an account to join the conversation.
- shankar
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
19 years 5 months ago #1834
by shankar
Replied by shankar on topic Creating libraries using jcompile
Hi,
There's an alternate way for this if the no of routines are more.
here's the solution.
Instead of giving
--> jcompile -s libMyLib.so SUBROUTINE1.o SUBROUTINE2.o
we can give
--> jcompile -s libMyLib.so *.o
regards,
Shankar
There's an alternate way for this if the no of routines are more.
here's the solution.
Instead of giving
--> jcompile -s libMyLib.so SUBROUTINE1.o SUBROUTINE2.o
we can give
--> jcompile -s libMyLib.so *.o
regards,
Shankar
Please Log in or Create an account to join the conversation.
- shankar
- Offline
- New Member
-
Less
More
- Posts: 6
- Thank you received: 0
19 years 4 months ago #1835
by shankar
Replied by shankar on topic Creating libraries using jcompile
hi,
There's a slight correction in the jcompile method, which i've posted previosly.
the command
---> jcompile -s libMyLib.so *.o
will not execute in jbase prompt. but it works perfect in sh prompt.
$ jcompile -s libMyLib.so *.o
works fine.
regards,
Shankar
There's a slight correction in the jcompile method, which i've posted previosly.
the command
---> jcompile -s libMyLib.so *.o
will not execute in jbase prompt. but it works perfect in sh prompt.
$ jcompile -s libMyLib.so *.o
works fine.
regards,
Shankar
Please Log in or Create an account to join the conversation.
Time to create page: 0.035 seconds