Questions tagged [.lib]

.lib is standard extension for static libraries under Microsoft operation systems.

.lib is standard extension for static libraries under Microsoft operation systems.

123 questions
34
votes
1 answer

Dynamic link library does not generate a .lib file when compiled (Visual Studio C++ Express)

As part of learning C++, I wrote a simple class library + application that references it. Everything builds, except the class library does not generate a .lib file, which results in the application throwing a "LINK : fatal error LNK1104: cannot open…
Narf the Mouse
  • 1,491
  • 5
  • 17
  • 26
27
votes
3 answers

Import a C++ .lib and .h file into a C# project?

I have just started a C# project and want to import a C++ .lib and it's corresponding header (.h) file. I've read various posts that all mention .dll, rather than .lib, which is confusing me. The image below shows the .lib and .h file I'm…
Dan James Palmer
  • 2,088
  • 5
  • 36
  • 61
14
votes
2 answers

How to build static and dynamic libraries from .obj files for Visual C++?

I have Visual Studio 2008, Windows7 64 bit. I am using WinBGIm Graphics Library. This library is supplied with some .obj files. There are no .lib or .dll files. I want to convert them into static .lib and dynamic .dll files. I have copied all .obj…
user366312
  • 17,582
  • 55
  • 198
  • 392
8
votes
2 answers

How do I include libraries to a project in Visual Studio?

I am a beginner on C++ and trying to learn about including libraries, and I haven't found documentation about it. What are the ways of including libraries to a C++ project (Visual Studio). How do I implement them and which is the best way? I was…
Oscar Vasquez
  • 465
  • 2
  • 6
  • 14
5
votes
1 answer

Solving hid.lib "unresolved external symbol" linker errors in VC++

As the title suggests, I am having the following linker error: error LNK2019: unresolved external symbol "unsigned char __stdcall HidD_GetAttributes(void *,struct _HIDD_ATTRIBUTES *)" (?HidD_GetAttributes@@YGEPAXPAU_HIDD_ATTRIBUTES@@@Z) when…
Ben
  • 1,092
  • 1
  • 14
  • 33
5
votes
1 answer

Why some programs require both .lib and .dll to work

When I was going to set up my developing environment for (SDLSimple DirectMediaLayer), I downloaded the package provided by the website, from the readme.txt file I found that I need both .lib and .dll... My question is : I am not sure if my…
zhangzhimin
  • 111
  • 9
5
votes
1 answer

How to use *.lib file in C# application?

So I have some .lib file (generated like this one) How to use it from my C# WPF application?
Rella
  • 59,216
  • 102
  • 341
  • 614
4
votes
3 answers

How do I fix fatal error C1113: #using failed on 'Mylib.lib'

I have a project which uses C++/CLI to implement a GUI and some background processing to talk to a sensor. I've got that all working and a lot of the comms stuff which we use to communicate the the sensor sits in a .dll. The problem is that I'd like…
Jon Cage
  • 33,172
  • 32
  • 120
  • 206
4
votes
1 answer

Creating .dll from .h and .lib in Visual Studio 2010

I am trying to create a .dll file from my header and library files that I got from tngaming for their gaming vest. So far I've been using this guide, but instead of creating a new header file I added my tngaming file to the folder where the header…
Drakthal
  • 193
  • 2
  • 13
4
votes
2 answers

Unity3d c++ plugin

I am currently working on a Unity3d 4.0 Pro project where i am trying to link the tngaming vest to unity. The only SDK ( http://tngames.com/pages/Developers ) i have available is a C++ .h and a .lib file. As far as i understand from the…
user1955256
  • 61
  • 1
  • 1
  • 4
4
votes
2 answers

Using a Third Party Library Consisting of ".h", ".lib" and ".dll" Files

So currently I'm trying to use the VISA library from National Intruments and the IVI Foundation to read/write commands to various external devices. I am relatively novice with my IDE: Microsoft Visual C++ Express 2010 and this is my first time…
jjno91
  • 573
  • 5
  • 17
3
votes
3 answers

Is there anyway to get the statically linked functions contained in a .exe and reuse them?

For example: Say I have linked myprogram.obj with myprogram.lib to make myprogam.exe If myprogram.lib had all sorts of special functions contained in it, and I had accidentally deleted it (and the source), is there a way I could dig into…
scruff
  • 49
  • 1
3
votes
1 answer

LNK2019 error when using #pragma comment, confused by /VERBOSE output

First up, I'm new to C++ (and MS VS), so I'm very probably missing something here. I do have some coding experience, though, and I'm having trouble discerning what might be escaping me. I'm trying to use Logitech supplied .lib and .h files to…
NealC
  • 31
  • 3
3
votes
2 answers

How to build .lib files using Code::Blocks IDE

I have a C project which I would like to build as a static library and not as a executable. My high level environment is: IDE: Code::Blocks 16.01 Operating System: Windows 7 Compiler: MinGW (GCC port for Windows) As a build target option, I…
Dean P
  • 676
  • 8
  • 16
3
votes
0 answers

using c++ static library(.lib ) in c# project?

I am trying to make c# project and i need to use a solver which i found on the internet to do some calculation but this solver is a static library which writing in c++ . it is so difficult to rewrite this library in .Net and that will take too much…
Ameer Mansour
  • 43
  • 1
  • 10
1
2 3
8 9