linker-errors

static linking mongocxx missing sasl

纵然是瞬间 提交于 2019-12-24 20:29:32
问题 I am trying to build a simple mongocxx application and I am having linking errors: -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") -- Configuring done -- Generating done -- Build files have been written to: /code/build [ 50%] Linking CXX executable test_new_mongo ../mongo_cxx_driver/lib/libmongoc-static-1.0.a(mongoc-client.c.o): In function `_mongoc_get_rr_search': mongoc-client.c:(.text+0xa1): undefined reference to `__res_nsearch' mongoc-client.c:(.text+0xbd):

libxml2 not compilable on Cray, static/dynamic library missmatch

你说的曾经没有我的故事 提交于 2019-12-24 19:02:53
问题 Since I cannot seem to use the available libxml2 (see my other question), I want to compile it myself from scratch. I need to use the Cray wrapped Intel compiler for this. During the linking stage, I get many of these errors: ld: attempted static link of dynamic object `./.libs/libxml2.so' The configure line is this: libxml2/configure --prefix=local-icc CC=/opt/cray/pe/craype/2.5.14/bin/cc CXX=/opt/cray/pe/craype/2.5.14/bin/CC --enable-option-checking --host=x86_64-linux-gnu --without-zlib -

how to solve pgcc&openacc linker error “__pgi_uacc_multicorestart”, “__pgi_uacc_multicoreend”

末鹿安然 提交于 2019-12-24 18:16:18
问题 I am trying to parallelize my program in C with OpenACC 2.5 on Ubuntu 16.04 LTS. After a simple modification which is just adding one line, I can compile all my .c files to .o files. In the linking step, pgcc compiler shows undefined reference to `__pgi_uacc_multicorestart' and undefined reference to `__pgi_uacc_multicoreend' . Google search shows nothing related to these error message. Please help me on this problem. Here is the information and source code related to my system and program. I

Tracing LNK1112 error in Visual Studio 2012

久未见 提交于 2019-12-24 17:05:10
问题 I have a project that I have been compiling as an x64 project for quite some time, but for various reasons I have to compile it as an x86 project now. The problem I have run in to is that every time I compile the project I now get a LNK1112 error. 1>Link: 1> 1> Starting pass 1 1>Release\CameraCapture.obj : fatal error LNK1112: module machine type 'x64' conflicts with target machine type 'X86' 1> 1>Build FAILED. The file Release\CameraCapture.obj is compiled from a .cpp file that is part of my

undefined reference with a static instance

一个人想着一个人 提交于 2019-12-24 16:16:34
问题 I am currently porting some code from Visual Studio to Mingw GCC. It seems there is a problem when I attempt to use a static variable . This code works fine in Visual studio so I am not sure what the problem might be here. I have pasted an outline of what the code looks like. If this is insufficient I could put in more. Header file: .h namespace LG_Wrapper { template <LG_Thread Thread> class EffectApplication : public ktApplication { public: static EffectApplication<Thread>& GetInstance();

Unresolved External Symbol in Singleton Class

爷,独闯天下 提交于 2019-12-24 16:15:52
问题 I've been coding for a long time now but I do not understand this error. I am writing a custom system for providing unique integer ID's to specific instances of objects (I call them tags). And I am implementing one of the classes as a Singleton. The two classes for the Tagging system are defined as such: #include "singleton.h" class Tag: public bear::Singleton<Tag> { public: static dUINT32 RequestTag(Tagged* requester); static void RevokeTags(void); private: Tag(void); ~Tag(void); Tagged** m

gfortran undefined references

和自甴很熟 提交于 2019-12-24 14:50:27
问题 I'm trying to compile a program that depends on a lot of things. I use and modify the makefile provided to stand for my computer settings, but I keep getting a lot of undefined references in the last step of compilation. The command line that causes the troubles is: gfortran -o ../cosmomc ParamNames.o Matrix_utils.o settings.o IO.o cmbtypes.o Planck_like.o cmbdata.o WeakLen.o & bbn.o lrggettheory.o mpk.o bao.o supernovae.o HST.o SDSSLy-a-v3.o CMB_Cls_simple.o paramdef.o propose.o params_CMB.o

Multiple problems linking mysqlpp_d.lib

喜夏-厌秋 提交于 2019-12-24 12:46:26
问题 Today I added a class which manages the connection to a MySQL Server. It will be multi-threaded, so I want to use mysql++. I downloaded the newest version and compiled it in debug mode without any errors. Once I added the compiled mysqlpp_d.lib to my solutions, and of course the other requirements too (mysql 5.0 include and lib), I got some linker errors. Error 17 error LNK1169: one or more multiply defined symbols found C:\Users\root\Documents\Visual Studio 2010\Projects\C++\xxxx\binaries

Android android.database.CursorIndexOutOfBoundsException: Index 2 requested, with a size of 2

和自甴很熟 提交于 2019-12-24 10:47:31
问题 I have this log 07-27 21:42:05.635: ERROR/AndroidRuntime(26094): FATAL EXCEPTION: main 07-27 21:42:05.635: ERROR/AndroidRuntime(26094): android.database.CursorIndexOutOfBoundsException: Index 2 requested, with a size of 2 07-27 21:42:05.635: ERROR/AndroidRuntime(26094): at android.database.AbstractCursor.checkPosition(AbstractCursor.java:580) 07-27 21:42:05.635: ERROR/AndroidRuntime(26094): at android.database.AbstractWindowedCursor.checkPosition(AbstractWindowedCursor.java:214) 07-27 21:42

CUDA Cooperative Groups : Linking error

余生颓废 提交于 2019-12-24 07:56:37
问题 After reading about Cooperative Groups in CUDA 9, I've been trying synchronize at a grid level. I'm using Visual Studio 2017, a GTX 1060 and CUDA 9.1. I altered my code as follows: __global__ void ExplicitKernel_American(/* ... */) { int i = threadIdx.x + blockDim.x * blockIdx.x; auto grid = cooperative_groups::this_grid(); if (i < sizeS) { //... for (int j = 1; j < sizeT; ++j) { // ... grid.sync(); // __syncthreads(); } } } And, as stated in the documentation, I call my kernel this way :