Results 1 to 3 of 3

Thread: How to access a libsofa.a from a C++ program?

  1. #1
    Join Date
    Jan 2006
    Location
    11 N 78 E
    Posts
    110
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How to access a libsofa.a from a C++ program?

    I have created a library libsofa.a from numerous *.o files which were compiled from *.f (Fortran) files using GCC 4.1.

    I would like to use the functions provided by this library in my C++ program.

    Please tell me how I am to do it. Thank you.
    Penguin #395953 using Qt for open-source development on X11 using C++ and
    Python via PyQt

  2. #2
    Join Date
    Jan 2006
    Posts
    109
    Thanks
    2
    Thanked 5 Times in 5 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: How to access a libsofa.a from a C++ program?

    Just link your program with the library, qmake can help, use LIBS. Does this help?

  3. The following user says thank you to dimitri for this useful post:

    jamadagni (19th March 2006)

  4. #3
    Join Date
    Jan 2006
    Location
    11 N 78 E
    Posts
    110
    Thanks
    10
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to access a libsofa.a from a C++ program?

    Quote Originally Posted by dimitri
    Just link your program with the library, qmake can help, use LIBS. Does this help?
    Yep, but if I need to pass the fortran function variables, arrays etc, can I use and pass C variables and they will be properly recognized?
    Penguin #395953 using Qt for open-source development on X11 using C++ and
    Python via PyQt

Similar Threads

  1. Replies: 0
    Last Post: 16th April 2007, 13:18
  2. QPainter and how to access the parent variables.
    By Teuniz in forum Qt Programming
    Replies: 6
    Last Post: 7th March 2007, 15:06
  3. QT MySQL
    By sabeeshcs in forum Newbie
    Replies: 6
    Last Post: 12th January 2007, 05:19

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.