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
2
votes
0 answers

Compiling Python to a static lib

How I can compile python2.7 to a static lib in Windows? And how I can use these lib within my project (with Python embedded Python C/API).
Dmitry_Mahrachev
  • 279
  • 1
  • 2
  • 8
2
votes
1 answer

unresolved external symbol __imp__glewInit VS __imp__glewInit@0

When I use opengl in my program, I come acrross a problem when using "glew": unresolved external symbol _imp_glewInit (when use the glew 1.10.0), as I replace the glew32.lib by version "glew 1.6.0", this problem is solved. However, when I compile…
Lipeng Yang
  • 101
  • 2
  • 10
2
votes
0 answers

Is there a good way to call methods in a c++ library from JavaScript?

I have an .exe built from an HTML5/JavaScript project using Adobe Air, and a .lib file created from a c++ project. Is there a good way to call the methods in the .lib file from JavaScript?
apohl
  • 1,913
  • 27
  • 30
2
votes
2 answers

Using a .lib in visual studio 2012 (C++)

I have a .lib static library. I've linked it under the Linker settings 'Additional Library Directories', and 'Additional Dependencies', as well as using pragma comment (lib, "mylib").. And all of that compiles fine. What I'm asking, and I can only…
knoxaramav2
  • 23
  • 1
  • 1
  • 4
2
votes
1 answer

How to combine libraries with __stdcall and __cdecl in one vs2008 project

I want to use two 3rd party libraries in my project but one was compiled with __stdcall convention and another with __cdecl. No matter what I set my project property to, the LINKER fails to link one library or another. Is there a way to do this?
Anorflame
  • 376
  • 3
  • 12
2
votes
1 answer

Using a static MSVC 2010 libary (.lib) with MinGW?

Since a few WIN32 related things didn't quite work using MinGW, I decided to create a small static library with MSVC 2010 and link it with MinGW afterwards. However, I am currently looking for a tool that allows me to convert static MSVC…
Byzantian
  • 3,208
  • 4
  • 27
  • 31
1
vote
2 answers

Failing to install gtkmm / gtk+

So i am new on the platform, i use c/c++ and i have interests in graph interfaces so i decided to use gtk+and gtkmm with visual studio. First, i downloaded gtk for the gnome project. I followed all the steps and i got this after a manual run : \\\…
Manu LAB
  • 13
  • 5
1
vote
2 answers

MSVC use additional include directories of referenced static library project

I have two projects in my C++ MSVC solution: A static library project A .exe project that has a reference to the Project #1 (the static library project) Project #1 has additional include directories, C:/addincdir . Project #1's header file,…
Gabor Szita
  • 319
  • 4
  • 13
1
vote
3 answers

How to convert multiple source files into one .a file

i have just found out that Code Blocks (and MingW compiler) only takes .a library files rather then .lib what is the easiest way to convert .lib to .a files... any tutorials etc would be appreciated. Edit let me modify my question slightly how can…
I Phantasm I
  • 1,651
  • 5
  • 22
  • 28
1
vote
1 answer

Compiling Libs for Android NDK

Android noob here. I am trying to create an OpenGL ES based Android App that would run native code and I'm using CMake to build it. Now I have a C++ library that I need to include, import and link(.a files) against the Android NDK code. I…
Rathnavel
  • 85
  • 1
  • 15
1
vote
2 answers

How can I link a static lib generated by DCC32 with the option -JL in C++builder?

I'm trying to use a static library in my C++ Builder project. The lib is created by using DCC32 to compile Delphi source code with -JL option. My Delphi source code is design as a "Designtime and runtime" package, which mean s all the code is built…
MartinZ
  • 175
  • 2
  • 12
1
vote
1 answer

How to static build and include wolfssl on Windows?

I would like to build and integrate wolfssl statically in a c++ Windows project. I've tried to follow the official tutorial, but this seems to give a .dll, which is, correct me if I am wrong, dynamic. Is there any solution to build a .lib and…
user11089058
1
vote
0 answers

LIB Command to create .lib

I have simple question related to LIB command I have one sum.cpp file which contains one function add(int,int). Now library name a.lib depends on sum.obj file and one another library name b.lib which depends upon a.lib and sum.obj so scenario is…
1
vote
0 answers

How to Export classes/functions from a static library that was imported in a DLL

For example, I have 3 modules : Module1.cpp/h Module2.cpp/h and Module3.cpp/h, Now I will build it as a static library named as Modules.lib Then I will create another project that will be built as a DLL. Modules.lib will be imported to the project…
1
vote
1 answer

How to access private Members of a static library for Unittest

I have been trying to access private members of a class in a base project for unittesting the public void methods of the class in another project. These methods modify the private members, so this is my motivation. I have to work with visual studio…
1 2
3
8 9