Thread: Problem with linking .LIB

  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    2

    Problem with linking .LIB

    Hi,
    I'm new here. I have some problems with compiling and linking C source.
    I want to build simple C example program, which uses some functions of Oracle-forms API. I'm using eclipse and MinGW. When I try to build program I get this error:

    Code:
    gcc -LE:\Oracle\Ora81_dev\FORMS60\API -otest.exe src\test.o -lifd2f60.LIB
    C:\MinGW\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot find -lifd2f60.LIB
    collect2: ld returned 1 exit status
    Build error occurred, build is stopped
    I've set that path to LIB file under project properties.
    Any idea what is wrong ?

    Thanks

  2. #2
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Maybe remove the ".LIB" from the end?

  3. #3
    Registered User
    Join Date
    Oct 2007
    Posts
    2
    Omg it works !
    Code:
    gcc -LE:\Oracle\Ora81_dev\FORMS60\API -otest.exe src\test.o -lifd2f60
    Build complete for project test
    Thanks a lot !!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem with linking files
    By slippy in forum C Programming
    Replies: 2
    Last Post: 11-23-2007, 11:35 PM
  2. Linking problem
    By Agent89 in forum C++ Programming
    Replies: 4
    Last Post: 03-27-2005, 03:03 PM
  3. half ADT (nested struct) problem...
    By CyC|OpS in forum C Programming
    Replies: 1
    Last Post: 10-26-2002, 08:37 AM
  4. Long file linking problem
    By hypertension in forum C Programming
    Replies: 3
    Last Post: 10-15-2002, 09:55 PM
  5. Linking problem...
    By BrianK in forum C++ Programming
    Replies: 2
    Last Post: 10-08-2002, 04:13 PM