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.

132 questions
0
votes
1 answer

C++ .lib file required for CLR dll but not for non-CLR

In a simple test project, I have two C++ compiled dlls NonClrDll: A regular C++ dll (non /clr) Wrapper: A /clr compiled dll that is only unmanaged (native) code for now To use the NonClrDll in a C++ client project, all I have to do is include a…
u8it
  • 3,956
  • 1
  • 20
  • 33
0
votes
0 answers

cpp generate a .lib and use it in another project

I have one project : mialsrtkOrientImage with one .h and one .cpp and lot of dependencies "managed" with cmake. I want to make a .lib of it (it compile and create the .lib) and now I want to use the .lib in another project OrientImageWrapper to have…
p.deman
  • 584
  • 2
  • 10
  • 24
0
votes
0 answers

LNK1104 error cannot open file enet.lib

I'm trying to make an online game using ENet and Cocos2d. I defined the include folder and the libs as well everything is good for the server side and it compiled and working 100%. But when I tried to do the same for client side it gave me this…
Omarito
  • 577
  • 6
  • 22
0
votes
1 answer

Calling c++ functions from a lib file

I've got a C++ 3rd party library file with no header file. How can I read the functions and use them inside my C++ application. Inside the lib file are mangled names.. I used dependency walker to view the export functions. How do I go about using…
Sunfluxgames
  • 71
  • 1
  • 4
0
votes
2 answers

How to load a library function to main() C++

using: Visual Studio 2008 Question: I have a library math.lib which has functions like this: #include #include #include int addNumbers(int a, int b) { return a + b; } And my main function is:…
Shereif SRF
  • 58
  • 1
  • 12
0
votes
0 answers

fatal error LNK1181: cannot open input file 'mylib.lib' when linking .lib and .def file

I am trying to link a .lib file and a .def file to create a .dll of this .lib file. I have been using this command: link /dll /machine:x86 /def:mylib.def mylib.lib and have been receiving the LNK 1181 error message. As noted on other stack…
54321
  • 99
  • 1
  • 8
0
votes
1 answer

Generate a library (.lib) file

I want to build Libharu and generate a static library (.lib) file. I am using VS2010. I want to build Libharu with ZLIB and Libpng support. I have already installed them and zlib.lib and libpng.lib are present in Program Files (x86)/GnuWin32/lib I…
user2756695
  • 676
  • 1
  • 7
  • 22
0
votes
1 answer

Linking static library to a class library project

I have a static library with .lib extension. Now, I want to link this library to a class library project in Microsoft Visual Studio 10 and use the functions in my class library project. I add the path of .lib file to my class library project by…
Enes Altuncu
  • 449
  • 2
  • 7
  • 14
0
votes
1 answer

Use (.lib) c++ library file in android studio

I have thimble.lib file, which is C++ library that I built from source files found in this link: http://www.stochastik.math.uni-goettingen.de/biometrics/fileadmin/thimble/doc-2013.04.30/index.html#sec_compile_unix How to add thimble.lib in Android…
Haya aziz
  • 300
  • 1
  • 3
  • 16
0
votes
0 answers

import c type defined in .lib file to python

I have a third party C static library (.lib) that I want to exploit using python , the provided header contains the prototypes of functions and declarations of some data structures , but it also uses some data types that are not defined within the…
werber bang
  • 173
  • 3
  • 11
0
votes
1 answer

OpenCV and Visual Studio 2015: Why is including the static library not working?

I'm trying to set up a VS2015 solution I have with OpenCV 3.0.0, and I'm trying to do so using static libraries only. Header files: the OpenCV header files are included correctly and I can reference them in my source files without issue. Libraries:…
0
votes
1 answer

How to only offer one static lib in vs2013 to client if i have use several static lib from others?

I create a static lib(set a.lib as an example) file for other poeple to use my API function, however, I use other API function by colleagues(these APIs are fulfilled in b.lib, c.lib, ...). When I test on a new project just include a.lib, I'll get an…
Nathan_hnl
  • 23
  • 7
0
votes
0 answers

File not found when including additional independency C++ visual studio

I'm using Visual studio 2015 I'm trying to add some libraries(.lib) to my project. I add them by going to Project->Properties and go to the tab Linker. I go to General and fill in the Additional Library Directories. After that I go to Inputand fill…
Bart
  • 717
  • 1
  • 9
  • 28
0
votes
0 answers

.lib file gives wrong method names C++

I'm using Embarcadero XE8 C++ builder 32 bit and I'm trying to convert a .dll file to a .lib. I did this with using the implib-tool. more info here. I've got my new .lib file now. And it isn't working so I used a TDumpon the library. When I check…
Bart
  • 717
  • 1
  • 9
  • 28
0
votes
0 answers

Building a lib file for c

I want to build my own library file for c. How do I do it? Is there anyway doing it just with a notepad, and then using it some sort of compiler? I know I can make .lib files with VS, but I want to make it in the most basic way.…
Daniel
  • 198
  • 2
  • 14
1 2 3
8 9