compilation

stop solution build on first compilation\link error - msbuild

独自空忆成欢 提交于 2019-12-23 09:26:47
问题 I'm compiling a solution with many projects inside using VS2013's MSBuild. I want the build to stop if one of the projects fails to compile and that the error code of msbuild will be non-zero to indicate something has failed. Can it be done? I am running this command to start compiling: %MS_BUILD_PATH% "%workarea%\WindowsSolution.sln" /p:Configuration=Release /p:ContinueOnError=false /p:StopOnFirstFailure=true but it doesn't work as I want it. Any suggestions? 回答1: If anyone is still looking

size of array '__curl_rule_01__' is negative

瘦欲@ 提交于 2019-12-23 09:25:40
问题 I'm struggling with an error whilst trying to compile GIT. I've searched Google and the GIT source issues/bugs for similar issues but i've not found anything to help me. Originally I received the following error root@teemo:/usr/src/git# make prefix=/usr install install-doc install-html install-info; CC http-push.o In file included from cache.h:39:0, from http-push.c:1: /usr/include/zlib.h:34:19: fatal error: zconf.h: No such file or directory #include "zconf.h" ^ compilation terminated. make:

Java parser written in JavaScript

你说的曾经没有我的故事 提交于 2019-12-23 07:45:54
问题 I'm looking for implementation of Java source code parser written in JavaScript language. Do you know any? 回答1: Have a look at ANTLR which can have Javascript as a target, with the Java 1.5 grammar at http://www.antlr.org/grammar/1152141644268/Java.g Edit: link stopped working - try https://github.com/antlr/grammars-v4/blob/master/java/Java.g4 :) 回答2: Here is Java 1.7 parser http://mazko.github.io/jsjavaparser/ using PEG grammar by Roman R Redziejowski http://www.romanredz.se/Mouse/Java.1.7

FFmpeg: undefined references to av_frame_alloc()

巧了我就是萌 提交于 2019-12-23 07:27:21
问题 I want to get into FFmpeg developing and i started following these samples tutorial here: here I started with the first tutorial - tutorial01.c - but i run into this problem 'undefined references to av_frame_alloc()'. I'm on Ubuntu 12.04 LTS. This is my program: /* * File: main.c * Author: dontrythisathome * * Created on 3 giugno 2014, 23.02 */ #include <stdio.h> #include <libavcodec/avcodec.h> #include <libavformat/avformat.h> #include <libavutil/frame.h> #include <libswscale/swscale.h> /* *

Do C compilers de-duplicate (merge) code?

廉价感情. 提交于 2019-12-23 06:59:29
问题 Loop unrolling is a common optimization, but is the reverse done too? (to reduce size of the object file output, a smaller binary). I'm curious if it's a common technique for compilers to de-duplicate successive, identical blocks of code (or function calls) into a loop, or extract a duplicate block into a static function. I'm interested because there are header-only libraries * in C which can add a lot of duplicate code, so it would be useful to know if some C compilers are able to detect

grunt-contrib-less cannot find source files even though path is correct

﹥>﹥吖頭↗ 提交于 2019-12-23 06:54:19
问题 I'm trying to get grunt-contrib-less to compile a less file for me. I have the following gruntfile: less: { files: { "httpdocs/static/assets/css/result.css": "httpdocs/static/assets/css/dashboard.less" } }, The paths are definitely correct, I've triple checked that those files exist, yet, when I run grunt I get the following message: Running "less:files" (less) task >> Destination not written because no source files were provided. What am I missing from my gruntfile to make it properly

grunt-contrib-less cannot find source files even though path is correct

随声附和 提交于 2019-12-23 06:54:03
问题 I'm trying to get grunt-contrib-less to compile a less file for me. I have the following gruntfile: less: { files: { "httpdocs/static/assets/css/result.css": "httpdocs/static/assets/css/dashboard.less" } }, The paths are definitely correct, I've triple checked that those files exist, yet, when I run grunt I get the following message: Running "less:files" (less) task >> Destination not written because no source files were provided. What am I missing from my gruntfile to make it properly

How to create a method out of the text file?

扶醉桌前 提交于 2019-12-23 06:13:34
问题 I have a text ( .txt ) file that contains Java code! I want to create a method that includes this Java code and then call that method through the program. Can anybody suggest a way to do this? 回答1: let consider this example what it does actually load the source code, compile and execute the java code by simpler program by using JavaCompiler API. 回答2: Use the JavaCompiler. It can compile code from a String , so I'm sure it could handle code from a text file. Do you think instead of putting it

Issues compiling Scotch with mingw toolchain on Windows

给你一囗甜甜゛ 提交于 2019-12-23 05:37:08
问题 I'm trying to compile the Scotch partitioning library on Windows with the Mingw gcc toolchain (tried using both TDM GCC 5.1 and MSYS2 GCC 8.3) with identical issues (compiling on linux works fine). Scotch uses parsing with regex and depends on regex.h and associated bits which do not seem to be set up by default in the Mingw setup, resulting in the error dummysizes.c:88:19: fatal error: regex.h: No such file or directory So adding for example "-IC:\msys64\mingw64\include\c++\8.3.0\bits" to

Can i compile java for an older Java version with ant with a newer JDK so it generates output when it compiles code that uses the newer API?

五迷三道 提交于 2019-12-23 05:27:49
问题 I would like to only have JDK 8 installed on my system, and have the ant javac compile action create working classfiles for a java 6 environment. This sort of works if I syntactically only use java 6 compliant code, but my code can access methods/classes of the java 8 API and still be java 6 compliant according to ant's compile action. This is even the case when using the "javac" task attributes "source" and "target" set to java 6. I am aware that this generates the following warning: [javac]