forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search found 1217 matches
forums.silverfrost.com Forum Index
Author Message
  Topic: Linking order of object files
wahorger

Replies: 10
Views: 502

PostForum: Support   Posted: Wed Mar 20, 2024 2:08 pm   Subject:
John, I did precisely this, and was left with an unresolved reference. The reason being that my main (and a subroutine referenced by a library function) were compiled together in one object file (for ...
  Topic: Linking order of object files
wahorger

Replies: 10
Views: 502

PostForum: Support   Posted: Wed Mar 20, 2024 5:15 am   Subject:
John, I think you misread.

FILE_A contains MAIN and SUB_A. They get compile into OBJ_A

FILE_B contains SUB_B. It compiles into OBJ_B. This becomes a library.. SUB_B contains a reference to SUB_A ...
  Topic: Linking order of object files
wahorger

Replies: 10
Views: 502

PostForum: Support   Posted: Tue Mar 19, 2024 3:46 pm   Subject:
I just had a hint about objects versus libraries.

File A contains MAIN and SUB_A, in OBJ_A
File B contains SUB_B, in OBJ_B.

SUB_B calls SUB_A. OBJ_B is in a library.

OBJ_A, because it conta ...
  Topic: Linking order of object files
wahorger

Replies: 10
Views: 502

PostForum: Support   Posted: Sat Mar 16, 2024 9:31 pm   Subject:
Are you building a library with Gfortran, or just putting objects?

If the former, then you might be able to put the same library in twice, catching the cyclic dependencies.

SLINK (and SLIM) seem ...
  Topic: Linking order of object files
wahorger

Replies: 10
Views: 502

PostForum: Support   Posted: Sat Mar 16, 2024 8:34 pm   Subject:
This is my experience.

If you simply LOAD multiple objects (.OBJ files), then dependency matters; that is, if you don't express them in order, then they will not resolve references, and you're left ...
  Topic: Addresses in listing are not correct
wahorger

Replies: 4
Views: 433

PostForum: 64-bit   Posted: Wed Mar 13, 2024 3:48 pm   Subject:
I was using a listing for the 32-bit product and wanted to make a note to a previous comment of mine.

I do use the listings! Every release, I run a program I wrote that processes the listing inform ...
  Topic: Workaround for C_F_POINTER
wahorger

Replies: 12
Views: 888

PostForum: Support   Posted: Tue Mar 12, 2024 2:51 pm   Subject:
jlb,

Happy to help!

Bill
  Topic: SLIM vs SLINK64
wahorger

Replies: 4
Views: 298

PostForum: 64-bit   Posted: Sun Mar 10, 2024 2:28 pm   Subject:
Paul,

I did some poking around in the MAP files for the same program in each of the memory models and was able to confirm that the linking of the static libraries produced for the memory models dif ...
  Topic: SLIM vs SLINK64
wahorger

Replies: 4
Views: 298

PostForum: 64-bit   Posted: Sun Mar 10, 2024 12:37 am   Subject:
I'm seeing statements in the documentation that indicate a library cannot be created using SLINK64, only DLL's and EXE.

So, my "libraries" aren't being treated as would a standard librar ...
  Topic: Black "DOS" box and redirection to %cw
wahorger

Replies: 7
Views: 473

PostForum: 64-bit   Posted: Sun Mar 10, 2024 12:35 am   Subject:
So, in the documentation, if you link with /WINDOWS as an option, you'll not get the console opening up. That's good. Still working on the sequence of operations to get the standard output to the righ ...
  Topic: Workaround for C_F_POINTER
wahorger

Replies: 12
Views: 888

PostForum: Support   Posted: Sun Mar 10, 2024 12:06 am   Subject:
Just an FYI. Here's the FTN95 statement for the interface to one of my DLL's. It returns the pointer to a file handle from "C". So, it's size will be either 32-bit or 64-bit depending on the ...
  Topic: SLIM vs SLINK64
wahorger

Replies: 4
Views: 298

PostForum: 64-bit   Posted: Sat Mar 09, 2024 9:53 pm   Subject: SLIM vs SLINK64
Maybe this has been answered, but I cannot find the post if that is the case.

It appears that SLIM and SLINK64 operate a bit differently when it comes to creating libraries. I think this because th ...
  Topic: Workaround for C_F_POINTER
wahorger

Replies: 12
Views: 888

PostForum: Support   Posted: Sat Mar 09, 2024 6:12 pm   Subject:
Here's the code that take a pointer to a "C" style string and returns the characters in a FORTRAN CHARACTER data type.

Note: You have to declare the function in the calling program with a ...
  Topic: Workaround for C_F_POINTER
wahorger

Replies: 12
Views: 888

PostForum: Support   Posted: Sat Mar 09, 2024 4:29 pm   Subject:
jlb,

Can you give me an example of how this function would be used?

I'll admit to not being 2003 aware of all the changes in syntax, etc. That said, I may have an answer to your query, albeit p ...
  Topic: Workaround for C_F_POINTER
wahorger

Replies: 12
Views: 888

PostForum: Support   Posted: Fri Mar 08, 2024 11:35 pm   Subject:
Interesting problem.

So this function takes a pointer to a string (null terminated) and transfers this to a FORTRAN compatible CHARACTER*(*).

Do you need it to be fully portable, or can it be co ...
 
Page 1 of 82 Goto page 1, 2, 3 ... 80, 81, 82  Next
All times are GMT + 1 Hour
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group