linker-errors

Duplicate Symbols for Architecture arm64

Deadly 提交于 2019-12-17 08:54:10
问题 When I try running my Xcode Project it fails with an error stating that I have duplicate symbols. I looked online where the find these duplicates but have had no luck: Any ideas how to fix this? 回答1: From the errors, it would appear that the FacebookSDK.framework already includes the Bolts.framework classes. Try removing the additional Bolts.framework from the project. 回答2: For me it helped to switch the "No Common Blocks" compiler setting to NO: It pretty much seems to make sense, the

undefined reference to `strlwr' [closed]

情到浓时终转凉″ 提交于 2019-12-17 07:37:52
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . My code is like a text compressor, reading normal text and turns into numbers, every word has a number. It compiles in DevC++ but does not end, however, it does not compile in Ubuntu 13.10. I'm getting an error like in the title in Ubuntu "undefined reference to `strlwr'", my code is a little long so I am not able

Cuda C - Linker error - undefined reference

风流意气都作罢 提交于 2019-12-17 06:13:00
问题 I am having a hard time compiling a simple cuda program consiting of only two files. The main.c looks like this: #include "my_cuda.h" int main(int argc, char** argv){ dummy_gpu(); } The cuda.h looks like this: #ifndef MY_DUMMY #define MY_DUMMY void dummy_gpu(); #endif And the my_cuda.cu file loos like this: #include <cuda_runtime.h> #include "my_cuda.h" __global__ void dummy_gpu_kernel(){ //do something } void dummy_gpu(){ dummy_gpu_kernel<<<128,128>>>(); } However if I compile I allways

Cuda C - Linker error - undefined reference

独自空忆成欢 提交于 2019-12-17 06:12:20
问题 I am having a hard time compiling a simple cuda program consiting of only two files. The main.c looks like this: #include "my_cuda.h" int main(int argc, char** argv){ dummy_gpu(); } The cuda.h looks like this: #ifndef MY_DUMMY #define MY_DUMMY void dummy_gpu(); #endif And the my_cuda.cu file loos like this: #include <cuda_runtime.h> #include "my_cuda.h" __global__ void dummy_gpu_kernel(){ //do something } void dummy_gpu(){ dummy_gpu_kernel<<<128,128>>>(); } However if I compile I allways

Undefined symbols “vtable for …” and “typeinfo for…”?

萝らか妹 提交于 2019-12-17 02:49:21
问题 Nearly the final step but still some strange erros.... bash-3.2$ make g++ -Wall -c -g Myworld.cc g++ -Wall -g solvePlanningProblem.o Position.o AStarNode.o PRM.o PRMNode.o World.o SingleCircleWorld.o Myworld.o RECTANGLE.o CIRCLE.o -o solvePlanningProblem Undefined symbols: "vtable for Obstacle", referenced from: Obstacle::Obstacle()in Myworld.o "typeinfo for Obstacle", referenced from: typeinfo for RECTANGLEin RECTANGLE.o typeinfo for CIRCLEin CIRCLE.o ld: symbol(s) not found collect2: ld

Call C standard library function from asm in Visual Studio

安稳与你 提交于 2019-12-17 02:38:16
问题 I have a problem with calling C function from asm project created in visual studio (Win10 x64, Visual Studio 2015). Project consist of one asm file: .586 .model flat, stdcall option casemap:none includelib msvcrt.lib ExitProcess PROTO return:DWORD extern printf:near .data text BYTE "Text", 0 .code main PROC push offset text call printf add esp,4 invoke ExitProcess,0 main ENDP end main When I build project, linker outputs the error: Error LNK2019 unresolved external symbol _printf referenced

linker error using wxwidgets with cmake

可紊 提交于 2019-12-14 03:59:03
问题 I'm getting following linker error when I compile my program with VS2008 solution which is created with CMake for my wxwidgets based application. error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup but I'm able to compile the same program with a normal VS2008 solution which is not created with CMake. cmakelists.txt file contents: cmake_minimum_required(VERSION 2.8) SET(CMAKE_DEBUG_POSTFIX "d") ADD_DEFINITIONS(-DOSG_DEBUG_POSTFIX="${CMAKE_DEBUG_POSTFIX}")

What is an undefined reference/unresolved external symbol error and how do I fix it?

℡╲_俬逩灬. 提交于 2019-12-14 03:08:19
问题 What are undefined reference/unresolved external symbol errors? What are common causes and how to fix/prevent them? Feel free to edit/add your own. 回答1: Compiling a C++ program takes place in several steps, as specified by 2.2 (credits to Keith Thompson for the reference): The precedence among the syntax rules of translation is specified by the following phases [see footnote] . Physical source file characters are mapped, in an implementation-defined manner, to the basic source character set

Mingw x64 Windows: plugin needed to handle lto object

你离开我真会死。 提交于 2019-12-14 00:18:46
问题 When I'm trying to compile my project with 64-bit mingw (x86_64-5.1.0-posix-seh-rt_v4-rev0) I got messages: BFD: my/project/dir/filename.cpp.obj: plugin needed to handle lto object for each source file. Yet when I compile with 32-bit mingw(i686-5.1.0-posix-dwarf-rt_v4-rev0), everething is OK. My flags are: CXX_FLAGS "-fno-exceptions -fno-rtti -std=c++14 -O3 -fstrict-aliasing -flto -fomit-frame-pointer -march=native -ffast-math -funroll-loops" LINKER_FLAGS "-O1 -s" I tried to add -fuse-linker

Linker cannot find existing Static Library File

一曲冷凌霜 提交于 2019-12-13 23:31:41
问题 I have a Eclipse project using C programming language. I have been stuck with a problem related to linker error since two days now. I have checked various forums to find a solution. Tried a lot of the suggestions but could not resolve it. So as a last resort, i am asking question here. My main program MotorRun.c has code which calls functions in the static library FtMscLib_Static_LIBCMT_Release.Lib which is in Libs folder in the path C:\FT-Project\Common\Libs . I am using MinGW gcc compiler.