undefined-reference

How the assembly file is generated from the perl script in OpenSSL

ε祈祈猫儿з 提交于 2019-12-06 02:20:28
In the opensource code of OpenSSL(version 1.1.0e) I saw that some of the function definition is generated by the perl files present inside the folders. In the build.info file present in each folders inside the crypto, they have written some lines to generate the .s from the corresponding .pl. For example, for generating aes_p8_set_encrypt_key in crypto/aes/build.info : GENERATE[aesp8-ppc.s]=asm/aesp8-ppc.pl $(PERLASM_SCHEME) for generating OPENSSL_madd300_probe in crypto/build.info : GENERATE[ppccpuid.s]=ppccpuid.pl $(PERLASM_SCHEME) And also in the main Makefile(generated makefile), there are

Unsdefined reference to library class members errors from caller program

我与影子孤独终老i 提交于 2019-12-05 23:07:25
Additional Questions added below, 4/11/2011 I am developing a cross-platform set of shared libraries DLLs/Sos and tester programs in C++ though I have to be able to support C. The libraries will ship as object code only, but the tester program(s) will ship with source so our customers can have example code. For this reason I am designing the libraries to be loaded at runtime, i.e. dynamic linking using dlopen()/LoadLibraryA(). I am using g++ 4.4.3-4 on Umbutu 10.04 and VC++ 2008 on Vista/64 (in 32 bit mode). Everything seems to work just fine on Windows (right now). However, when I compile on

Undefined reference to memcpy_s

六月ゝ 毕业季﹏ 提交于 2019-12-05 17:59:21
I'm trying to fix an undefined reference to memcpy_s() error. I've included string.h in my file and the memcpy() function works okay, and I've also tried including memory.h . I'm on x64 Windows 7 and using gcc 4.8.1 to compile. #include <stdlib.h> #include <stdio.h> #include <string.h> void doMemCopy(char* buf, size_t buf_size, char* in, int chr) { memcpy_s(buf, buf_size, in, chr); } memory for buf has been allocated in the main function, which calls doMemCpy(buf, 64, in, bytes) . in is a string read from standard input Exact error from cmd terminal: undefined reference to "memcpy_s" collect2

Undefined reference to log10 function

做~自己de王妃 提交于 2019-12-05 09:31:52
I am building using Eclipse Kepler, and have included math.h . However, I am getting an error 'undefined reference to log10'. Also types uint8_t and unit32_t are not being resolved. I have included both stdint.h and inttypes.h , just to be sure, but wasn't successful. Can someone kindly help? 'undefined reference to log10'. Because, the header file only provides the forward declaration of the function. The actual function definition is present in the ("math") library. You need to link with the math library using -lm . Reference: man page for log10 Also, AFAIK, uint<N>_t are present in <stdint

crc32() missing when building libzip on OSX 10.9

折月煮酒 提交于 2019-12-05 08:54:19
I've downloaded the latest release of libzip and am currently trying to build it on OSX and failing: Linking C shared library libzip.dylib Undefined symbols for architecture x86_64: "_crc32", referenced from: __zip_filerange_crc in zip_filerange_crc.o _crc_read in zip_source_crc.o _decrypt in zip_source_pkware.o __zip_string_crc32 in zip_string.o (maybe you meant: __zip_string_crc32) "_deflate", referenced from: _compress_read in zip_source_deflate.o (maybe you meant: _zip_source_deflate) "_deflateEnd", referenced from: _deflate_compress in zip_source_deflate.o "_deflateInit2_", referenced

undefined reference to `boost::chrono::system_clock::now()' - Boost, and cpp-netlib

被刻印的时光 ゝ 提交于 2019-12-05 05:51:39
I come here to ask for a fix to a situation that has been frustrating me. A lot. First of all, I'm on Windows, I use MinGW as a compiler (C++). I've been having some problems with getting a program to work with the use of cpp-netlib and SSL (trying to POST to a https site). I believe everything is in order except this one error that keeps evading me. C:\boost_1_50_0\boost_1_50_0\stage\lib\libboost_thread-mgw46-mt-1_50.a(thread.o):thread.cpp|| undefined reference to 'boost::chrono::system_clock::now()' I'm sure that I've linked to chrono, as well as all the .a libs in BOOST_ROOT/stage/lib . I

g++ compile error: undefined reference to a shared library function which exists

柔情痞子 提交于 2019-12-04 23:26:24
I recently installed the hdf5 library on an ubuntu machine, and am now having trouble linking to the exported functions. I wrote a simple test script readHDF.cpp to explain the issue: #include <hdf5.h> int main(int argc, char * argv[]) { hid_t h5_file_id = H5Fopen(argv[1], H5F_ACC_RDWR, H5P_DEFAULT); return 0; } The compile command is g++ -Wl,-rpath,$HOME/hdf5/lib -I$HOME/hdf5/include \ -L$HOME/hdf5/lib -l:$HOME/hdf5/lib/libhdf5.so readHDF.cpp which returns the following error /tmp/cc6DXdxV.o: In function `main': readHDF.cpp:(.text+0x1f): undefined reference to `H5check_version' readHDF.cpp:(

undefined reference error for linking CUDA static or shared library with gcc

こ雲淡風輕ζ 提交于 2019-12-04 22:28:22
问题 gcc and CUDA question Hi, I have compiled a CUDA shared library but can't link it with the main program that uses it. I am compiling the main program with gcc. The code: simplemain.c #include <stdio.h> #include <stdlib.h> void fcudadriver(); int main() { printf("Main \n"); fcudadriver(); return 0; } test.cu __global__ void fcuda() { } void fcudadriver() { fcuda<<<1,1>>>(); } I compile test.cu as --> It works nvcc --compiler-options '-fPIC' -o libtest.so --shared test.cu I compile simplemain.c

Is there a sequence point between these assignments?

陌路散爱 提交于 2019-12-04 16:42:48
问题 Is there a sequence point between the two assignments in the following code: f(f(x=1,1),x=2); 回答1: The relevant quote from the (draft) standard [6.5.2.2, 10] is: The order of evaluation of the function designator, the actual arguments, and subexpressions within the actual arguments is unspecified, but there is a sequence point before the actual call. So for your expression, the first argument (in particular the call to f ) could be evaluated before the second argument; e.g.: (x = 1, 1), f <sp

“undefined reference” to Virtual Base class destructor [duplicate]

随声附和 提交于 2019-12-04 15:16:36
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: What is an undefined reference/unresolved external symbol error and how do I fix it? I have some experience with Java, and am now doing a C++ course. I wanted to try writing an interface, but I have run into some trouble with destructors which I have not been able to resolve, even with the help on the Internet... Here's my code: class Force { public: virtual ~Force(); virtual VECTOR eval(VECTOR x, double t); };