static-libraries

How can I handle DLL_EXPORT when compiling dll to a static library?

↘锁芯ラ 提交于 2020-08-07 09:49:45
问题 I have a project in visual c++ 2010, which contains preprocessor directives in a key header file. Actually, it is the ZMQ source code. The project is normally configured to be a dll, so the header uses DLL_EXPORT's status (defined/not defined). If the project is used to compile a dll, the header can be used by both the dll project or the client code, thanks to the following setup taken from zmq.h: #if defined _WIN32 # if defined DLL_EXPORT # define ZMQ_EXPORT __declspec(dllexport) # else #

How can I handle DLL_EXPORT when compiling dll to a static library?

爱⌒轻易说出口 提交于 2020-08-07 09:49:08
问题 I have a project in visual c++ 2010, which contains preprocessor directives in a key header file. Actually, it is the ZMQ source code. The project is normally configured to be a dll, so the header uses DLL_EXPORT's status (defined/not defined). If the project is used to compile a dll, the header can be used by both the dll project or the client code, thanks to the following setup taken from zmq.h: #if defined _WIN32 # if defined DLL_EXPORT # define ZMQ_EXPORT __declspec(dllexport) # else #

How to use FFTW DLL import library .lib as a static .lib in my project?

牧云@^-^@ 提交于 2020-07-21 07:38:48
问题 I've knowledge of C++ and compiling small plug-ins (always based on a similar and laid out workflow). Though currently I need to compile the latest version of FFTW into a static library (or get it from the compiled version which should supposedly be a lot easier) and it's giving me an insanely hard time. Probably because I don't know the ins and outs of compiling. As a note I'm working on Windows with Visual Studio. Since I really want to know how this should work I'm asking the question here

What happens to static variables when libraries are statically linked

不羁的心 提交于 2020-07-17 08:27:51
问题 Let's say I have library (A) implementing the singleton pattern (it has a static variable in its implementation). (A) library is compiled as a static library. Now, let's say I have in my probject: (B) , another static library linking statically with (A) . (C) , another static library linking statically with (A) . (D) , a top level program linking with (B) and (C) . In the end, is my singleton really a singleton (and my variable really static)? Are (B) and (C) seing the same static variable

How to convert an Xcode project into a static library or framework?

坚强是说给别人听的谎言 提交于 2020-07-17 05:35:45
问题 I have a project which I need to import into other project as a framework just like how we import Coredata framework, Quartzcore etc..How to achieve that ? How to compile my project into a library or framework which can be imported into other projects ? Please explain the steps. Thanks in advance. 回答1: https://github.com/jverkoey/iOS-Framework try this link for creation of framework and bundle of resources.wrap up the images, xibs and other resources you have used in your project into a

How to compile CHOLMOD library (SuiteSparse) from IDE

三世轮回 提交于 2020-06-28 18:02:56
问题 For some time I am trying to create a static CHOLMOD lib from SuiteSparse Each other library (f.ex. Umfpack) can be easiy compiled from IDE (I used Code::Blocks on Linux and Visual Studio on Windows). However when trying to compile CHOLMOD I get bunch of syntax errors like: t_cholmod_triplet.c(21): error C2061: syntax error : identifier 'TEMPLATE' I investigated that there are some #defines missing (like PATTERN, REAL defines) and therefore those definitions of TEMPLATE are invisible. I

cmake linking against static libraries - do you have to tell cmake where to look?

折月煮酒 提交于 2020-06-26 09:44:48
问题 I've installed the c++ library pcapplusplus on my linux machine and the .a files have been put in /usr/local/lib . I am now trying to link my project with it in cmake using target_link_libraries(${PROJECT_NAME} libCommon++.a libPacket++.a libPcap++.a) . However, it can't find Packet.h which is part of libPacket++.a . What am I doing wrong here? Do I have to tell cmake where to look? cmake_minimum_required(VERSION 2.8.9) project(networksniffer) # The version number. set (networksniffer_VERSION

Xcode error: Missing required module 'Firebase'

喜你入骨 提交于 2020-06-25 08:35:45
问题 The problem: I have a dynamic framework, which uses Firebase added by cocoapods. And I also have the App, which uses this dynamic framework. But when I try to build the project I got error Missing required module Firebase . I tried the following: remove derived data + clean re-install pods add 'Import paths' to the build settings (in this case I got error 'Library not loaded' in runtime) My podfile: target 'Project' do ... end target 'Framework' do pod 'Firebase/Core' pod 'Firebase/Auth' end

Using static libraries with CocoaPods 1.5 no such module at import

℡╲_俬逩灬. 提交于 2020-06-25 00:14:29
问题 With CocoaPods 1.5 released I am trying to migrate from having 10-15 dynamic pods in my projects to having them as static libraries instead, with the goal of speeding up my app start time. At this stage my simple (i.e., simplistic) attempt has been to remove the use_frameworks command when running my pod install. This indeed transforms my pods to static libraries. But it also produces a series of "No Such Module" throughout my project when trying to import my Pods (e.g., "No such Module

Using static libraries with CocoaPods 1.5 no such module at import

|▌冷眼眸甩不掉的悲伤 提交于 2020-06-25 00:13:17
问题 With CocoaPods 1.5 released I am trying to migrate from having 10-15 dynamic pods in my projects to having them as static libraries instead, with the goal of speeding up my app start time. At this stage my simple (i.e., simplistic) attempt has been to remove the use_frameworks command when running my pod install. This indeed transforms my pods to static libraries. But it also produces a series of "No Such Module" throughout my project when trying to import my Pods (e.g., "No such Module