Welcome, Guest
Username: Password: Remember me

TOPIC: LINK : fatal error LNK1181

LINK : fatal error LNK1181 14 years 3 months ago #496

  • yannick
  • yannick's Avatar
Hello,
I did not found any related topic so ...
when I run telmac2d (windows vista/scalar/ifort 11.065/telemac 5.9) on the example "\test.fr\bj78_run15"
I got a link error "cannot open input file "with advapi32.lib and netappi32.lib (see relevant error section below).
If I add the full path to the libs an rerun the command manually I got the same kind of error for the file t2dfort.obj which is apparently created on the fly in a temporary directory.

Any hints to help me ?


*** LIBRARIES ***

- C:\TELEMAC\V5P9\telemac2d\tel2d_v5p9\win\telemac2dv5p9.lib
- C:\TELEMAC\V5P9\sisyphe\sisyphe_v5p9\win\sisyphev5p9.lib
- C:\TELEMAC\V5P9\special\special_v5p9\win\specialv5p9.lib
- C:\TELEMAC\V5P9\bief\bief_v5p9\win\biefv5p9.lib
- C:\TELEMAC\V5P9\damocles\damo_v5p9\win\damov5p9.lib
- C:\TELEMAC\V5P9\paravoid\paravoid_v5p9\win\paravoidv5p9.lib
- advapi32.lib
- netapi32.lib

*** LINKING ***

link /MACHINE:IX86 /subsystem:console /incremental:no /stack:67108864 /nodefau
ltlib:libc.lib /out:out5672_win.exe t2dfort.obj C:\TELEMAC\V5P9\telemac2d\tel2
d_v5p9\win\telemac2dv5p9.lib C:\TELEMAC\V5P9\sisyphe\sisyphe_v5p9\win\sisyphev5p
9.lib C:\TELEMAC\V5P9\special\special_v5p9\win\specialv5p9.lib C:\TELEMAC\V5P9\b
ief\bief_v5p9\win\biefv5p9.lib C:\TELEMAC\V5P9\damocles\damo_v5p9\win\damov5p9.l
ib C:\TELEMAC\V5P9\paravoid\paravoid_v5p9\win\paravoidv5p9.lib advapi32.lib net
api32.lib
Microsoft (R) Incremental Linker Version 10.00.30319.01
Copyright (C) Microsoft Corporation. All rights reserved.

LINK : fatal error LNK1181: cannot open input file 'advapi32.lib'
ERROR : DURING LINKING
The topic has been locked.

Re:LINK : fatal error LNK1181 14 years 3 months ago #497

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

I suppose this problem comes from Vista.
Nevertheless, you could try one of the 2 following solutions:
    Uninstall the 5.9 version and install the 6.0 and try with it. It seems to me that advapi32.dll was no longer use and had been deleted form the librairies list.
    If you prefer staying with 5.9 version, you could try to change the file runcode.pl (in the bin directory). You could comment the line 127 and try another times. As I remember, those librairies was only used for the protection of Telemac (which no longer exists)

Good luck
Christophe
The topic has been locked.

Re:LINK : fatal error LNK1181 14 years 3 months ago #502

  • yannick
  • yannick's Avatar
Hi Telemac,
solution1: "uninstall v5p9 install v6p0" -
Now I have the following error
LINK : fatal error LNK1104: cannot open file 'ifconsol.lib'

solution2: "comment the line 127 of runcode.pl" (and line 104) -
produces following error:
LINK : fatal error LNK1104: cannot open file 'ifconsol.lib'

Google is my friend and suggest I might have to do some changes in the systel.ini file.
Any idea (other than moving to windows/gfortran or to linux/gfortran) ?

regards ?
The topic has been locked.

Re:LINK : fatal error LNK1181 14 years 3 months ago #503

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

This message shows you have a problem with you fortran installation. It look likes the fortran librairies was not seen. Maybe an environment variables which was not updated?
Have a look to the LIB value.
ifconsol.lib is currently installed in the lib directory of your fortran installation. Check it exists (or make a search in you computer).
Finaly check its place is well indicate in the LIB field

Good luck
Christophe
The topic has been locked.

Re:LINK : fatal error LNK1181 14 years 3 months ago #509

  • yannick
  • yannick's Avatar
thank you,
there was indeed a missing env var LIB missing:
in my case this fixed the problem
set LIB="c:\Program Files\Intel\Compiler\11.1\065\lib\ia32\";"c:\Program Files\Microsoft Visual Studio 9.0\VC\lib\";"c:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib\"

you can close the thread.

regards
The topic has been locked.
Moderators: borisb

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