Darryl Gove's blog

Friday Nov 09, 2007

Mixed language development

Sometimes applications contain a mix of languages. For example, part in C and part in Fortran. This can require different libraries to be linked in depending on the support that the language requires. The general rule for mixed language linking is found in the documentation. The rule is link with the C++ compiler if the code contains C++, if not, link with the fortran compiler (obviously if the code is pure C, then link with the C compiler.). An exception to this is making a C library which uses C++ inside, where it is possible to link using the C compiler, specifying appropriate flags.

Comments:

Post a Comment:
Comments are closed for this entry.

Calendar

Search this blog

About

Solaris Application Programming

Book resources

Recent entries

Custom search

Tag cloud

ats bit book c++ cmt communityone compiler cooltools cpu2006 developers dtrace gccfss libraries multithreading openmp opensparc parallelisation parallelization performance performanceanalyzer secondlife solaris solarisapplicationprogramming sparc spot sunstudio t2 ultrasparc ultrasparct2 x86

Links

Webcasts

Articles

Presentations

Navigation

Referers

Feeds