static-libraries

How to migrate to C++ 11 in an OpenSource IDE (codelite) [closed]

一曲冷凌霜 提交于 2019-12-04 05:09:33
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I am using CodeLite 5.1 on Ubuntu QQ. By default, based on what was intalled previously with QQ and other tools, I have the gtCC and gt++ toolchains avialable. I always use gt++, which seems to get along OK with

How to “make” c++ code into a library for xcode

荒凉一梦 提交于 2019-12-04 04:27:34
To clarify the clarification: I know how to create libraries in Xcode using either obj-c or swift. I know how to use these in projects. I know how to compile these projects so everything works. What I do not know is how to take open source C source code (hehe) and build/make/compile it into a library. Just to clarify everything below: I am looking for a way to use c libraries in a Swift application, this means using Xcode. The c libraries do no have to be build with/in Xcode, I am fine with using other tools. I normally write all the code I use myself and unfortunately I only write Swift in

Rust program requires the libusb DLL to be present even though it was statically linked

坚强是说给别人听的谎言 提交于 2019-12-04 04:24:34
问题 I'm trying to make a Rust program that statically links against libusb, using the MSVC toolchain, but it blows up at run-time from a missing DLL: error: process didn't exit successfully: `target\debug\test_libusb.exe` (exit code: 0xc0000135, STATUS_DLL_NOT_FOUND) I used Dependency Walker to find that the missing DLL is LIBUSB-1.0.DLL. Adding it to the project solves the problem and so does dynamically linking everything, but I would like to avoid this solution. My starting point was this

CLion and Crypto++ library

天大地大妈咪最大 提交于 2019-12-04 04:24:33
问题 Some time ago I started coding my application in Visual Studio 2015, had no issues setting all of the library dependencies. Now, I decided to move to CLion. However my application has a dependency of cryptopp library, which I need to link in my CLion project. Currently, I'm facing tons of undefined reference errors undefined reference to `CryptoPP::Integer::Integer(char const*)' undefined reference to `CryptoPP::Integer::Integer(char const*)' undefined reference to `CryptoPP::Integer::Integer

Compile check if compiling as static library

守給你的承諾、 提交于 2019-12-04 04:21:46
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 Abyx There is no such thing in predefined macro list - http://msdn.microsoft.com/en-us/library/b0084kay%28v=vs.100%29.aspx . But by default MSVC adds _LIB to preprocessor definition list, if

How to build and use a C++ static library for ios application

孤人 提交于 2019-12-04 03:14:15
I know how to build a object C static library using iOS->Framework&Library->Cocoa Touch Static Library in xcode 4.6, and it is straightforward with the help of this tutorial Creating a Static Library in iOS Tutorial . One thing I am not sure, however, is how to build and use a pure C++ static library for io application. For building a C++ static library, I am also use iOS->Framework&Library->Cocoa Touch Static Library guideline, and the difference is that I delete all the .h and .m files when creating the static library project and then put all the C++ static library head files and

Compiling Python to a static lib and using pythoncore.lib

狂风中的少年 提交于 2019-12-04 02:56:13
I'm trying to build Python 2.7 as a static single .lib file. I've already made the following changes to the Python source code: Change to "Release" mode. Change all DLL projects to Static library (.lib) and set runtime library to /MT Add preprocessor definition Py_NO_ENABLE_SHARED to python and pythoncore I've managed to compile the pythoncore project to pythoncore.lib (about 11mb size), but when trying to compile the python project I get the following linking errors: error LNK2019: unresolved external symbol __Py_ActivateActCtx referenced in function __PyImport_GetDynLoadFunc C:\Python-2.7.3

Why do some DLL files need an additional .lib file for linking?

Deadly 提交于 2019-12-04 00:53:26
I have a question about library linking and .lib files... this is the context: OS = Windows IDE = QT I have created a DLL: MyLib.dll. To use that library in my QT project, I only have to include an include path, a link to the library and use the header files: LIBS += "C:\myPath\MyLib.dll" INCLUDEPATH += "C:\myPath" HEADERS += \ ../myPath/MyLib_global.h \ ../myPath/mylib.h I am using a third party dll in my project: third.dll If I do the same as in the above example, it does not work: LIBS += "C:\myPath\third.dll" The third party DLL comes with a .lib file "third.lib", which I apparently need

Visual Studio 2012 link errors with static libraries

﹥>﹥吖頭↗ 提交于 2019-12-04 00:18:25
I recently upgrade to 2012 from 2005 (I'm pretty sure) and ran into link errors when building my solution. I ran out of ideas after hours of searching google and putsing around. I've set up dozens of projects, so I'm pretty certain I've done everything right, but to be fair, it's been a few years. So, as a test I set up a new project. I called it App, a Windows application (.exe). I created a second project called Core and flagged it as a static library (.lib) in it's Configuration Type. Both are a part of the solution. In Core I added Test.cpp and Test.h which contain a small class that has a

Function names extraction from static library

╄→尐↘猪︶ㄣ 提交于 2019-12-03 23:56:22
I have a static library static_library.a How to list functions and methods realized there. or at least how to look is there concrete function 'FUNCTION_NAME' realized? Write nm static_library.a This gives you complete list of symbols in the library. frankc Use nm <library> as mentioned. If this is a library built from C++ you should use the nm --demangle option to get back the original symbol names rather than their "mangled" versions. 来源: https://stackoverflow.com/questions/2714287/function-names-extraction-from-static-library