Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 08-10-2011, 12:12 AM   #1
LQ Newbie
Registered: Aug 2011
Posts: 2

Rep: Reputation: Disabled
data sharing between c++ shared object and Fortran shared object


I am using debian sqeeze 6.0 to develop(migrating windows version) a simulation tool.

In my application i need to use two shared objects, one is c++ shared object compiled with gcc and the other is fortran shared object compiled with gfortran.

C++ shared object is having a data structure defined to match common block in fortran shared object.

Now how to have the fortran shared object having access to c++ shared object data structure.

I need to have one memory location to be updated either by c++ data structure and fortran data structure when both are loaded into one application.

Thanks for any suggetion
Old 08-10-2011, 04:31 PM   #2
Senior Member
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,621

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I would check your text books, start paying attention in class and stop asking folks to do your home work for you.
0 members found this post helpful.
Old 08-19-2011, 02:22 AM   #3
LQ Newbie
Registered: Aug 2011
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks for suggestion.Thanks also for being so encouraging to use forum.

As we are new to linux, trying the similar way how we did in windows but are not sucessful. As could not found a way, we have written to forum for any help.

Our problem is resolved. We are building c++ first and and linking to Fortran shared object initially but when we do reverese, fortran block is accessing datastructure in c++ shared object.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
error while loading shared libraries: cannot open shared object file mahesh1234 Linux - Newbie 2 10-22-2013 11:06 PM
honeyd: error while loading shared libraries: libdnet.1: cannot open shared object fi secbuddy Linux - Software 2 12-24-2011 02:01 PM
gxine: error while loading shared libraries: cannot open shared object.. khronosschoty Slackware 10 11-10-2008 07:33 PM
error while loading shared libraries: cannot open shared object file PaulyWally Debian 2 10-18-2008 05:59 PM
error while loading shared libraries: cannot open shared object file coolrock Slackware 6 01-17-2007 05:10 PM

All times are GMT -5. The time now is 04:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration