0 Replies Latest reply on Dec 18, 1998 12:39 PM by 3004

    Re: fatal error LNK1181: cannot open input file"OLDNAMES.LIB

    3004
      Hi,

      May be it is because it appears twice on your script :
      OLDNAMES.LIB OLDNAMES.LIB KERNEL32.LIB USER32.LIB GDI32.LIB WINSPOOL.LIB

      Hope this helps,

      Daniel Nguyen
      Freelance Forte Consultant


      At 18:40 18/12/98 +0100, Hervé Depoorter wrote:
      Hello, everybody.

      My problem is :'fatal error LNK1181: cannot open input file "OLDNAMES.LIB"'
      Somebody can help me?
      Thanks a lot for your assistance.


      ---------------------------------------------------------------------------
      ---
      >
      I tried to passe a C structure between Forte and C.
      I taked the exemple of forté : technote ID : 10637.
      We use Forte 3.0.j.1 and I try the example on a NT4 server.

      There are several projects that make up this application. They are as
      follows:
      ---------------------------------------------------------------------------
      ----
      StructExampleGUI - This is this project. It is the GUI front
      (File: StructGu.Pex) end that calls the C wrapper.

      StructSharedObjects - This project defines the Employee object
      (File: StructSh.Pex) that is needed for both the GUI and
      for the StructExampleServices project.

      StructExampleServices - This project defines the StructExample
      (File: StructSO.Pex) services object. This is a restricted
      project whose purpose is to actually call
      the C project.

      StructExampleProject - This is the External C Project that defines
      (File: Struct.Pex) the interface necessary for Forte to generate
      the wrapper code needed to call the C file.

      StructEX.c - This is the C code that is being wrappered. It
      has one function getemployee that modifies an
      input output structure. The memory allocation is
      done by Forte in the StructExampleServices
      project.
      ---------------------------------------------------------------------------
      -----
      >
      First of all, I compile the StructEx.C

      After, in the Struct.pex, I set the parameter :

      HAS PROPERTY
      CompatibilityLevel = 0;
      ProjectType = LIBRARY;
      Restricted = TRUE;
      MultiThreaded = TRUE;
      LibraryName = 'struct';
      extended = (Externalincludedirectories='e:/Pgmprod/cpp/50/include
      e:/Pgmprod/cpp/50/lib',
      ExternalObjectFiles = 'O:/Herve/ForteAPI/structex');

      I load the struct.pex.
      Double click on the StructExampleProject
      File:Configure As:Library
      Make distibution and select Full make, Install in current Environment & Auto
      Compile

      When I tried this in the first time, I has a probleme with struct.bom. I
      resolved
      that. (technote 11431:Autocompile on NT fails to build the compiled
      partition)
      >
      But now, I'm another problem (see below) and I don't find the solution.
      Somebody can help me? Thanks a lot for your assistance.

      ----------------------------------------------------------------------------
      -------
      The problem : Forté say 'fatal error LNK1181: cannot open input file
      "OLDNAMES.LIB"'



      BEGIN FILE
      Working directory is e:\pgmprod\forte\30J1\tmp\cg4\pc_nt\struct
      Processing BOM file: struct.bom
      Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 11.00.7022 for 80x86
      Copyright (C) Microsoft Corp 1984-1997. All rights reserved.

      struct.cc
      Microsoft (R) 32-Bit Incremental Linker Version 5.00.7022
      Copyright (C) Microsoft Corp 1992-1997. All rights reserved.

      /DLL /NOD
      /OUT:struct.dll
      /DEF:struct.nti
      struct.obj
      O:\Herve\ForteAPI\structex.obj
      e:\pgmprod\forte\30J1\install\lib\qqsm.lib
      e:\pgmprod\forte\30J1\install\lib\qqfo.lib
      e:\pgmprod\forte\30J1\install\lib\qqdo.lib
      e:\pgmprod\forte\30J1\install\lib\qqsh.lib
      e:\pgmprod\forte\30J1\install\lib\qqcm.lib
      e:\pgmprod\forte\30J1\install\lib\qqkn.lib
      e:\pgmprod\forte\30J1\install\lib\MSVCRT.LIB
      e:\pgmprod\forte\30J1\install\lib\qqsh.lib
      OLDNAMES.LIB OLDNAMES.LIB KERNEL32.LIB USER32.LIB GDI32.LIB WINSPOOL.LIB
      COMDLG32.LIB SHELL32.LIB WSOCK32.LIB NETAPI32.LIB WINMM.LIB ADVAPI32.LIB
      LINK : fatal error LNK1181: cannot open input file "OLDNAMES.LIB"
      cl /W3 /Gf /GX /MD /c /Ob1 /vmg /DSTRICT /DWIN32 /D__WIN32__ /DLIBOO_DLL
      /DWIN32_LEAN_AND_MEAN /Ie:\pgmprod\forte\30J1\install\inc\cmn
      /Ie:\pgmprod\forte\30J1\install\inc\os
      /Ie:\pgmprod\forte\30J1\install\inc\ds
      /Ie:\pgmprod\forte\30J1\install\inc\handles /Ie:\pgmprod\forte\30J1
      /Ie:\Pgmprod\cpp\50\include /Ie:\Pgmprod\cpp\50\lib /Fostruct.obj /Tp
      struct.cc
      link @linkopt.lrf
      Error during compilation, aborting.

      END FILE

      Completed compilation for PC NT.













      -
      To unsubscribe, email 'majordomo@sageit.com' with
      'unsubscribe forte-users' as the body of the message.
      Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

      Daniel.Nguyen@sema.fr
      -
      To unsubscribe, email 'majordomo@sageit.com' with
      'unsubscribe forte-users' as the body of the message.
      Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>