static-libraries

Fortran 'parameter' type not included in compiled object

放肆的年华 提交于 2019-12-31 00:43:25
问题 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

Force CMake to use static libraries

邮差的信 提交于 2019-12-30 18:49:06
问题 [Shamelessly cross-posted from the CMake help list] I'm trying to create binaries as statically as possible. The fortran code I've got has got X11 and quadmath as dependencies, and I've come across a number of issues (maybe each of these issues should be in a different question?): My variables are currently set(CMAKE_LIBRARY_PATH /usr/X11/lib /usr/X11/include/X11 ${CMAKE_LIBRARY_PATH}) find_package(X11 REQUIRED) find_library(X11 NAMES X11.a PATHS /usr/X11/include/X11/ /usr/X11/lib) find

Using TagLib in Visual Studio 2010

*爱你&永不变心* 提交于 2019-12-30 07:32:46
问题 EDIT: Yes, I have looked at this post. Unfortunately, it looks like the user ends up using MingW in the end. I am on Windows 7 , 64-bit. I downloaded the most recent version of the TagLib code from the SVN repository. I am using revision 1202935 . I am trying to use TagLib in Visual Studio 2010 . I have gotten TagLib to work with QtCreator/MingW, but I want to start learning the Windows API so I am starting from scratch in Visual Studio 2010 (C++ of course). In VS2010, I have build zlib (both

Compiling C Library for iOS 9 From Command Line, Xcode 7-beta 2

こ雲淡風輕ζ 提交于 2019-12-30 07:31:43
问题 I am having trouble compiling a C library (gmp) for iOS 9 using the latest Xcode 7-beta clang. I am trying to produce bitcode to get all the warnings in Xcode to stop (and I would like to produce these libraries in bitcode). However, I can't even compile the library in the first place. ./configure fails, and after looking at the config.log, it seems ld is the problem as it is failing with "ld: library not found for -lSystem". Here is the command I have used to compile gmp in the past : .

Using TagLib in Visual Studio 2010

无人久伴 提交于 2019-12-30 07:31:08
问题 EDIT: Yes, I have looked at this post. Unfortunately, it looks like the user ends up using MingW in the end. I am on Windows 7 , 64-bit. I downloaded the most recent version of the TagLib code from the SVN repository. I am using revision 1202935 . I am trying to use TagLib in Visual Studio 2010 . I have gotten TagLib to work with QtCreator/MingW, but I want to start learning the Windows API so I am starting from scratch in Visual Studio 2010 (C++ of course). In VS2010, I have build zlib (both

Turn thin archive into normal one

孤街醉人 提交于 2019-12-30 04:46:26
问题 I'm building V8, and by default it builds as a "thin" archive, where the .a files essentially just contain pointers to the object files on your filesystem instead of containing the object files themselves. See man ar for details. I want to be able to put this library in a central place so that other people can link to it, and it would be obviously much easier to provide a normal archive file instead of providing a gaggle of object files as well. How do I take the thin archives produced by the

“unrecognized selector sent to instance” to a static library despite ObjC flag

南楼画角 提交于 2019-12-30 01:53:05
问题 I'm getting a runtime error in my application: 2011-05-17 09:42:31.124 rxsync[67464:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSMutableURLRequest setHTTPBodyWithFormMultipartValues:fileNames:contentTypes:usingBoundary:]: unrecognized selector sent to instance 0x4e3cd90' This method, NSMutableURLRequest setHTTPBodyWithFormMultipartValues: fileNames: contentTypes: usingBoundary:] , is defined by a static library that's part of my .xcworkspace.

handling dependencies for iOS Framework project

吃可爱长大的小学妹 提交于 2019-12-30 00:07:11
问题 I've created iOS Framework project using this method: https://github.com/jverkoey/iOS-Framework Works pretty neat but I'm a little confused on how to include libraries/frameworks that are needed by my framework to work and, in particular, how to do it so that in case 3rd party client app that uses my framework can include these libs as well without conflicts. Let's say my framework code needs these two things: FacebookSDK.framework libFlurry.a The first one is an iOS Framework. When I add it

What is the difference between .LIB and .OBJ files? (Visual Studio C++)

坚强是说给别人听的谎言 提交于 2019-12-29 04:30:09
问题 I know .OBJ is the result of compiling a unit of compilation and .LIB is a static library that can be created from several .OBJ, but this difference seems to be only in the number of units of compilation. Is there any other difference? Is it the same or different file format? I have come to this question when wondering if the same static variable defined in two (or more) .LIBs is merged or not during linking into the final executable. For .OBJs the variables are merged. But is it the same in

Statically link ncurses to program

蓝咒 提交于 2019-12-28 22:13:18
问题 I'm having some problems statically linking ncurses to one of my programs Here's a really simple sample program: #include<ncurses.h> int main(){ initscr(); printw("Hello world\n"); refresh(); getch(); endwin(); return 0; } When I compile it with gcc -static -lncurses hello_curses.c -o curses I get these errors: /tmp/ccwHJ6o1.o: In function `main': curses_hello.c:(.text+0x5): undefined reference to `initscr' curses_hello.c:(.text+0x14): undefined reference to `printw' curses_hello.c:(.text