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
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
  • 1,841
  • 23
  • 23
3
votes
1 answer

C++ POCO build error

I am trying to use the POCO C++ library in my existing Windows CE project on Visual Studio 2008. I have compiled the POCO library using the provided .bat files. I used the one nammed build_CE_vs90.cmd and it successfully generated several .lib…
Virus721
  • 8,061
  • 12
  • 67
  • 123
3
votes
1 answer

How to not create .lib and .exp files in Visual C++ .exe project

When I build my C++ project with .exe output in Visual Studio, it creates a .lib and .exp file of my project, and it takes a lot of time. I added the _DO_NOT_EXPORT condition at the beginning of stdafx.h (precompiled header) in attempt to skip this…
DreamTool
  • 149
  • 1
  • 15
3
votes
1 answer

boost library 1.47.1 build 'lib' prefix causing LNK1104 error

I'm having difficulties generating the correct boost .lib file to compile with a VS project I've been given. It appears that after performing the complete build installation using 'b2.exe' from VS2010 command prompt I'm only able to generate the…
3
votes
3 answers

How to use a windows .lib on linux using WINE

I have been using Qt (uses c++ code + Qt libraries) on the windows platform and am in the process of porting my project onto the Linux platform. Using Qt this has been a very simple process and my project works on the Linux platform with barely any…
code_fodder
  • 15,263
  • 17
  • 90
  • 167
2
votes
0 answers

How to link .cpp and .lib files to create a .so file?

I have four files which are developed for the user code of Star-ccm+: main.cpp, uclib.cpp, uclib.h, UserFunctions.lib The header file is included in the .cpp files. Now, I must link these files together to create a .so file. I tried the following…
2
votes
0 answers

Linking .lib from visual studio on cygwin

I'm porting a Linux project (A) on Windows platform using Cygwin. I got a .lib file from visual studio (compiled with Intel C++ compiler) that the library is another Linux project which the project A uses. The compile was a success but I couldn't…
G_yang
  • 21
  • 1
2
votes
4 answers

CMake and #pragma comment(lib)

For my CMake project i have an external library, consisting of a header file and several .lib/.dll pairs. The header file selectively links to one of the .lib/.dll pair, take this example: #ifdef DEBUG #pragma comment(lib "exampled.lib") #elif …
Anedar
  • 4,235
  • 1
  • 23
  • 41
2
votes
1 answer

SQLite3.dll for x64

From the download sqlite.org/download, they provide Precompiled Binaries for Windows for both x86 and x64. So, what gets downloaded is a .def file and a .dll file. Using this two files you can create the .lib file. [Command: lib /def:yourfile.def…
nik
  • 31
  • 7
2
votes
1 answer

Linking google test to your main project

I am new to the gtest. I have followed a tutorial how to set it up in the VS 2105. But all that I could find talked about how to build and link gtest. I am passed that level. The code below runs and passes the first dummy test. #include…
Illia
  • 301
  • 1
  • 4
  • 16
2
votes
1 answer

Convert a .lib and .h file to a DLL that can be used in Python

So I'm trying to import some function contained in a .lib file into Python to build an SDK that will allow me to talk to some special hardware components. I read online that it is not really easy to import a .lib file into Python: Static library…
halochief996
  • 93
  • 1
  • 10
2
votes
2 answers

IWbemLocator ConnectServer call never returned

I have created a sample application based on the following MS link, https://msdn.microsoft.com/en-us/library/aa391769(v=vs.85).aspx The only change I have done is putting the hole code inside a dll and loaded the particular dll in my sample win32…
Dipesh K
  • 21
  • 2
2
votes
0 answers

Adding libengine.lib library from Matlab to QT

I'm facing a tough problem adding the static library libengine.lib from Matlab to a neq QT project. As I read from some blogs, I have to include both the engine.h header and the libengine.lib library to the .pro file. But when I build and run the…
zen26
  • 21
  • 1
2
votes
0 answers

Link .lib library using codeblocks

I tried to link a .lib library in a C++ project using codeblocks but i got a lot of erros like : undefined reference to `_RTC_CheckEsp' undefined reference to `_RTC_Shutdown' undefined reference to `_RTC_InitBase' undefined reference to…
S_Williams
  • 21
  • 1
2
votes
0 answers

Using static Python (pythoncore.lib)

I have create python static lib (pythoncore.lib) from Python27. It's size 11.2 Mb. I have simple app with python embedded: #include #include #include #include int…
Dmitry_Mahrachev
  • 279
  • 1
  • 2
  • 8
1
2
3
8 9