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 

Inconsistent menu handle types in module file clrwin.f95?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit
View previous topic :: View next topic  
Author Message
DietmarSiepmann



Joined: 03 Jun 2013
Posts: 179

PostPosted: Wed Dec 12, 2018 5:03 pm    Post subject: Reply with quote

Paul,

in the INTEL 64 bit compile environment we link a big GUI application with respect to Salford's clearwin64.dll from version 7.10 and use the corresponding clearwin64.lib for the link command (xilink).

However, this results in an error because symbol RANDOM is multiply defined:

Code:

libifcoremt.lib(for_m_irand.obj) : error LNK2005: RANDOM already defined in clearwin64.lib(clearwin64.dll)
..\p64_intel_debug\p0918w.exe : fatal error LNK1169: one or more multiply defined symbols found


Why is RANDOM defined in clearwin64.lib/clearwin64.dll? It is supplied by INTEL's ifort environment.

If we disable the RANDOM calls in our source base and link again, then the binary is created successfully.

Regards,
Dietmar
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 5967
Location: Salford, UK

PostPosted: Thu Dec 13, 2018 8:48 am    Post subject: Reply with quote

Dietmar

Some linkers (such as SLINK) have a switch to allow multiple instances. Then it will use one or the other. The Intel linker might have this switch.

The FTN95 RANDOM takes a single DOUBLE PRECISION argument and you will get the same result of you use RANDOM$ instead.
Back to top
View user's profile Send private message
DietmarSiepmann



Joined: 03 Jun 2013
Posts: 179

PostPosted: Thu Dec 13, 2018 9:28 am    Post subject: Reply with quote

Paul,

I have already tried a switch allowing multiple instances for INTEL linker xilink (the switcch is /FORCE:MULTIPLE) and it worked although this is not the preferred solution I think.

Instead I substituted function RANDOM by function RAND which works analogously (if you add module IFPORT via a use statement).

Thanks for your informations
Dietmar
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> 64-bit All times are GMT + 1 Hour
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group