Re: Compiling programs under Solaris

Brent Eagles <[email protected]> Wed, 23 Jul 2003 10:42:52 -0230
Newsgroups gmane.comp.lib.jtc
Organization Object Oriented Concepts, Inc. An IONA Company
Message-ID <[email protected]>
Hi,

On Wed, Jul 23, 2003 at 02:30:13PM +0400, [email protected] wrote:
>    Dear everybody,
> 
>    I just downloaded JThreads and managed to compile the libraries under
>    Solaris 8 using CC Workshop6.
> 
>    My problem now is I want to include threads in my application ,  what are
>    the command line parameters for the compilation ( how to include libraries
>    and allow multithreading)
> 
>    I am not very aware of make files coz I'm originally a Java programmer and
>    used to do C++ on Windows.
> 
>    Can you shed some light on this.
> 
>    Thx inadvance

Without specific information about how you are building your project, I
cannot give you precise instructions.  This shouldn't be necesarry
anyways, since its pretty easy ;)

To get compilation to work, you need to add the include file directory
to your compilation command line.  Most compilers have an '-I' option
for this.  For example, if you installed JThreads/C++ in
'/opt/JThreads/' you would add '-I/opt/JThreads/include'.

To get linking to work, you indicate the location of the JThreads/C++
library to the linker and the name of the library.  For some UNIX
platforms, you indicate the location  of the libraries using the '-L'
option and the libraries with '-l'.  For example, if you installed
JThreads/C++ as above, you would add '-L/opt/JThreads/lib -ljtc' to your
linker command line.

For development tool specific details, see the appropriate
documentation.  For examples of working command lines, just build the
demos and test suite and examine the commands used to build the
executables.

Best regards,

Brent

-- 
Brent Eagles
Principal Engineer - IONA | Making Software Work Together TM 
Email: mailto:[email protected]
Phone: (709) 738-3725 x18
WWW: http://www.iona.com/
_______________________________________________
JTC-Users Mailing List - [email protected]
http://www.orbacus.com/mailman/listinfo/jtc-users
Visit our support FAQ before you send a message.
http://www.orbacus.com/faq/support.html