×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Library files?

Library files?

Library files?

(OP)
I am currently working on a translation of a fortran program to matlab. I have all the source code, but apart from that subroutines and functions from closed libraries are used. Now, those libraries are in a folder right besides the source code itself, but whenever I have tried to compile the entire thing or any piece of code that calls a subroutine from these libraries, I get an error message that the subroutine cannot be found. I have tried this in many different ways, but recently, I have been made aware that there is a difference between dll library files and lib library files. I've got .lib-files, but no dll, and I am thinking maybe I have just got a reference to the libraries used (the lib files) instead of the libraries containing the actual object files (the dll files). is this the case?

In any case, does anyone know how i can open and list all the object files my lib files are referring to?

RE: Library files?

(OP)
Oh, and I'm using plato 4.4 from silverfrost, and the code is written in fortran77.

RE: Library files?

(OP)
Yeah, good point!

RE: Library files?

I like static libraries better.

What does your compilation/linking command look like?  Are you including the path to those libraries in the command so that the fortran compiler finds them?

RE: Library files?

(OP)
I'm quite new at fortran at large, I'm using the plato IDE, in which I have tried to include the lib-files in many different ways. having them in the same folder as the f-files, for example, or include them in a project containing all the f-files, then build. I think perhaps I should go and haunt the plato forums for a little while, but thanks!

RE: Library files?

The lbirary needs to be described, usually, in two locations:
> The compiler needs header information to know how to resolve the function calls and what the format of the call is
> The compiler generally requires a list of files to be included in the compilation, e.g., MAKE files in C.  Many GUIs have a menu item that allows you to construct the equivalento of a MAKE file inside the GUI.

TTFN

FAQ731-376: Eng-Tips.com Forum Policies
Chinese prisoner wins Nobel Peace Prize

RE: Library files?

If you are using plato, have a look at the tree.  All the libraries need to be added as to the reference tree.

When you add the reference, you have to navigate to where the .lib file is (normally under Checkmate\win32 in the library directory)

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close