NO

Author Topic: Missing library file (sapi.lib).  (Read 4173 times)

ClaudeQC

  • Guest
Missing library file (sapi.lib).
« on: June 03, 2014, 03:44:59 PM »

Hello,

I am trying to built an application using Microsoft SAPI library, with Pelles C.
I tried with Pelles C V7.00 and now, with Pelles C V8.00 RC4.
In both cases, Pelles C say: "POLINK: fatal error: File not found: 'sapi.lib'."
I have included "sapi.h" in the source file, and Pelles C find it.  But can not find "sapi.lib".
Any clue will be appreciated.

Remark: I done search on the forum and found this: http://forum.pellesc.de/index.php?topic=1643.msg6910#msg6910
But link mentioned in this post is no more valid :-(

ClaudeQC


Offline DMac

  • Member
  • *
  • Posts: 272
Re: Missing library file (sapi.lib).
« Reply #1 on: June 03, 2014, 07:09:39 PM »
You will have to either copy sapi.lib from the sdk to the PellesC\Lib\Win folder since it is not there.  Or you will need to add the sdk library location to the Pelles C IDE.  You can add it by selecting Project Menu>Project Options>Folders Tab>Select Type "Libraries" and click on "New Folder."
No one cares how much you know,
until they know how much you care.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Missing library file (sapi.lib).
« Reply #2 on: June 06, 2014, 10:26:00 AM »
sapi.lib is not a normal import library. It contains a number of GUID's that must be specially built (which is a pain).

See if one of the attached files work for you (32 and 64 bit versions).
/Pelle

ClaudeQC

  • Guest
Re: Missing library file (sapi.lib).
« Reply #3 on: June 19, 2014, 04:55:34 PM »
sapi.lib is not a normal import library. It contains a number of GUID's that must be specially built (which is a pain).

See if one of the attached files work for you (32 and 64 bit versions).

Well, I am trying to develop an application, using the "C" language, that use Microsoft "SAPI" library (COM based library).
The resources for that library (header files and ".lib" files) are included in Windows SDK.
When I configure Pelles C to make it able the see the required Windows SDK header files and ".lib" file (sapi.lib) (by adding "Folders"); and try to built the application, somethings goes wrong with the Windows SDK header files.
All this COM stuff seems to be non-standard, and only supported by Microsoft tools.


Remark: For the moment, I work on this project using "the feature limited" Visual Studio Express.


Regards,
Claude

Offline frankie

  • Global Moderator
  • Member
  • *****
  • Posts: 2113
Re: Missing library file (sapi.lib).
« Reply #4 on: June 19, 2014, 05:35:06 PM »
You can try this.
The tool doesn't copy the libraries, you can copy them by yourself or add SDK libraries folder in linker folder.
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide