static-libraries

in ubuntu 12.04 make cannot find Qt libraries

限于喜欢 提交于 2019-12-01 19:16:46
When I run make (after running qmake) I get the following error: /usr/bin/ld: cannot find -lQtGui /usr/bin/ld: cannot find -lQtCore In synaptic it shows that I have installed libqtcore4 and libqtgui4. There is no such directory as /usr/bin/ld. Basically, I've installed the QtSDK, and QtCreator seems to work fine in that it can build the hello world program. But I want to be able to work from the CLI and run make. I suspect that I may need to redirect the make program to look elsewhere for QtGui and QtCore. If so, how do I find out where those libraries are? I'm running Ubuntu 12.04 and I've

Mixing stdc++ and libc++ in an iOS project

落花浮王杯 提交于 2019-12-01 19:12:42
I am having a difficult time configuring an iOS project which uses a static library linked against the old libstdc++ that gcc used. That library is 32 and 64-bit. There are 6 libraries (libssl.a for example) that are 32-bit and must be updated. If I compile those libraries from source, they will be automatically linked with libc++, which will result in my linker complaining. Therefore, here are my questions: 1) Is there any way to have a single static library inside the project use libstdc++, and have the others use libc++? 2) How can I compile libraries from source (like libcrypto and libssh)

Fortran 'parameter' type not included in compiled object

∥☆過路亽.° 提交于 2019-12-01 18:42:17
I have a Fortran module that contains some variables that have the attribute parameter and some have the attribute save . The parameter ones are not included in the compiled object, which becomes a problem when trying to assemble a library. For example, consider a file testModule.f90 : module testMOD integer, save :: thisIsSaved = 1 integer, parameter :: thisIsParametered = 2 end module testMOD I compile this with: ifort -c testModule.f90 . When I check what's inside it: >$ nm testModule.o 0000000000000000 T testmod._ 0000000000000000 D testmod_mp_thisissaved_ only the thisIsSaved variable is

How to include C static libraries in CMAKE project on MAC OS X

孤街浪徒 提交于 2019-12-01 14:23:24
I am trying to learn Core Foundation with C/C++. I use JetBrains CLion that uses CMAKE. The problem is - I dunno how to include proper static libraries in C/C++ Makefile project on Mac. I need to link static library CFNetwork to my project in order to fix linking problems. Could you give me a quick hint? My case: #include <CFNetwork/CFNetwork.h> #include <iostream> int main() { CFStringRef bodyString = CFSTR(""); // Usually used for POST data CFDataRef bodyData = CFStringCreateExternalRepresentation(kCFAllocatorDefault, bodyString, kCFStringEncodingUTF8, 0); CFStringRef headerFieldName = CFSTR

How to make Xcode 3.2.3 build a specfic architecture?

ぃ、小莉子 提交于 2019-12-01 13:43:50
I'm getting the following error when including static libraries: missing required architecture i386 in file This worked 30 seconds previously, and only failed when I upgraded to Xcode 3.2.3. I've used "file" command to check - and, yes, XCode is building completely the wrong architecture (armv6 + armv7 instead of i386). This seems to be a major bug in latest Xcode, where Apple has re-written the build / compile / link settings. There's a note in the release notes saying very vaguely that they've "Changed it" because it used to be "confusing". This is not helpful. The build settings for the

Xamarin.iOS Binding Libraries / Native Frameworks

强颜欢笑 提交于 2019-12-01 12:01:04
For some reason i need to use this native framework in my Xamarin.iOS app and the problem comes, that i have no idea how to make bindings properly. So as i understood correctly, this framework also uses another one framework and i'm little bit confused, what exactly i need to do? Questions : Do i need to implement static library(is this possible to do with native frameworks ) as it shows on official documentation of Xamarin ? Can i make bindings for native framework that is using another framework too or i need to implement them separately? Maybe i should re-write all these native frameworks

Extend the makefile to generate a library and documentation with doxygen

允我心安 提交于 2019-12-01 11:55:51
I have implemented a binary tree program which includes the tree.c with the functions, the tree.h with the declarations of them and a main.c for testing. Also, I have a makefile which is: CC=gcc CFLAGS=-g -Wall DEPS = tree.h OBJ = main.o tree.o %.o: %.c $(DEPS) $(CC) -c -o $@ $< $(CFLAGS) tree: $(OBJ) $(CC) -o $@ $^ $(CFLAGS) clean: rm -f *.o tree Now I want to make it generate a library not only an object file for the binary trees functions and afterwards to generate the documentation of doxygen inside the makefile. Any help would be helpful. I know that my answer comes in a bit late, but i

Xcode4 Create Static Library from Existing Project

青春壹個敷衍的年華 提交于 2019-12-01 11:52:28
问题 Having trouble creating a static library in XCode4. I have been following this helpful tutorial: But I keep running into the same problem. How do you create a library from an existing project? I'm having difficulty building the project (not running) because it seems to run into compiler errors within the code I just imported. How do I set up an existing project for importing into a Cocoa Touch Static Library project? 回答1: Select Target-> Build Settings In the Linking Section Change the Mach-O

Static Vs Dynamic libraries

让人想犯罪 __ 提交于 2019-12-01 11:01:30
I have read about static and dynamic libraries. My question is little specifie dlopen dlclose : Benifit of dlopen is we can start the EXE with out loading the necessary libraries at the begining. Only when we need we will load the libratries and unload it from the memory. This is behaviour of dynamic linking libaries. My question is if i link the library libUtlities ld -o EXE main.o -lUtilities When I run the EXE, libUtlities will be loaded to the memory before I first use there functionalities which i observed in dbx (Solaris debugger) But will not contribute to the size of the EXE. 1.So is

Extend the makefile to generate a library and documentation with doxygen

旧街凉风 提交于 2019-12-01 10:59:58
问题 I have implemented a binary tree program which includes the tree.c with the functions, the tree.h with the declarations of them and a main.c for testing. Also, I have a makefile which is: CC=gcc CFLAGS=-g -Wall DEPS = tree.h OBJ = main.o tree.o %.o: %.c $(DEPS) $(CC) -c -o $@ $< $(CFLAGS) tree: $(OBJ) $(CC) -o $@ $^ $(CFLAGS) clean: rm -f *.o tree Now I want to make it generate a library not only an object file for the binary trees functions and afterwards to generate the documentation of