mixed language programming

Ok I have just realised that the search forums thing didn;t work for me and there was a post before asking a similar question. I guess that means no compilers come with the package and you have to use the ones with linux. Will the mixed language features work with g95? is that a supported compiler? I noticed everyone is talking about g77...

>>>>>>>>old message follows

Hi fellow forum writers!

Im a bit out of my domain here as I'm a java guy. I'm tossing up whether to download the Sun Studio 11 program and try it out. It says on the site that it doesn't come with any compilers if you are in the linux version- just an IDE. Is this true? Some people have been saying it does from reading the forums (well not explicitly saying it does but it seemed that way).

Well that is beside the point of my topic. The real reason I am posting is I was wondering if there was a way in Sun Studio 11 to make mixed language programming easy. I have some spectral analysis functions that I have written in fortran 95, that I was hoping to call from a C or C++ program. I have tried just about anything you could imagine with free compilers under linux, but they always seem to not work. Has anyone managed to get it to work? If its possible I reckon ill download it and try else Ill give up and try to re-write my routines in C or C++.

Now before you say "why didn't you write them in C or C++ to start with?" Ill reply and tell you that I learnt Fortran95 first and mucked around with that to do these. Now I need to use C/C++ so I wanted to make a wrapper routine/class.

Look forward to any replies and advice, even web sites you know of, and I hope maybe ill see some of you in Java land! lol (that was a joke...)

Jason.

Message was edited by:

fireman.sparkey

[1843 byte] By [fireman.sparkey] at [2007-11-26 11:14:05]
# 1

Sun Studio compilers for Linux will be available in the next release. You can get a preview (alpha version) of that release now, called Sun Studio Express:

http://developers.sun.com/sunstudio/downloads/express.jsp

The current version is from August. A new version will be available in a few weeks.

Mixed-language programs are supported by Sun compilers and the debugger, bearing in mind that the Linux versions are still alpha quality. The product license does not allow using Studio Express for released products, but you can use it for your own purposes, and for development of products to be rebuilt when the new Sun Studio is released next year.

You might also consider changing to Solaris. Solaris is also free, and works on a wide variety of x86 and amd64 systems. You can then use the world-class Sun Studio compilers and tools for production code now.

clamage45 at 2007-7-7 3:28:42 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2

thanks for your prompt reply clamage45, I shall look into that.

I would really like to use Solaris10, and have even downloaded it and loved the way it works- the only problem was that it doesn't recognise my network card for some reason- everything else is great but no internet... lol hence why I use linux...

Not sure why it does this either. The chipset is supposed to be supported also (Davicom). Ah well...

Cheers!

Jason.

firemansparkey at 2007-7-7 3:28:42 > top of Java-index,Development Tools,Solaris and Linux Development Tools...