compilation

Python distutils gcc path

做~自己de王妃 提交于 2019-12-04 04:30:57
I'm trying to cross-compile the pycrypto package, and I'm getting closer and closer however, I've hit an issue I just can't figure out. I want distutils to use the cross-compile specific gcc- so I set the CC env var and it seems to respect the setting for the first invocation of the compiler, but thats it. export CC="/opt/teeos/buildroot/output/host/usr/bin/i586-linux-gcc" /opt/teeos/buildroot/output/host/usr/bin/i586-linux-gcc -fno-strict-aliasing -fwrapv -Wall -Wstrict-prototypes -fPIC -std=c99 --sysroot=/opt/teeos/buildroot/output/staging -I/opt/teeos/buildroot/output/staging/usr/include

How to fix undefined references to inflate/deflate functions?

烈酒焚心 提交于 2019-12-04 04:29:57
问题 I am trying to compile existing code provided in examples by zlib , but it is giving me error at the first place itself: nikhil@nikhil-Vostro-3500:~/zlib-1.2.8/examples$ gcc -o zpipe -g zpipe.c /tmp/ccVZzqsb.o: In function `def': /home/nikhil/zlib-1.2.8/examples/zpipe.c:32: undefined reference to `deflateInit_' /home/nikhil/zlib-1.2.8/examples/zpipe.c:40: undefined reference to `deflateEnd' /home/nikhil/zlib-1.2.8/examples/zpipe.c:51: undefined reference to `deflate' /home/nikhil/zlib-1.2.8

Compile check if compiling as static library

守給你的承諾、 提交于 2019-12-04 04:21:46
How can i check at compilation if the project is being compiles as a lib ? (static library) Is there some kind of static assert or some other flag i can check? I can't add a preprocessor variable myself, because it's a utility that will be used in other projects across the company. So I'm wondering if there's some preprocessor flag that is is being sent by default or something. I'm using Visual Studio 2010 Abyx There is no such thing in predefined macro list - http://msdn.microsoft.com/en-us/library/b0084kay%28v=vs.100%29.aspx . But by default MSVC adds _LIB to preprocessor definition list, if

DrJava: Cannot run code using JDK8.0

百般思念 提交于 2019-12-04 04:21:37
问题 Anyone having trouble using jdk 8.0 ?? Well, I don't know why I am facing some disturbances. Not sure why , after compiling a javacode in 'drjava' while I try to run it , it says ... " Current document is out of sync with the Interactions Pane and should be recompiled ! " I tried changing the compiler from JDK 8.0 to Eclipse Compiler 0.A48 it showed the same message .. after frequently recompiling and clicking the run button rather than using the shortcut key (F2) it ran !!!! then I toogled

Problem compiling in Clojure

柔情痞子 提交于 2019-12-04 04:03:46
I've been trying to compile a very simple test.clj in Clojure without any success. I have a thread on the Clojure Google Group with several responses, but nothing has helped. To quickly summarize, here is my clojure file: (ns test.test (:gen-class)) (defn -main [gre] (println (str "Hello " gre))) Basically it's the example file provided in the Clojure documentation . I have placed this file appropiately in clojure/src/test/test.clj , and should be able to compile with (compile 'test.test) , but I keep getting the error: java.io.IOException: The system cannot find the path specified (test.clj:1

freeling error with python and java api: undefined symbol: _ZN5boost6system15system_categoryEv

廉价感情. 提交于 2019-12-04 03:57:31
I installed freeling in Ubuntu 13.10 and I'm trying to use either the python or java apis but I get an error whenever I try to: matias@matias-IdeaPad-U430-Touch:~/Programas/Tools/freeling/freeling-3.1/APIs/python$ ./sample.py <test.txt >out.txt Traceback (most recent call last): File "./sample.py", line 10, in <module> import freeling File "/home/matias/Programas/Tools/freeling/freeling-3.1/APIs/python/freeling.py", line 26, in <module> _freeling = swig_import_helper() File "/home/matias/Programas/Tools/freeling/freeling-3.1/APIs/python/freeling.py", line 22, in swig_import_helper _mod = imp

Enforcing java annotations at compile time

本小妞迷上赌 提交于 2019-12-04 03:57:23
Hi : I wanted to make sure that an annotation is present at compile time in a class. Is this possible ? I realize that annoataions are, themselves, classes, so I assume so - but Im just not sure syntactically where and how to enforce/implement such a structure in my classes. You can write an annotation processor to run arbitrary logic at compile time. From an annotation processor, you can do things like check whether a class has a particular structure or member present if a particular annotation exists on that class. They are pretty flexible - for more of an idea of what you can do with them

Compile a TypeScript String to a Javascript String programmatically

我的未来我决定 提交于 2019-12-04 03:49:01
问题 Is there a way to compile a String containing TypeScript to its JavaScript String equivalent ? For instance, in Coffeescript (and LiveScript, coco etc) its a (simplified) one-liner: jsCompiledCode = require('coffee-script').compile('do -> console.log "Hello world"', {bare:true}); Can something similar be implemented for TypeScript, preferably without involving the filesystem ? Are there any implications with referencing other modules that would have to be resolved at compile time ? 回答1: You

Can a .NET app be compiled to native?

北战南征 提交于 2019-12-04 03:32:15
Just wondering if a .NET app can be compiled down to native machine code ahead of time? I'm not planning on doing so even if I could; I'm just curious. Thanks You can use NGen to compile it ahead of time, but this still depends on the .NET framework. Remotesoft's Salamander (a commercial app) can make a framework-less app. You CAN compile IL into native binaries. There are products that do it. The larger question is should you... If you want to remove all dot net dependencies to run without dot net Basically what these products are doing is precompiling down to the machine level (x86 usually)

Dev C++ compilation error, permission denied

拜拜、爱过 提交于 2019-12-04 03:22:51
问题 I want to compile a code program using dev c++ compiler but my compiler didn't compile my code.The program consist of two files one is header and other is implementation .cpp file. The code i want to compile is correct and working,but it didn't compiling on my pc(windows 7) Please help The error which i am getting is Permission denied ld returned 1 exit status C:\Makefile.win [Build Error] [Project1.exe] Error 1 here is my compile log Compiler: Default compiler Building Makefile: "C:\Makefile