linker-errors

error when trying to compile wrapper for openssl library libcrypto.a

拟墨画扇 提交于 2019-12-10 10:46:17
问题 I'm trying to build a dynamic library for android wrapper around libcrypto.a as described in http://wiki.openssl.org/index.php/FIPS_Library_and_Android#Using_FIPS_OpenSSL_in_a_real_Application I've produced the libcrypto.a as suggested on the page, but when I try to compile my wrapper.c I get a linker error, multiple definition of 'atexit' Here's the command line I'm using to compile: arm-linux-androideabi-gcc wrapper.c -fPIC -shared -I/usr/local/ssl/android-14/include -Wl,-Bstatic -lcrypto

Error “undefined reference to `sin'” when compiling (with -lm)

本秂侑毒 提交于 2019-12-10 09:22:36
问题 I've downloaded and compiled: http://leenissen.dk/fann/wp/ cmake version 2.8.11.2 gcc (Ubuntu/Linaro 4.8.1-10ubuntu8) 4.8.1 Command used to compile: cmake -D CMAKE_INSTALL_PREFIX:PATH=/usr . Installation: sudo make && sudo make install Then I go to examples/ directory inside fann project and try to compile examples by running: make all I'm getting an error: gcc -O3 xor_train.c -o xor_train -lfann -lm /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libfann.so: undefined reference to `sin'

Linking HDF5 library into Visual C++ DLL project: unresolved external symbol __imp__*

[亡魂溺海] 提交于 2019-12-10 07:04:27
问题 I'm building a plug-in with MS Visual C++ 2010 Express, and I would like to include capabilities from the HDF5 library. I have tried both building HDF5 from source with CMake, and installing the precompiled library (HDF5-1.8.7_CMake_x86_shared.zip for VC 2008). For either build directory/method, I've modified my project property: C/C++ > General > Additional Include Directories: add the include for HDF5 Linker > General > Additional Library Directories: add the lib for HDF5 Here is a snippet

1 duplicate symbol for architecture x86_64

心已入冬 提交于 2019-12-10 03:14:47
问题 I am not sure what I have done wrong. I moved my project folder to another folder and copied the backup folder to desktop. I tried to open the backup project and build, I received the linker error. So I decided to I delete my backup folder and moved back my project folder to desktop. I can't compile anymore and received the following error. Showing Recent Issues clang: error: linker command failed with exit code 1 (use -v to see invocation) duplicate symbol _main in: /Users/BRO/Library

VC++ Calling a function of /clr project from a function of non /clr project within a solution

风流意气都作罢 提交于 2019-12-09 18:21:23
问题 I referred this somewhat similar question before asking this, but unable to solve my problem I am looking at an old application with many solutions. The problem is happening in one of the solutions (say S). Here is the situation: A project (say P1) inside S has all C/C++ files and needs to call a C# function Since P1 also contains .c files, I can't use /clr option with that If I compile the .c files in P1 as .cpp files then it generates lots of errors, I don't intend to change the source in

Linker error 'unresolved external symbol' : working with templates

◇◆丶佛笑我妖孽 提交于 2019-12-09 16:31:42
问题 I have a template based class [Allotter.h & Allotter.cpp]: template <typename allotType> class Allotter { public: Allotter(); quint32 getAllotment(allotType*); bool removeAllotment(quint32, int auto_destruct = 0); private: QVector<QPair<quint32, allotType*>> indexReg; int init_topIndex; }; and it's usage is shown as [ActiveListener.h & ActiveListener.cpp]: class ActiveListener: public QObject { Q_OBJECT public: ActiveListener(); private slots: void processConnections(); void readFromSocket

How to build Boost 1.55 with Visual Studio 2013?

岁酱吖の 提交于 2019-12-09 10:43:59
问题 I'm trying to build Boost 1.55 with Visual Studio 2013. 1) I tried to use boost-binaries (boost-binaries), but Visual Studio wrote about the error, when I tried to compile: error LNK1104: cannot open file 'libboost_serialization-vc120-mt-gd-1_55.lib'. I used boost_1_55_0-msvc-12.0-32.exe or 1.55.0-build2 (boost-binaries). I didn't find that .lib file in the boost_1_55_0\lib32-msvc-12.0 directory. 2) I also tried to use this program BlueGo 0.1.7 (BlueGo). It works very smooth, and create all

Error building Adhoc for Three20-integrated app on XCode 4

依然范特西╮ 提交于 2019-12-08 12:13:21
问题 I'm building an iOS application with Three20 integrated. My app is running very well even on Simulator or iDevices. However, when I try to build an Ad-hoc to send to my customer for testing. I got a very strange error Ld /Users/kulnova/Library/Developer/Xcode/DerivedData/AppFantator-etlvrvoqzixizqbdblqhgefckwbb/ArchiveIntermediates/AppFantator/IntermediateBuildFilesPath/AppFantator.build/Adhoc-iphoneos/AppFantator.build/Objects-normal/armv6/Fantator normal armv6 cd /Users/kulnova/Desktop

Cmake cannot find Boost any longer

懵懂的女人 提交于 2019-12-08 12:08:50
问题 Until yesterday, my program compiled and linked correctly. Since today, the same program (same source and same environment), does not link. The boost library is not found. Top of CMakeLists.txt file: ... find_package (Boost REQUIRED) set (Boost_USE_STATIC_LIBS ON) set (Boost_USE_MULTITHREADED OFF) set (Boost_USE_STATIC_RUNTIME OFF) find_package (Boost COMPONENTS program_options) if (Boost_FOUND) include_directories(${Boost_INCLUDE_DIRS}) endif() ... Running cmake: cmake -DCMAKE_BUILD_TYPE

CUDA 6.5: error MSB3191 Unable to create directory and LNK2001 Unresolved External symbol

旧街凉风 提交于 2019-12-08 10:13:58
问题 I am running CUDA 6.5 on Visual Studio 2013 x64. I have a VC++ static library project named MyLib which is linked with MyClient x64 console executable project. I added CUDA 6.5 build customization to both the projects. In addition, I goto Configuration Properties -> CUDA C/C++ and have set “Target Machine Platform” as 64-bit for these two projects as I want to compile them for x64 platform I added MyCUDACode.cpp and MyCUDACode.h files to MyLib project and marked their item type as CUDA C/C++