static-libraries

Node-gyp/C++ import shared library (.so)

China☆狼群 提交于 2020-01-03 16:56:19
问题 Importing a shared library (.so) doesn't seem to be an easy task. I tried to follow the instructions in this post, but I really can't get it to work. Building without the library RF24 is working. Followed their build instructions which produced the following filesets in the /usr/local/lib folder librf24-bcm.so librf24.so librf24.so.1 librf24.so.1.3 librf24.so.1.3.1 node_modules python2.7 python3.5 In my .cpp file I include the library like this #include <RF24.h> // also tested "" instead of <

How to convert a static library project into a dll project in VS2005

北城以北 提交于 2020-01-02 12:23:50
问题 When I create a project in vs2005. I can also create Win32->Win32Project. I can choose "console application" or "dll" or "static library" if I created a static library project. How can I convert it to dll project. I found in setting panel of the created project. General->Configuration Type, I can switch Static Library(.lib) to DLL However, after this setting. I does get a dll. but I do not have a lib with it. and I can not use it in other project. How to convert a static library project into

How to convert a static library project into a dll project in VS2005

孤街浪徒 提交于 2020-01-02 12:22:22
问题 When I create a project in vs2005. I can also create Win32->Win32Project. I can choose "console application" or "dll" or "static library" if I created a static library project. How can I convert it to dll project. I found in setting panel of the created project. General->Configuration Type, I can switch Static Library(.lib) to DLL However, after this setting. I does get a dll. but I do not have a lib with it. and I can not use it in other project. How to convert a static library project into

Distributing (native C++) libraries on windows

本秂侑毒 提交于 2020-01-02 09:38:14
问题 I would like to share a library I've written in native C++ with a third party. By that I mean I'd like to share a library providing functionality I've developed with someone who is using windows, whom I do not wish to share source code with. We can assume the same CPU architecture here. I've only ever shared source code directly, and mostly on linux. So the standard process of ensuring I can provide a binary that is as versatile as possible is a mystery to me. And I find documentation online

Including Third party libraries(Example : AFNetworking) in static library

徘徊边缘 提交于 2020-01-02 08:47:40
问题 Is it possible to include 3rd party libraries in static library? Example : Can AFNetworking can be included in static library 回答1: The direct answer to your question is YES, you can definitely include any third party library if they expose a public API (a set of headers for you to refer). For AFNetworking, they have made it so simple by providing a Cocoapods script so that your project can refer it. But be aware that when you release your static library with including AFNetwork inside, and

How do i write a static ansi-c library using visual studio 2010

做~自己de王妃 提交于 2020-01-02 08:32:45
问题 When I write and compile a lib file in VS2010 I am missing something. I somehow do not mark them correctly for export. The console command dumpbin.exe -headers mylib.lib > stackoverflow.txt generates the following output. (I removed empty lines) Microsoft (R) COFF/PE Dumper Version 10.00.30319.01 Copyright (C) Microsoft Corporation. All rights reserved. Dump of file mylib.lib File Type: LIBRARY ANON OBJECT HEADER VALUES 1 version 14C machine (x86) 515AC7B8 time date stamp Tue Apr 02 13:57:44

How to add .a C static library to Xcode and use it there? [duplicate]

[亡魂溺海] 提交于 2020-01-02 06:32:21
问题 This question already has answers here : How to “add existing frameworks” in Xcode 4? (9 answers) Closed 5 years ago . I have a static C library compiled with arm7-gcc and i want to use it in my iOS project. i added it to project but i can't figure out how to use it. 回答1: After adding the library to the project and including the header in your application codeб there is a second step. That step is letting the Xcode project know where the header file/files is/are. You do this by editing the

Can Delphi XE4 import iOS ObjC Class ? ( Static Library *.a )

。_饼干妹妹 提交于 2020-01-02 05:14:10
问题 Can Delphi XE4 import iOS ObjC Class ? ( Static Library *.a ) ObjC Code : test.a // test.h --------------------------------------------------------------- #import <Foundation/Foundation.h> @interface mycalc : NSObject { BOOL busy; } - (int) calc : (int) value; @end // test.m -------------------------------------------------------------- #import "test.h" @implementation mycalc -(int) calc:(int)value { busy = TRUE; return ( value + 1); } @end Delphi XE4 Code "Unit1.pas" for Testing Unit1;

How can i build project in visual studio 2012 on both way(dll and lib) together

送分小仙女□ 提交于 2020-01-02 05:02:23
问题 I managed to set up build project in dll mode and in library mode but not together: for build in dll: project->properties->Configuration Type: Dynamic Library (.dll) project->properties->Target Extension: .dll for build in library: project->properties->Configuration Type: Static library (.lib) project->properties->Target Extension: .lib it is possible to build both of them together? 回答1: Yes, you can have single project that can be used for .dll and .lib. Steps to be followed: Visual Studio

Compile check if compiling as static library

落爺英雄遲暮 提交于 2020-01-01 09:21:48
问题 How can i check at compilation if the project is being compiles as a lib ? (static library) Is there some kind of static assert or some other flag i can check? I can't add a preprocessor variable myself, because it's a utility that will be used in other projects across the company. So I'm wondering if there's some preprocessor flag that is is being sent by default or something. I'm using Visual Studio 2010 回答1: There is no such thing in predefined macro list - http://msdn.microsoft.com/en-us