linker-errors

Linker Errors Already defined

两盒软妹~` 提交于 2019-12-10 20:22:20
问题 I am making a nodejs addon. I have 5 files in my visual studio project : comm.h/cc, node_main.cc, util.h/cc I link it with a library node.lib node_main.cc has a function : v8::Handle<v8::Value> StartMethod(const v8::Arguments &args) { v8::HandleScope scope(args.GetIsolate()); // node_isolate int length = args.Length(); std::vector<std::unique_ptr<char[]>> argv; for(int i=0;i<length;++i) { if(args[i]->IsString()) { v8::String::Utf8Value str(args[i]); const int strLen = ToCStringLen(str); if

LNK1104 cannot open file '…lib.obj'

佐手、 提交于 2019-12-10 19:26:46
问题 I'm trying to update Visual Studio 2012 C++ projects so that I can compile them in Visual Studio 2015 (Update 3). I've gotten it narrowed down to just one error in one project that I'm completely stumped on: LNK1104 cannot open file 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib.obj' I've installed all the C++ language options (they don't get installed by default) and even uninstalled and reinstalled Visual Studio. That file doesn't exist in that directory, and it also doesn't

gcc, static library, external assembly function becomes undefined symbol

梦想与她 提交于 2019-12-10 18:08:32
问题 I have a problem with g++ building an application which links to a static library, where the latter shall contain some global functions written in external asm-files, compiled with yasm. So in the library, I have #ifdef __cplusplus extern "C" { #endif extern void __attribute__((cdecl)) interp1( char *pSrc ); extern void __attribute__((cdecl)) interp2( char *pSrc ); #ifdef __cplusplus } #endif which I reference elsewhere inside the library. Then, there is the implementation in an asm-file,

Undefined reference to 'main'

风流意气都作罢 提交于 2019-12-10 18:08:27
问题 You got to love linker errors *sarcasm*. Any way, I am developing a psp game using the psp port of allegro which came with pspsdk. And after I fixed all the other undefined references this one stumps me. The full error message and makefile and code below: Error details 1>------ Build started: Project: PSP Pong, Configuration: Debug Win32 ------ 1> psp-g++ -I. -IC:/pspsdk/psp/sdk/include -O2 -G0 -Wall -I. -IC:/pspsdk/psp/sdk/include -O2 -G0 -Wall -fno-exceptions -fno-rtti -D_PSP_FW_VERSION=150

Visual Studio 2013 dll export linkage error (LNK2019/LNK1120)

你离开我真会死。 提交于 2019-12-10 17:35:07
问题 I know similar question has been asked before, but it looks like there is something different in what concerns classes export than a simple function ... I have checked all those solutions, checked all the suggestions but it still looks like I am missing something ... What's happening: I have a master C++ project written in Visual Studio 2013 and I want to add a dll library with various utils. I have created a dummy one, with basically no functionality, but it fails to compile: 2> TestSvc_i.c

“Apple Mach-O (id) linker” error when adding external libraries to project

眉间皱痕 提交于 2019-12-10 17:29:59
问题 I added FMDB to my project then added the frameworks libsqlite3.dylib and libsqlite3.0.dylib, but I still get the build error. If I remove the FMDB classes from my project then it builds just fine. What other things should I check? Detailed info on the error: Ld /Users/gmi/Library/Developer/Xcode/DerivedData/iNROMockUp5->gjmgpakyszrgwbbxnkdxehexacxm/Build/Products/Debug->iphonesimulator/iNROMockUp5.app/iNROMockUp5 normal i386 cd /iOSDev/Testing/iNROMockUp5 setenv MACOSX_DEPLOYMENT_TARGET 10.6

linking error: undefined reference to icu_50::UnicodeString::UnicodeString()

谁说胖子不能爱 提交于 2019-12-10 17:16:41
问题 I am trying to compile my project where I've declared as class members some: icu::UnicodeString label; icu::UnicodeString tags; icu::UnicodeString domain; icu::UnicodeString data; After having included (yes it is found) #include <unicode/unistr.h> In my CMakeLists.txt it searches, finds and links with: icuuc icudata (libicuuc, libicudata) as the output suggests prior to throwing the errors: -o icarus -rdynamic -lPocoNet -lPocoUtil -lPocoXML -licuuc -licudata I have built and installed from

compiling numpy for python3 for AIX works but import fails

℡╲_俬逩灬. 提交于 2019-12-10 16:55:35
问题 Has someone had success building the numpy package for AIX6.1 or 7.1? I downloaded numpy-1.9.2.tar.gz and ran "python3 setup.py install". After patching a few source files it compiles. However, when I try to import numpy it says: ImportError: 0509-022 Cannot load module /python3.4/site-packages/numpy/core/multiarray.so. 0509-187 The local-exec model was used for thread-local storage, but the module is not the main program. 0509-193 Examine the .loader section header with the 'dump -Hv'

Compile/link error using pthread

给你一囗甜甜゛ 提交于 2019-12-10 16:24:06
问题 I try to make a little program that sorts an array using threads but I can't get it to compile with the thread support. Error: sortieren.c:(.text+0xd7): undefined reference to `ptread_create' I used a make file for easy compiling but also on command line I can't get it to work. Basic code: #include <pthread.h> int main(int argc, char **argv) { pthread_t threads[2]; // code snipped int ret = ptread_create(&threads[0], NULL, threadOne(), NULL); printf("ret: %d\n", ret); // code snipped } Make

boost iostreams library exist but i am unable link it

痴心易碎 提交于 2019-12-10 16:17:50
问题 I know that the re plenty of similar questions, but mine is litle bit different and non them helped me. I am using boost-iostreams library and here is my problem, i tried to link my program with libraries: ld -I/usr/include/boost/iostreams/ -I/usr/include/boost/iostreams/device/ -L/usr/lib/libboost_iostreams.so -lboost-iostreams fd.o -o x And the result was: ld: cannot find -lboost-iostreams When i tried to write it explicitly: ld -I/usr/include/boost/iostreams/ -I/usr/include/boost/iostreams