lib

Clang on Windows

匿名 (未验证) 提交于 2019-12-03 01:40:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: First of all, I've followed "Getting Started: Building and Running Clang" . In particular, I've built it according to "Using Visual Studio" section. In other words, I've built it using Visual Studio 2010. Secondly, I've manually set include and library paths to MinGW distribution: The simple program I'm trying to compile: #include using namespace std ; int main () { cout I get the following feedback from the compiler: In file included from C : \MinGW\lib\gcc\mingw32\4 . 5.2 \include\c ++ \iostream : 39 : In file included from C :

/usr/bin/ld: cannot find -lpython2.7

匿名 (未验证) 提交于 2019-12-03 01:39:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to install MySQLdb with Python 2.7. The error I'm getting looks like this: gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/include/mysql -I/opt/python2.7/include/python2.7 -c _mysql.c -o build/temp.linux-x86_64-2.7/_mysql.o -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 gcc -pthread -shared build/temp.linux-x86_64-2.7/_mysql.o -L/usr/lib64/mysql -L. -lmysqlclient_r -lz

GLFW and codeblocks

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am having some difficulties with codeblocks 10.05 recognizing the GLFW libraries on my machine. When I create an empty project, and copy paste this code found from this GLFW tutorial >> http://content.gpwiki.org/index.php/GLFW:Tutorials:Basics #include #include void Init(void); void Shut_Down(int return_code); void Main_Loop(void); void Draw_Square(float red, float green, float blue); void Draw(void); float rotate_y = 0, rotate_z = 0; const float rotations_per_tick = .2; int main(void) { Init(); Main_Loop(); Shut_Down(0); } void Init(void)

Linking to a static lib compiled with MSVC

匿名 (未验证) 提交于 2019-12-03 01:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to link with a simple C lib on windows against Rust library My lib is .h extern "C" { void say_hello(const char* s); } .cpp #include <stdio.h> void say_hello(const char* s) { printf("hello world"); } My Rust file #[link(name="CDbax", kind="static")] extern "C" { fn say_hello(s: *const libc::c_char) -> () ; } Linking fails by giving an error with one of the data symbols error: linking with `gcc` failed: exit code: 1 note: "gcc" "-Wl,--enable-long-section-names" "-fno-use-linker-plugin" "-Wl,--nxcompat" "-Wl,--large-address-aware" "

GLIBCXX_3.4.9 not found ubuntu

匿名 (未验证) 提交于 2019-12-03 01:36:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: i am trying to convert .doc file to .html file using shell_exec command php.. for this i have written the below code: $result = shell_exec ( "soffice --headless --convert-to html /opt/lampp/htdocs/converter/public/uploads/resume/" . $filename . " 2>&1" ); echo $result ; but i am getting this when i run the project from the browser: / usr / lib / libreoffice / program / oosplash : /opt/ lampp / lib / libstdc ++. so . 6 : version `GLIBCXX_3.4.9' not found (required by /usr/lib/libreoffice/program/../ure-link/lib/libuno_sal.so.3) /usr

RobotFramework - AutoItLibrary: Importing test library “AutoItLibrary” failed

匿名 (未验证) 提交于 2019-12-03 01:36:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Can anyone support me this case? I install the same steps in 2 machines with similar configurations. But one machine works. One machine fails when importing AutoItLibrary. View Ride log - the error shows: 20190322 16:34:04.751 [WARN]: Importing test library "AutoItLibrary" failed Traceback (most recent call last): Initializing test library 'AutoItLibrary' with no arguments failed: com_error: (-2147221008, 'CoInitialize has not been called.', None, None) Traceback (most recent call last): File "C:\Python27\lib\site-packages\robotide\lib\robot

libOpenCL.so uses VFP register arguments, output does not

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: currently I am trying to build Buddhabrot for ARM architecture but I am stuck at one point when I get the following error. I hope somebody can help. libOpenCL.so uses VFP register arguments, output does not libGAL.so uses VFP register arguments, output does not here's my makefile LIBS = -lm -lOpenCL -lGAL -lGL -lGLEW -lglut -lpthread CFLAGS = -Wall -g OBJECTS = main.o environment.o input.o animate.o buddhabrot.o buddhacl.o cmodules/timer.o all: prog prog: $(OBJECTS) c++ $(CFLAGS) -o prog $(OBJECTS) $(LIBS) %.o: %.cpp $(LIBS) clean: rm -f *.o

what is BOOST_ROOT?

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to build x64 version of http://code.google.com/p/quickfast/ That's how build scripts use %BOOST_ROOT%: set SETUP_CHECKING=BOOST_ROOT=%BOOST_ROOT% if not exist "%BOOST_ROOT%\boost" goto setup_is_bad includes += $(BOOST_ROOT)/include set RELEASE_PATH=%QUICKFAST_ROOT%\bin;%QUICKFAST_ROOT%\Output\Release;%MPC_ROOT%;%BOOST_ROOT%\lib; So build script expects following file/folders: %BOOST_ROOT%\boost $(BOOST_ROOT)/include %BOOST_ROOT%\lib I've downloaded/builded boost and there are no lib or include folder. That's what my boost folder

from Crypto import Random -&gt; ImportError: cannot import name Random

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have installed pycrypto (version 2.3) to /usr/local/lib/python2.6/dist-packages/Crypto/ and I am able to see the Random package there. But when I try to import the Crypto.Random, it pomps me that from Crypto.Random import * ImportError: No module named Random Does anyone know why this would even happen? Thanks. import Crypto import os print(Crypto.__file__); print (dir(Crypto)); print(os.listdir(os.path.dirname(Crypto.__file__))) Results: /usr/lib/python2.6/dist-packages/Crypto/__init__.pyc ['__all__', '__builtins__', '__doc__', '__file__'

Python: Error when import OpenSSL

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am learning Scrapy, from Scrapy's docs http://doc.scrapy.org/en/1.0/intro/overview.html I input scrapy runspider stackoverflow_spider.py -o top-stackoverflow-questions.json and cmd prompt ImportError: DLL load failed: %1 is not a valid Win32 application. Details: C:\Users\jiahao>scrapy runspider stackoverflow_spider.py -o top-stackoverflow-qu estions.json Traceback (most recent call last): File "c:\python27\lib\runpy.py", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "c:\python27\lib\runpy.py", line 72, in _run