static-linking

How to deal with 3rd party c++ libraries LNK4099 Warning in VisualStudio

萝らか妹 提交于 2019-12-09 06:33:42
问题 I have a Visual Studio c++ project where I use the linker Settings /WX (TreatWarningsAsLinkerErrors=true) In Debug, I compile with /Zi (Debug Database), which works fine. Now I have a 3rd party SDK which comes with a static library, but no .pdb file. As soon as I link this file in Debug, I get LNK4099: 3rd-party.lib(3rd-party.obj) : warning LNK4099: PDB "vc90.pdb" was not found "3rd-party.lib(3rd-party.obj)" or with "C:\OutDir\vc90.pdb" Please note that this message is misleading, as placing

openCV 243 using static libs error LNK2019

余生颓废 提交于 2019-12-09 04:46:50
问题 I'm trying to use openCV243 static libs in 64bit vs10 console application. My OS is win7 64 bit. I've included following libs: #pragma comment(lib,"../final_test/libs/staticlib/opencv_core243.lib") #pragma comment(lib,"../final_test/libs/staticlib/opencv_highgui243.lib") #pragma comment(lib,"../final_test/libs/staticlib/opencv_imgproc243.lib") #pragma comment(lib,"../final_test/libs/staticlib/opencv_video243d.lib") #pragma comment(lib,"../final_test/libs/staticlib/opencv_flann243.lib")

Static linking - working with GTKmm application? - revised

岁酱吖の 提交于 2019-12-08 14:17:59
问题 Is it possible to make a static linking (compilation) on Gtk(mm) program? I need the program to be less relaying on dependences in user's system. I try: g++ -static data/Area.h data/Picture.cpp data/GLScene.cpp data/KBDialog.cpp data/Dialogs.h data/FilePreview.cpp data/MainWindow.cpp prog.cpp -o prog `pkg-config --cflags --libs gtkmm-2.4 gtkglextmm-1.2 exiv2` but It fails: /usr/bin/ld: cannot find -lgtkmm-2.4 /usr/bin/ld: cannot find -lGL /usr/bin/ld: cannot find -latkmm-1.6 /usr/bin/ld:

I'm unable to get WiEngine skeleton project to run

落爺英雄遲暮 提交于 2019-12-08 11:31:42
问题 So I'm trying to port some cocos2d iOS apps over to Android and it looks like WiEngine is the most fully featured port of cocos2d to android ( http://www.wiyun.com/web/wiengine ), however I'm having issues getting the skeleton project to run. The latest problem I'm running into is I get a "Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/wiyun/engine/skeleton/Skeleton" error in the ADB. I'm trying to run it in the emulator which also may be an issue. I'm kind of stuck

Linking with 32bit libraries under linux 64bit

帅比萌擦擦* 提交于 2019-12-08 07:54:28
问题 Let me explain. I'm using webots in combination with aldebaran SDK. My operating system is Debian Squeeze amd64. Webots (64bit) will not work with aldebaran SDK because their libraries are compiled for 32bit. I do not have the source of the libs to recompile in 64bit. While trying to compile the default nao controller under webots, i get the following error: g++ -o naoqi_for_webots naoqi_for_webots.o naoproxy.o -L"/usr/local/webots/lib" -lController -L"/home/alex/naoqi-sdk-1.10.44-linux/lib"

Linking a dynamic library to a static library that links to other static libraries

限于喜欢 提交于 2019-12-08 07:41:11
问题 In my C++ application I have a static library (libCOMMON.a) that links to boost libraries: system, filsystem, timer and chrono. I am using CMake and here is how I create and link libCOMMON.a: ADD_LIBRARY(COMMON ${COMMON_SRCS}) target_link_libraries(COMMON ${BOOST_LIB_DIR}/libboost_filesystem.a ${BOOST_LIB_DIR}/libboost_system.a ${BOOST_LIB_DIR}/libboost_timer.a ${BOOST_LIB_DIR}/libboost_chrono.a ) I also have plugins for this application that links to libCOMMON.a. The plugins are built as

Include mingw libraries in compiled file

自古美人都是妖i 提交于 2019-12-07 16:51:52
问题 I am using cmake to generate a Eclipse CDT MinGW Project. (Eclipse Version Kepler) This is my Cmakelist: project(IMGTODICOM) find_package(ITK REQUIRED) include(${ITK_USE_FILE}) add_executable(IMGTODICOM IMGTODICOM.cxx) target_link_libraries(IMGTODICOM ITKReview ${ITK_LIBRARIES}) The code compile and run without problem in my computer, but in other PC it does not run. Some dll like libgcc_s_dw2-1.dll are required. I looked for this dll in my computer and I found it in C:\MinGW\bin . To solve

two static libraries with duplicate symbols in Xcode

笑着哭i 提交于 2019-12-07 15:17:22
问题 I have two static libraries which seem to have duplicate symbols(TBXML.o) and won't compile. ld: duplicate symbol _OBJC_METACLASS_$_TBXML in /Users/Hoya/Desktop/SocialSync/include/SMUFLib/deviceLib/libSFCommonLibs.a(TBXML.o) and /Users/Hoya/Desktop/SocialSync/Cauly/libCaulyDevice.a(TBXML.o) for architecture armv6 Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang failed with exit code 1 The developer of both libraries don't provide the source code so there is nothing I can

linking and paging in the system without virtual memory support

萝らか妹 提交于 2019-12-07 15:00:12
问题 First of all, is virtual memory a hardware feature of the system, or is it implemented solely by OS? During link-time relocation, the linker assigns run-time addresses to each section and each symbol, in the generated executable Do those run-time addresses correspond to virtual addresses? What if the system for which the executable is generated, does not use virtual memory? Next, if virtual memory is not used, then the application's address space is limited to the physical address space

static compilation of proftpd on AIX

谁说我不能喝 提交于 2019-12-07 07:38:59
问题 I'd like to compile proftpd on AIX to make it deployable on other server without having to reinstall all gnu lib library on each server. I already manage to compile it dynamicaly, but I can't manage to get it compile with the option LDFLAG="-Wl,-static" like advise in the official proftpd documentation. here the config.log error I get This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which