Issues in building a shared library

Discussion in 'C Programming' started by Arun, Jan 9, 2012.

  1. Arun

    Arun Guest

    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
    Arun, Jan 9, 2012
    #1
    1. Advertising

  2. Arun

    Noob Guest

    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)
    Noob, Jan 9, 2012
    #2
    1. Advertising

  3. there is a microsoft newsgroup? where?
    ArifulHossain tuhin, Jan 9, 2012
    #3
  4. Arun

    Arun Guest

    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.
    Arun, Jan 10, 2012
    #4
  5. Arun

    Robert Miles Guest

    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.
    Robert Miles, Feb 12, 2012
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. DJ Dev
    Replies:
    3
    Views:
    16,095
    Gandalf
    Feb 8, 2004
  2. Joe Fallon
    Replies:
    3
    Views:
    752
    =?Utf-8?B?Z3V5?=
    Jul 16, 2004
  3. hab
    Replies:
    2
    Views:
    462
    Donn Cave
    Jul 7, 2003
  4. Replies:
    1
    Views:
    1,250
    santosh
    Jul 15, 2008
  5. DJ Stunks
    Replies:
    0
    Views:
    314
    DJ Stunks
    Feb 10, 2007
Loading...

Share This Page