Welcome, Guest
Username: Password: Remember me

TOPIC: linking problem

linking problem 14 years 3 weeks ago #799

Hi,

I'm luca, initial user of artemis and telemac 2d.
I had some problem related to the intel fortran compiler and visua studio. But now I think the installation is correct and all the path are well defined (LIB\PATH\INCLUDE).
But I still have a problem... as you can see in the following error message.
Can someone help me?
Thank You very much,

LUCA


=========================================================
Telemac System Freeware 6.0 - Perl scripts version V6.0
=========================================================
starting...

HOSTTYPE : win
PROJECT : C:\TELEMAC\V6P0
BASE DIRECTORY : C:\TELEMAC\VOLTRI\VOL1.MAT
LAUNCH DIRECTORY : C:\TELEMAC\VOLTRI\VOL1.MAT
WORK DIRECTORY : C:\TELEMAC\VOLTRI\VOL1.MAT\cas2992_tmp
PARAMETER FILE : cas


*** Fichier de configuration par defaut :
C:\TELEMAC\V6P0\config\systel.ini ***



*** ARTEMIS sur STATION ***


*** Lancement en interactif ***


*** VERSION v6p0 ***

________________________________________________________
Fichier des parametres : cas
________________________________________________________

________________________________________________________
Starting execution: artemis.bat
________________________________________________________
- FICHIER FORTRAN : borh.f
______________________________________________________________________________
*** COMPILATION ***

ifort /compile_only /optimize:4 /check=overflow /iface:nomixed_str_len_arg /wa
rn:declaration /warn:argument_checking /warn:unused /nologo /convert:big_endian
/extend-source:132 /include:C:\TELEMAC\V6P0\artemis\arte_v6p0\win /include:C:
\TELEMAC\V6P0\bief\bief_v6p0\win /include:C:\TELEMAC\V6P0\damocles\damo_v6p0\win
/include:C:\TELEMAC\V6P0\paravoid\paravoid_v6p0\win /include:C:\TELEMAC\V6P0\sp
ecial\special_v6p0\win artfort.f
artfort.f(80) : Info: This variable has not been used. [BID]
DOUBLE PRECISION PI,BID
^
______________________________________________________________________________
*** BIBLIOTHEQUES ***

- C:TELEMACV6P0artemisarte_v6p0winartemisv6p0.lib
- C:TELEMACV6P0biefbief_v6p0winbiefv6p0.lib
- C:TELEMACV6P0damoclesdamo_v6p0windamov6p0.lib
- C:TELEMACV6P0paravoidparavoid_v6p0winparavoidv6p0.lib
- C:TELEMACV6P0specialspecial_v6p0winspecialv6p0.lib
- C:TELEMACV6P0mumpsvoidmumpsvoid_v6p0winmumpsvoidv6p0.lib

*** EDITION DE LIENS ***

link /MACHINE:IX86 /subsystem:console /incremental:no /stack:67108864 /nodefau
ltlib:libc.lib /out:out2992_win.exe artfort.obj C:\TELEMAC\V6P0\artemis\arte_v
6p0\win\artemisv6p0.lib C:\TELEMAC\V6P0\bief\bief_v6p0\win\biefv6p0.lib C:\TELEM
AC\V6P0\damocles\damo_v6p0\win\damov6p0.lib C:\TELEMAC\V6P0\paravoid\paravoid_v6
p0\win\paravoidv6p0.lib C:\TELEMAC\V6P0\special\special_v6p0\win\specialv6p0.lib
C:\TELEMAC\V6P0\mumpsvoid\mumpsvoid_v6p0\win\mumpsvoidv6p0.lib
Microsoft (R) 32-Bit Incremental Linker Version 5.00.7022
Copyright (C) Microsoft Corp 1992-1997. All rights reserved.

libifcoremt.lib(for_vm.obj) : error LNK2001: unresolved external symbol __aligne
d_free
libifcoremt.lib(for_vm.obj) : error LNK2001: unresolved external symbol __aligne
d_malloc
out2992_win.exe : fatal error LNK1120: 2 unresolved externals
ERREUR A L'EDITION DE LIEN

________________________________________________________
Execution terminee: artemis.bat
________________________________________________________
Compilation/linking/file errors detected.
Please see messages in: stdout above, stderr,
and/or file C:\TELEMAC\VOLTRI\VOL1.MAT\cas2992_error.log
No execution errors detected.

Working directory: C:\TELEMAC\VOLTRI\VOL1.MAT\cas2992_tmp
can be manually deleted with: C:\TELEMAC\VOLTRI\VOL1.MAT\delete_cas2992.bat

Returning exit status 1

=========================================================
Telemac System Freeware 6.0 - Perl scripts version V6.0
=========================================================
...stopping.

C:\TELEMAC\VOLTRI\VOL1.MAT>
The topic has been locked.

Re:linking problem 14 years 3 weeks ago #800

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Hi

As I can see, your problem comes from your Fortran/Visual Studio installation.
The fortran seems OK because the compilation step just return an info
But the linking step failed that's why I think, the problem comes from Visual Studio

The information shows that you use Visual Studio 5.
In my opinion, this is a too old version which is not compatible with Intel Fortran
Could you check this?

Regards
Christophe
The topic has been locked.

Re:linking problem 14 years 2 weeks ago #823

Hi,

at the end, telemac (artemis) is working properly.
After installation of a newer version of visual studio, I had the following problem:
"link.exe was not recognized as an internal - external command"
SOLUTION >> Well, in visual studio folders I've found 5 different link.exe, and I tried to add the path to each of them to the system variables. Whitout any result: "link" command did not give any effect, in any way. At the end I've accidentally met the dos prompt open from the "visual studio C++ Express Edition" shortcut in the start menu. In that place, link command was recognized, as you can see:

Setting environment for using Microsoft Visual Studio 2008 x86 tools.

C:\Programmi\Microsoft Visual Studio 9.0\VC>link
Microsoft (R) Incremental Linker Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.

usage: LINK [options] [files] [@commandfile]

options:

/ALIGN:#
/ALLOWBIND[:NO]
/ALLOWISOLATION[:NO]
/ASSEMBLYDEBUG[:DISABLE]
/ASSEMBLYLINKRESOURCE:filename
/ASSEMBLYMODULE:filename
/ASSEMBLYRESOURCE:filename[,[name][,PRIVATE]]
/BASE:{address[,size]|@filename,key}
/CLRIMAGETYPE:{IJW|PURE|SAFE}
/CLRSUPPORTLASTERROR[:{NO|SYSTEMDLL}]
/CLRTHREADATTRIBUTE:{STA|MTA|NONE}
/CLRUNMANAGEDCODECHECK[:NO]
/DEBUG
/DEF:filename
/DEFAULTLIB:library
/DELAY:{NOBIND|UNLOAD}
/DELAYLOAD:dll
/DELAYSIGN[:NO]
/DLL
/DRIVER[:{UPONLY|WDM}]
(press <return> to continue)

So with the set command, I've displayed PATH, LIB and INCLUDE setting and reported them to the system variables. That now appears like this:

PATH:
%PATH%;C:\Programmi\Intel\Compiler\11.0\061\fortran\Bin\IA32;C:\Programmi\Microsoft Visual Studio 9.0\VB\VBUpgrade;C:\Programmi\Microsoft Visual Studio 9.0\Common7\IDE;

LIB:
C:\Programmi\Intel\Compiler\11.0\061\fortran\mkl\ia32\lib;C:\Programmi\Intel\Compiler\11.0\061\fortran\lib\ia32;C:\Programmi\Microsoft Visual Studio 9.0\VC\lib;C:\Programmi\Microsoft SDKs\Windows\v6.0A\lib;

INCLUDE:
C:\Programmi\Intel\Compiler\11.0\061\fortran\mkl\include;

At the end, I've tested artemis with the test case "CREOCEAN" obtaining the rigth result in 21second of computation.

Thanks,

Luca
The topic has been locked.

Re:linking problem 14 years 2 weeks ago #824

  • c.coulet
  • c.coulet's Avatar
  • OFFLINE
  • Moderator
  • Posts: 3722
  • Thank you received: 1031
Problem solved
I lock this topic
Regards
Christophe
The topic has been locked.

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.