lib

Using memory sanitizer with libstdc++

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I wish to use the -fsanitize=memory flag in clang to analyse a program like the following: #include #include #include using namespace std; void writeToFile(){ ofstream o; o.open("dum"); o As far as I know, this program is correct, but when I use clang++ san.cpp -fsanitize=memory It fails (at runtime) with: UMR in __interceptor_write at offset 0 inside [0x64800000e000, +5) ==9685== WARNING: MemorySanitizer: use-of-uninitialized-value #0 0x7f48d0899ae5 (/usr/lib/x86_64-linux-gnu/libstdc++.so.6+0x7bae5) #1 0x7f48d08d1787 (/usr/lib/x86_64-linux

Error importing Google Cloud Bigquery api module in python app

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to import bigquery into my python app from google.cloud import bigquery and run it locally with dev_appserver.py, but I receive an error: File "/Volumes/Budhi/Users/anjas/Projects/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle handler = _config_handle.add_wsgi_middleware(self._LoadHandler()) File "/Volumes/Budhi/Users/anjas/Projects/google-cloud-sdk/platform/google_appengine/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler handler, path, err = LoadObject(self._handler

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

匿名 (未验证) 提交于 2019-12-03 01:12:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: 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' /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib

glfw3 compiling undefined references

匿名 (未验证) 提交于 2019-12-03 01:10:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a problem with compiling my program which uses glfw3 library. I'm getting list of errors of undefined references when trying to compile with make but my classes are compiled into .o files, only final executable file is not created. stdout: g++ -Wall -g -c main.cpp -lGL -lGLU -lglfw3 -lX11 -lXxf86vm -lXrandr -lpthread -lXi g++ -Wall -g -c error.cpp -lGL -lGLU -lglfw3 -lX11 -lXxf86vm -lXrandr -lpthread -lXi g++ -Wall -g -c sWindow.cpp -lGL -lGLU -lglfw3 -lX11 -lXxf86vm -lXrandr -lpthread -lXi g++ -Wall -g -o ecl main.o error.o sWindow.o

Strange linking error: DSO missing from command line

匿名 (未验证) 提交于 2019-12-03 01:10:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When I'm compiling openvswitch-1.5.0, I've encountered the following compile error: gcc -Wstrict-prototypes -Wall -Wno-sign-compare -Wpointer-arith -Wdeclaration-after-statement -Wformat-security -Wswitch-enum -Wunused-parameter -Wstrict-aliasing -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-field-initializers -Wno-override-init -g -O2 -export-dynamic ***-lpthread*** -o utilities/ovs-dpctl utilities/ovs-dpctl.o lib/libopenvswitch.a /home/jyyoo/src/dpdk/build/lib/librte_eal.a /home

when linking the objects, make reports: group ended before it began?

匿名 (未验证) 提交于 2019-12-03 01:09:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I need to link my objects to library files from others. Thus, in my makefile, I write like this: LIBSB =- Wl ,-- start - group - ldiag - ldiag_esw - lacl - ldiagcint - lcint - lsal_appl \ - lbcm_compat - lbcm_rpc - lcpudb - ltrx - lstktask - llubde - ldrivers - ldiscover \ - lrcu - lpthread - lrt - lm - Wl ,-- end - group LIB := - L ../ lib / $ ( LIBSB ) # ../lib is the path of folder APP_NAME = L3appl $ ( APP_NAME ): $ ( OBJS ) $ ( CC ) - c $ ( INC_DIR ) $ ( SRCS ) $ ( CC ) - o $ ( APP_NAME ) $ ( OBJS ) $ ( LIB ) but the make

General SOCKS server failure with python tor but working from tor browser

匿名 (未验证) 提交于 2019-12-03 01:09:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I would like to use tor from python to automate requests. I made a test with a page to check IP and it works. I then pointed to the site I want to, and apparently they avoid a tor endpoint because (see stack trace below) - but it works from tor browser. Any better way to debug response of browser? (e.g. connection refused) Which things I am missing to query from python instead than from browser? I am trying with something like: socks.setdefaultproxy(socks.PROXY_TYPE_SOCKS5 , "127.0.0.1", 9150, True) socket.socket = socks.socksocket socks

g++ Linker errors after upgrading to gcc-4.8 on Debian, libc6

匿名 (未验证) 提交于 2019-12-03 01:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I have just dist-upgraded a Debian Weezy machine to run gcc-4.8 from gcc-4.7. Previously the build environment was sane and was compiling normally. Now it gives the following linker errors, with any program (even a trivial hello world): /usr/ bin / ld : /usr/ lib / debug / usr / lib / x86_64 - linux - gnu / crt1 . o (. debug_info ): relocation 0 has invalid symbol index 11 / usr / bin / ld : /usr/ lib / debug / usr / lib / x86_64 - linux - gnu / crt1 . o (. debug_info ): relocation 1 has invalid symbol index 12 / usr / bin / ld :

Git > dyld: lazy symbol binding failed: Symbol not found: _iconv_open

匿名 (未验证) 提交于 2019-12-03 01:06:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I don't know what happened but suddenly all my git commands won't work no more, this is the error message I get. $ git show dyld: lazy symbol binding failed: Symbol not found: _iconv_open Referenced from: /usr/local/bin/git Expected in: /Applications/MAMP/Library/lib//libiconv.2.dylib dyld: Symbol not found: _iconv_open Referenced from: /usr/local/bin/git Expected in: /Applications/MAMP/Library/lib//libiconv.2.dylib Any help is appreciated, thanks! Additional info: When I check the libiconv.2.dylib file it gives me this output: $ file /usr

brew install libyaml ERROR

匿名 (未验证) 提交于 2019-12-03 01:06:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: $ brew install libyaml ==> Downloading http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz Already downloaded: /Library/Caches/Homebrew/libyaml-0.1.4.tar.gz ==> ./configure --prefix=/usr/local/Cellar/libyaml/0.1.4 ==> make install Warning: Could not link libyaml. Unlinking... Error: The `brew link` step did not complete successfully The formula built, but is not symlinked into /usr/local You can try again using `brew link libyaml' ==> Summary ? /usr/local/Cellar/libyaml/0.1.4: 7 files, 336K, built in 9 seconds OS X 10.8.2 how do I fix this