Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Issues in building a shared library

Reply
Thread Tools

Issues in building a shared library

 
 
Arun
Guest
Posts: n/a
 
      01-09-2012
Hello,
I am trying to build a shared library called "libjxx.so" using Visual
studio2008 V9.0. The module contains both C & fortran routines. I am
making the C-source as start up project and linking the F-source
against it. I am also linking couple of other libraries called
libm7.lib & libm8.lib. I am getting the following errors concerning
undefined references.

libjxx_F.lib(jmxx_cmd.obj) : error LNK2019: unresolved external symbol
half_initialise_ referenced in function jm45_init_
libjxx_F.lib(jmxx_cmd.obj) : error LNK2019: unresolved external symbol
half_get_error_msg_ referenced in function jm45_init_
libjxx_F.lib(jmxx_read.obj) : error LNK2001: unresolved external
symbol half_get_error_msg_
libjxx_F.lib(jmxx_write.obj) : error LNK2001: unresolved external
symbol half_get_error_msg_

These symbols are basically present in libm7.lib. I am sure i am
linking this library correctly with paths are in place in the
"Additional library directories" section. Also i am inputting the
additional directories in correct linking order ie., after the
concerned module. My suspicion is that i am linking a ".lib" which is
nothing but a static library to form a final shared library (.so).
Should libm7 be compiled as a shared module and then linked against
the sources of libjxx? I am not pretty sure on this.

Any ideas or suggestions in this regard would be highly appreciated.
Thanks in advance,
Arun
 
Reply With Quote
 
 
 
 
Noob
Guest
Posts: n/a
 
      01-09-2012
Arun wrote:

> I am trying to build a shared library called "libjxx.so" using Visual
> studio2008 V9.0. The module contains both C & fortran routines.


You will get better answers in a Visual Studio news group.
(the microsoft.public.vc.* hierarchy perhaps)
 
Reply With Quote
 
 
 
 
ArifulHossain tuhin
Guest
Posts: n/a
 
      01-09-2012
there is a microsoft newsgroup? where?
 
Reply With Quote
 
Arun
Guest
Posts: n/a
 
      01-10-2012
On Jan 9, 7:19*pm, Noob <r...@127.0.0.1> wrote:
> Arun wrote:
> > I am trying to build a shared library called "libjxx.so" using Visual
> > studio2008 V9.0. The module contains both C & fortran routines.

>
> You will get better answers in a Visual Studio news group.
> (the microsoft.public.vc.* hierarchy perhaps)


Thanks mate.
 
Reply With Quote
 
Robert Miles
Guest
Posts: n/a
 
      02-12-2012
On 1/9/2012 8:19 AM, ArifulHossain tuhin wrote:
> there is a microsoft newsgroup? where?


Microsoft has shut down their server for the
microsoft.public.* hierarchy, so what you can
find in that hierarchy now is mostly spam in
many of the newsgroups. It may still be worth
checking if that applies to whatever newsgroup
you're interested in, though.
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
global variable is shared in shared library ankugoe7@gmail.com C Programming 1 07-15-2008 04:26 PM
Build libperl.so shared library from static library or source? DJ Stunks Perl Misc 0 02-10-2007 04:16 AM
Shared Public Variables and Shared Methods Joe Fallon ASP .Net 3 07-16-2004 07:11 AM
Cannot refer to an instance member of a class from within a shared method or shared member initializer without an explicit instance of the class. DJ Dev ASP .Net 3 02-08-2004 04:19 PM
AIX + GCC 2.95.3 - Python (2.1 or 2.2) - building the shared library(.so) for python - HOW TO?!? hab Python 2 07-07-2003 04:35 PM



Advertisments