FAQ Database Discussion Community
c++,function,class,compilation,namespaces
This question already has an answer here: How come a non-const reference cannot bind to a temporary object? 11 answers I just created a cool class in a namespace and therefore I wanted to create 2 functions. They should have the same name, but different parameters. But every time...
javascript,angularjs,compilation,angular-directive,angular-ng-if
I have a custom directive myDirective that performs a task on an element. I have this directive in an ng-if block <div ng-if="condition"> <div my-directive></div> </div> Something like this fiddle: http://jsfiddle.net/hGnvv/ only the ng-if condition turns to true after my $http requests are loaded. The directive is probably compiled during...
compilation,smalltalk,pharo
It is said that Pharo's VM (CogVM) is developed, tested, profiled and etc in Smalltalk, but then the Smalltalk code is transcompiled to C, which is then compiled along side with some OS abstraction C code using the default system C compiler. Well, I'd like to do a similar thing,...
c,syntax,compilation
I need to upload my assignments to an online compiler, I was told it's GCC but I'm getting segfault on the online compiler but not when compiling with VS or on linux's GCC. Is there a way to make compiler print what compiler is it and its version?...
c++,c,compilation,linker,mpir
I am trying to compile a simple C program using GCC with MPIR under MinGW on my Windows 7 machine. I installed MPIR successfully (I guess) with configure, make, make check and make install (did not use "sudo" - what is this?). The program is called "mytest.cpp", sits in the...
osx,static,compilation,makefile,fortran
I have downloaded Bellhop, which is an underwater acoustic simulator written in Fortran. It can be found here with the Makefile. Question 1: I would like to know if it is possible to compile Fortran code, including everything needed, so a user without gfortran installed, can run it. I have...
ubuntu,compilation,rubygems,qpid
I have tried many things but, no luck, im on Ubuntu 14.04.2 LTS. So Here it is the problem: http://pastebin.com/eYftQcaP
java,inheritance,compilation,extends
so I am trying to learn about inheritance classes. First I created a class called Box to calculate the area of the box. Then I created a TestBox Class in which I have created a box object called fedEx. Box Class: public class Box { private String boxName; public void...
vba,compilation
This question already has an answer here: Compile error: End If without block If 1 answer Having an issue with below code. It says compile error when I run it, but I think I got bigger problems than that. What I am trying to accomplish: Open the most recent...
c,compiler-construction,compilation,compiler-optimization,storage-class-specifier
Recently I have been asked following Q in a interview : Who actually decide that where register variable will be store(in RAM or register). I have searched on google, the ans I got that compiler decide. but how can compiler decide ? It should be decided at run time as...
c,compilation,macros,cc
If I have a macro in my C: #ifdef SIGDET #if SIGDET == 1 isSignal = 1; /*Termination detected by signals*/ #endif #endif How can I set the value at compilation time? Is it some parameter to the compiler?...
javascript,intellij-idea,compilation,minify,transpiler
I have a directory structure that looks like this: ├── index.html ├── scripts │ ├── accordion │ │ └── accordion.js │ └── console │ └── test.js I want accordion.js and test.js to compile to a single minified file scripts/site.js. I've done this before with gulp but I'm trying to use...
c++,git,compilation
In our company we have really powerful linux based build servers (double Xeon with 40 core) and not so powerful win7 laptops. We building our product in C/C++ language for an esoteric CPU. The compiler only exist in Linux. I can edit my git repo with Qt Creator. It is...
c#,c++,visual-studio,compilation
I generated a .cpp file programmatically with c# and save it as a.cpp in "D:\" . My problem is how to compile this file programmatically in C# using anything like visual studio?
c++,compilation
I encounter the invalid conversion from 'const char*' to 'char* while compiling some code on a newer RHEL host. The error I encounter comes from an external library that I'm including that ideally I'd not like to change and I'm aware that ideally the correct solution is to fix the...
objective-c,ios6,macros,compilation,preprocessor
I'm reading about NS_ENUM & NS_OPTIONS. The author says: If you'd like to use either macro when targeting a previous version of iOS or OS X, you can simply inline like so: #ifndef NS_ENUM #define NS_ENUM(_type, _name) enum _name : _type _name; enum _name : _type #endif Is there any...
java,compilation
I have recently installed canopy (i don't know if this has anything to do with java) i have set to system variables the path to javac and java i was writing compiling and running java programs normally until now that it keeps telling me it can not find or load...
compilation,phantomjs,raspbian,libjpeg,raspberry-pi2
In my raspberry 2 with updated version of OSMC I would like to use PhantomJS with selenium in python and tried to compile it. Following this link: How to compile phantomjs on the raspberry pi 2 And this link: Adding swap for the raspberry pi Created swap file of 16Gb...
c,if-statement,compilation,generator
In the code below I have made a program that can make the amount of money you put in transfer into words. For example, "1234.56" turn into "One Thousand Two Hundred Thirty Four and ... 56 Cents". The thing is that when I try to input the amount "0.01" into...
java,eclipse,amazon-web-services,compilation,aspectj
After following an AWS tutorial for Eclipse, my code no longer compiles and runs. I decided to undo what the tutorial told me, so I may have changed some settings that I forgot to unchanged but I really cannot find the root of my problem. Eclipse seems to be back...
c,compilation
Sometimes I find it's easier to understand code (for yourself in the future or others) by being explicit about arithmetic. E.g. writing 1+2+3 if you're adding 3 values from elsewhere, rather than a single magic number +6. Is this inefficient or would a compiler optimize/reduce it appropriately? I'm thinking about...
c++,compilation,arm,cross-compiling,prelink
I am trying to cross-prelink a simple hello world program. I use the cross-compile toolchain arm-2012.03-57-arm-none-linux-gnueabi-i686-pc-linux-gnu and I am not sure if I have used the prelink-cross options correclty. I'll be glad if someone could point me to the right direction. More details about the source code on github. Thank...
java,compilation,warnings,javac,compiler-warnings
I cannot remove my warnings with unchecked cast. I believe this is very strange because I have added the @SuppressWarnings("unchecked") annotation on the method but the Javac still showing the warnings. [unchecked] unchecked cast (List<Integer>) getObject(LIST); return (List<Integer>) getObject(LIST); required: List<Integer> found: Object I have create an Example, It throws...
assembly,compilation,stack,compiler-optimization
I'm new to assembly language and I was wondering about local variables, why do we (or the compilers) preserve a space for them on the stack usually by decrement the "ESP" register at the prologue of the procedure and as the procedure ends we assign the "ESP" it's old value...
visual-studio-2010,visual-studio,build,compilation,msbuild
Extending this questions, I want to know, what is the reason, one would want to compile multiple projects to a single directory? Thank you. ...
javascript,compilation,compiler-errors,typescript,tsc
Hi! First off, sorry if this has been asked before, I tried some Googling but wasn't able to find anything (at least nothing that I recognised as being the same problem). I'm new to Typescript so still getting to grips! I'm making a little game as a project to brush...
c++,compilation,quantlib
I compiled Quantlib library in vs2012 under "release" and got the lib file, QuantLib-vc110-mt.lib. My question is what's the meaning of "mt" in this file name? My guess is that it is related to "release". Is there any standard I could follow? Or if there is any introduction to the...
c++,performance,compilation,comments
When a program written in C++ has comments, are those comments translated into machine language or do they never get that far? If I write a C++ program with an entire book amount of comments between two commands, will my program take longer to compile or run any slower? Thanks.
compilation,typescript,visual-studio-2015
Recently I Programmed in typescript with VS2015 Preview. Now i have installed VS2015 RC and i cannot find the following options i used to see in Project Properties: Compile on save. Don't make .map files. Module(requirejs/amd...) I have tried to search in other properties pages without success. Thank's...
git,github,compilation,continuous-integration
I would like to be able to compile our code base (regardless of how) on the CI/Build server which we have set up, and have it pushed to the repo automatically (so that our main branch can have the updated finished build without each commit being built manually), but am...
c++,compilation,linker,activemq,protocol-buffers
I have a cpp file in which I am trying to use the message that I created with protocol buffer. However I keep getting that famous "undefined reference" error as follows: undefined reference to PointMsg::PointMsg() undefined reference to PointMsg::~PointMsg() undefined reference to PointMsg::~PointMsg() Here is the proto file that I...
windows,matlab,unix,compilation
I currently have a Unix machine with the MATLAB runtime environment installed and a Windows machine with the MATLAB compiler installed. I can compile and run the standalone successfully on the Windows box, but I cannot determine how to compile from Windows for UNIX. Is this possible or would I...
c++,compilation
I built a dynamic library (.so file) on Ubuntu 12.04. Let's call it test.so. I had a test.cpp file, which calls some library functions. I first compiled test.cpp into test.o by: g++ test.cpp -o -c test.o It succeeded. Then I compiled test.o into test.so by: g++ -shared test.o -o test.so...
compilation,cmake
I am trying to run the examples from VTK and modify them to get to what I want to render on screen. I am currently trying to add a server application running in parallel to the VTK rendering. I already have my code written for the server but I was...
android,compilation,android-ndk,cross-compiling,stress-testing
Step (1) Download Source svn checkout http://stressapptest.googlecode.com/svn/trunk/ stressapptest Step (2) How to Compile above Code for Android x86 Phone ? Answer Not available with me. Step (3) How to Install ? adb push stressapptest /data/local/tmp/ adb shell chmod 777 /data/local/tmp/stressapptest adb shell /data/local/tmp/stressapptest Step (4) How to Run ? User...
ios,swift,compilation
In my Swift code to handle push notification I have this line: if ( application.applicationState == UIApplicationStateInactive || application.applicationState == UIApplicationStateBackground) { } Which cause the compilation error: Use of unresolved identifier 'UIApplicationStateInactive' Am I missing some import files? Thanks...
c#,asp.net,deployment,compilation
I am trying to deploy my first ASP.NET web application. So far I have gone to Build > Publish Web Site > Publish to file system and it has created my web application, packaging the .cs files into the bin directory in a number of .dlls. I have then copied...
c++,linux,compilation,makefile
I want to compile a project with a Makefile. I have defined target for linux in one of my .h #define LINUX_TARGET (COMPILER_GCC_4_4_1|FAMILY_LINUX|TYPE_X86) ... #ifdef _LINUX_TARGET_ #define __linux__ #define TARGET LINUX_TARGET ... #ifdef __linux__ #define __LINUX__ #endif So in my Makefile I say that, I will use this target: ......
c,compilation,cuda,gcc-warning,nvcc
I am trying to compile and link .c and .cu files and I am getting a warning warning: implicit declaration of function I have a function in the .cu file that I need to call from the .c file. The .c file is compiled using gcc and .cu file is...
testing,ant,junit,build,compilation
I am trying to compile a class named TestsVorgabe wich represents a testsuite including five other tests. It works fine with normal JUnit testing, but when i try to compile it with ant i get an error: cannot find symbol Project structure like this: project/src => Classes project/test => TestClasses...
java,xsd,compilation,maven-jaxb2-plugin
while compiling maven-jaxb2-plugin I get below error [INFO] --- maven-jaxb2-plugin:0.8.3:generate (default) @ customer-project --- [ERROR] Error while parsing schema(s).Location [ file:....Customer.xsd{12,97}]. org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'ttadcustomer:CustomerApplicationDetail' to a(n) 'element declaration' component. at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:195) at...
compilation,cuda,nvcc,caffe
I am trying to build my C++ application that uses caffe, in Debug Mode, VS2013 community, x64. To be able to build version that do not need cuda to run, I added to wrapped each .cu file as indicated below: #ifndef CPU_ONLY // .cu file contents #endif The project was...
python,windows,python-3.x,compilation
I know that there is a "Microsoft Visual C++ Compiler for Python 2.7" but is there, currently or planned, a Microsoft Visual C++ Compiler for Python 3.4 or eve Microsoft Visual C++ Compiler for Python 3.x for that matter? It would be supremely beneficial if I didn't have to install...
c#,visual-studio,compilation,resharper,var
Refactoring a big project (in term of code lines) I got to know ReSharper and the topic using var instead of the type which will only affect in compilation time. Does it makes a big impact in the compilation time? I would like to define a code style for it...
c#,compilation,postsharp,il,vs-2015-preview
At compile time, how can I check if a data type (and or value) is being used within a method. I'm attempting to build a living architecture that supports plugins. I want the compiler to throw an error if an event is not being raised within the plugin. I'm using...
java,compilation
I have this import source : import static MinecraftDungeonTileTypes.*; on class in same package as the class MinecraftDungeonTileTypes source of class: package mod.dungeonworld; public class MinecraftDungeonTileTypes { public static int TILE_WALL = 0; public static int TILE_ROAD = 1; public static int TILE_DOOR = 2; public static int TILE_CHEST =...
c++,gcc,assembly,compilation
I have an issue where when I try to access a member of a class in a certain file, it does not get the actual value of that member. But when I try to access it in other places I do. File A: find_func_wrapper ( Func_Container * rules, char *...
c,compilation,nim,nimrod
I wrote a Nim program, echo("Hello.") And then I tried to cross compile for a Linux machine, nim c --cpu:i386 --os:linux -c hello.nim This produced the following output: config/nim.cfg(45, 2) Hint: added path: '/Users/connor/.babel/pkgs/' [Path] config/nim.cfg(46, 2) Hint: added path: '/Users/connor/.nimble/pkgs/' [Path] Hint: used config file '/usr/local/lib/nim-0.10.2/config/nim.cfg' [Conf] Hint: system...
android,ubuntu,android-studio,compilation,vlc
I want to work on the VLC for Android project. So first I need to compile this project, I follow all the steps on https://wiki.videolan.org/AndroidCompile/ but when I do the sh compile.sh -a armeabi-v7a at the end I have this error: contribs: make failed Error:Execution failed for task ':libvlc:buildDebugARMv5'. >...
jsp,tomcat,compilation,el,taglib
I'm studying a code that mixes, in one JSP archive: java commands, Expression Language commands and Taglibs. So, I know the Java code is transformed in a Servlet, and the EL is compiled by the servlet container. But what about the taglibs? For example: <jsp:useBean id="contact" class="package1.package2.contact"/> Who deals with...
c,arrays,compilation,compiler-errors,include
I'm writing a program for vocabulary training, for myself. And the program itself should be available in different languages, atm in German and English. What I want is to have a Main File which manage all and two separate files for the functions in the right language. I compile all...
java,intellij-idea,compilation
Windows 7 x64 Bad problem description I know, but it's really hard to explain. Basically I was trying to make some tweaks to an old program in IntelliJ after recently reformatting Windows and reinstalling java and all that jazz. No matter what I changed in the program, the output wasn't...
c++,qt,templates,compilation
This question already has an answer here: Where and why do I have to put the “template” and “typename” keywords? 6 answers I am trying to create a function template containing a QList iterator : template <typename T> void funcTemplate() { QList<T>::ConstIterator it; } I get: In function 'void...
go,build,compilation
New Go programmers often don't know or get confused what the fundamental go build command does. What do exactly the go build and go install commands build and where do they put the result/output?...
java,compilation,version
This question already has an answer here: Class file has wrong version 52.0, should be 50.0 3 answers I create a java library program and used it in another java program as .jar file. My IDE is NetBeans. I tried the same concept via command line and I got...
java,compilation,syntax-error
I have been going through some online exercises in Java, and I can't figure out why this tid-bit of code won't compile. I am forgetting something obvious I know it. import java.util.Scanner; class age { public static void main (String[] args) { Scanner keyboard = new Scanner (System.in); int age;...
linux,compilation,compiler-errors,make,glibc
I'm compiling glibc-2.12.1 in Ubuntu 10.10 (32 bit in VirtualBox). Steps followed: configure --prefix=/usr --disable-asm make [I'm building it from a new directory] I'm getting the following errors on running make: gcc ../sysdeps/i386/fpu/s_frexp.S -c -D__NO_MATH_INLINES -D__LIBC_INTERNAL_MATH_INLINES -I../include -I/home/l33thckr/Installations/glibc-build/math -I/home/l33thckr/Installations/glibc-build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../sysdeps/unix/sysv/linux/i386/i686...
java,methods,compilation,palindrome
I was working on this for a class assignment, and I cannot for the life of me get it to compile. I keep getting this error: CPT236PalindromeCheckMethod.java:52: error: reached end of file while parsing } ^ 1 error I have tried adding, removing, and checking all of my braces, but...
compilation,installation,make,openshift,openshift-cartridge
I'm trying to install 'whois' on OpenShift online, I can't install with yum due to the permissions \> yum install whois error: cannot open Packages database in /var/lib/rpm CRITICAL:yum.main: Error: rpmdb open failed I don't know any alternative ways to install a package, so considering to compile source code. make...
caching,compilation,shader,gpu,cpu
To understand in general how GPU's cache support work, I read some information and understood this: CPU compiles shader and transmit resulting code of shader to GPU to execute and also save it to the disk. If necessary to execute the same shader, GPU get it saved binary code directly...
android,compilation,compiler-errors,android-gradle,build.gradle
After updating all the Google support libraries to the latest versions, from v21 to v22.2.0 and Play Services to v7.5, my project no longer builds successfully. The log i get is as follows: app:preDexDebug AGPBI: {"kind":"simple","text":"Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar ","sources":[{}]} AGPBI: {"kind":"simple","text":"Picked up JAVA_TOOL_OPTIONS: -javaagent:/usr/share/java/jayatanaag.jar ","sources":[{}]} AGPBI: {"kind":"simple","text":"Picked up JAVA_TOOL_OPTIONS:...
haskell,compilation,cabal,ghci
When I load a certain file in ghci / cabal repl, I get the following error message: No instance for (Control.Monad.Trans.Class.MonadTrans (EitherT Error)) arising from a use of ‘lift’ However, EitherT a is definitely an instance of MonadTrans; it's part of the package. cabal build succeeds; too. It seems ghci...
c#,compilation
I was writing this (very) simple C# code to send to my Raspberry Pi with Mono. New to this,i get error ("} expected") & ("Type or namespace definition, or end-of-file expected") Can you guys help me with compiling this? (btw, running mcs on mono in linux told me to add...
c++,c,compilation,operating-system
I have heard that all the popular OSes (Windows, Linux, Mac OS X) are built from C++ or C. Why, then, do we need to install GCC or any C++ compiler? Shouldn't programs be compiled by the computer itself as these operating systems support C++ and C?
java,android,eclipse,ant,compilation
I am trying to generate apk on command line using ant. I am able to use ant clean but for ant debug and ant release command I am getting following error. BUILD FAILED C:\Android\sdk\tools\ant\build.xml:649: The following error occurred while executing this line: C:\Android\sdk\tools\ant\build.xml:694: Execute failed: java.io.IOException: Cannot run program "C:\Workspace\SampleApp\${aapt}":...
c++,compilation,codeblocks,sfml
I'm trying to make sfml works with codeblocks. I did everything said in this video tutorial : https://www.youtube.com/watch?v=gEGWO8ug2bY Everything works if I only add SFML/Graphics.hpp, so my config isn't completely bad. But if I try to add SFML/Audio.hpp (I need to add sounds to my project) and write "sf::Music background_music;"...
java,generics,compilation
I'm having an unexpected error while compiling this example code (in the fails() method). IntelliJ used to not report the error in the IDE, but it has since started to report it (some of the classes were in a library, which seemed to confuse it) public class Main { //...
ios,objective-c,xcode,compilation
Xcode for now doesn't show me any compile errors, even if I purposely put there error statements it shows me "Build Succeeded". I already added this headers to the public section of Headers in Build Phases and also to Copy Files section in the same tab. I'll greatly appreciate any...
java,compilation,openoffice.org
I have a class Test.java import com.sun.star.bridge.XUnoUrlResolver; import com.sun.star.comp.helper.Bootstrap; import com.sun.star.lang.XMultiComponentFactory; import com.sun.star.lang.XMultiServiceFactory; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XComponentContext; public class Test { XMultiServiceFactory ooConnect() { final String sConnectionString = "uno:socket,host=localhost,port=8100;urp;StarOffice.ServiceManager"; // create the initial component context XComponentContext rComponentContext = null; try {...
java,lambda,compilation,java-8
A little backstory (ok, a lot): I've been working on creating classes that take java.util.function types and wrap their execution with try/catch blocks to remove the need for using try/catch from within lambda statements. Something that would allow this test code: list.forEach(ExceptionWrapper.wrapConsumer(s -> {throw new Exception(s);})); In doing so, I...
c++,scripting,compilation
I need to provide my users the ability to write mathematical computations into the program. I plan to have a simple text interface with a few buttons including those to validate the script grammar, save etc. Here's where it gets interesting. These functions the user is writing need to execute...
python,linux,compilation,pyqt,qscintilla
First I install QScintilla by following steps: 1: cd Qt4Qt5 qmake qscintilla.pro sudo make make install 2: cd ../designer-Qt4Qt5 qmake designer.pro sudo make sudo make install 3: cd ../Python python3 configure.py --pyqt=PyQt5 sudo make And here I met the problem : QAbstractScrollArea: No such file or directory and problem: qprinter.h:...
java,compilation,processing
I have some code like this: void drawPlot() { String[] dataItemPrices = loadStrings("itemPrices.csv"); //load in .csv file, store as string array itemName = new String[dataItemPrices.length-1]; itemPrice = new float[dataItemPrices.length-1]; for (int i=0; i<dataItemPrices.length-1; i++) { //split array to consider commas String[] tokensItemPrices = dataItemPrices[i+1].split(","); itemName[i] = tokensItemPrices[0]; itemPrice[i] = Float.parseFloat(tokensItemPrices[1]);...
bash,compilation,fortran,fftw
I'm quite new to Unix and bash systems, therefore i'm sorry in advance if the question might look stupid. I've recently downloaded and installed the FFTW program on my iMac (following the guidelines in chapter 10 of http://www.fftw.org/fftw3.pdf). The installation has succeeded as i get no error when i do...
java,intellij-idea,gradle,compilation
I'm looking for a simple solution to find and replace a constant before compile. For example @[email protected] replaced with 1.0.0 so the program has access to the correct version #s.
java,linux,compilation,smack
I am trying to compile a java file using SMACK for the XMPP libraries. In the folder of the java file i have included a Libs directory including all the *.jar files for SMACK but when i try javac filename i get this output: SmackCcsClient.java:6: error: package org.jivesoftware.smack does not...
java,regex,string,compilation,replaceall
I currently want to do this all in one line: String output = Pattern.compile("(\\r|\\n|\\t)").matcher(obj).replaceAll(""); Pattern.compile("[^\\p{Print}]").matcher(output).replaceAll(replacement); But I am unable to do the following: Pattern.compile("(\\r|\\n|\\t)").matcher(obj).replaceAll("").Pattern.compile("[^\\p{Print}]").matcher(output).replaceAll(replacement); How can I make it so that the second regex is also compiled at the same time?...
c,pointers,compilation,compiler-errors,dereference
To my function i get a void pointer, I would like to point to the next location considering the incoming pointer is of char type. int doSomething( void * somePtr ) { ((char*)somePtr)++; // Gives Compilation error } I get the following compilation error: Error[Pe137]: expression must be a modifiable...
xcode,compilation,linker,crashlytics
I have a problem after update of crashlytics framework in my project, through fabric app of course, it is linker error precisily, log below. Ld /Users/losiennik/Library/Developer/Xcode/DerivedData/InternalApp-cujowfodrnucvoglpkjjfmshsvrs/Build/Products/Debug-iphonesimulator/InternalApp.app/InternalApp normal x86_64 cd /Users/losiennik/temp/InternalApp-ios-fork_DONOTREMOVE export IPHONEOS_DEPLOYMENT_TARGET=7.0 export...
c++,netbeans,command-line,ant,compilation
Let's take this simple C/C++ application Netbeans project folder. In Netbeans IDE, we just hit build button on the toolbar to build the application. I want to do that automatically via Windows command line, how can I do that? I did google, and found some related posts though not very...
c,linux,ssl,compilation,openssl
I'm trying to compile a c-program with openssl-references. I'm using Linux Mint 17.1 and the development package "libssl-dev" is installed. #include <openssl/bio.h> #include <openssl/err.h> #include <openssl/ssl.h> ... void send_smtp_request(BIO *bio, const char *req) { BIO_puts(bio, req); BIO_flush(bio); printf("%s", req); } If I compile the code with: gcc -o client bio-ssl-smtpcli2.c...
c,compilation,generator,zero,money
My Cheque generator program has worked flawlessly for any input you give it to make it output the numerals in words. for example if I were to input "1234.56" it will out put "One Thousand Two Hundred Thirty Four Dollars and ... 56 Cents". However whenever I want to output...
c,compilation
I'm trying to removed unused code from my program - I can't delete the code for now, I just want to disable it for a start. Let's say that I have the following code: if (cond){ doSomething() } and cond is always false so doSomething is never called. I want...
dynamic,go,compilation,dynamically-generated
First sorry for perhaps a bad title - I imagine a lot of the difficulty I'm experiencing relates to not knowing the correct terminology for what I'm trying to achieve. In Go, I wish to have a program which when run can dynamically create a secondary binary. To illustrate with...
ios,compilation,make,gmp,armv7
I can't build GMP for iOS -arch armv7s no matter how I configure make. First, configure wasn't finding a c compiler, then I got past the configure stage with this : ./configure CC=clang CPP="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -E" CPPFLAGS="-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.3.sdk/ -miphoneos-version-min=8.0 -arch armv7s -target arm-apple-darwin" --host=aarch64-apple-darwin --disable-assembly --enable-static...
c,compilation,target
How does work target in compilation (in C) ? I am working on a project and I failed on that #error You have to define a target in your compiler project properties. And I wonder what was exacly target in compilation and how does it works. My compiler is GCC...
c,linux,gcc,compilation,compiler-warnings
I should compile my program with spec flags to gcc. Then gcc complained about return values not taken care of. WhenI use variables to take the return values then gcc complains again: $ gcc -pedantic -Wall -ansi -O4 miniShell.c miniShell.c: In function ‘cd’: miniShell.c:108:9: warning: variable ‘other_return’ set but not...
angularjs,compilation,directive
How to compile external HTML file ? I am loading a external HTML file via ajax based on the browser request in directive so is there any way to compile that file so that it can be used in directive? corpo.directive('corpInbox', function(companyFactory, $templateRequest, $compile) { var directive = {}; directive.restrict...
java,ant,junit,jar,compilation
I am having a compile issue with ant, junit.jar cannot be found here is my build file: <path id="lib"> <fileset dir="library"> <include name="*.jar" /> </fileset> </path> <target name="test"> <mkdir dir="tmp/reports" /> <mkdir dir="tmp/build" /> <javac srcdir="test" destdir="tmp/build" includeantruntime="false"> <classpath refid="lib" /> </javac> <echo message="Build done" /> <junit fork="yes" haltonfailure="yes"> <batchtest...
java,performance,compilation,javac
What should I do to investigate and troubleshoot a slow compilation problem? My project has about 100 classes and takes more than 45 seconds to compile, which seems very slow to me. As a reference, I have another project with 50 classes that compiles in 3 seconds. ps: I use...
c++,compilation,linker,header-files
I know how to call a simple function (i.e. add(int x, int y){return x+y;} and nothing more) from a second .cpp file. Now I wanted to go one step further and get following problem: in my main.cpp I got one line like this (important part is the variable a_wt at...
java,compilation,package
I think I am failing to understand java package structure, it seemed redundant to me that java files have a package declaration within, and then are also required to be present in a directory that matches the package name. For example, if I have a MyClass.java file: package com.example; public...
c++,c,compilation,linker,g++
I have a main.cpp file in a directory called test that has an #include "INIReader.h" The structure of the files is like below ---/test/main.cpp ---/inih/ini.h ini.c ---/inih/cpp/INIReader.h INIReader.cpp INIReader.cpp has these includes #include "../ini.h" #include "INIReader.h" I am trying to compile main.cpp in one line with g++ -o test -Wall...
linux,java,amazon-ec2,compilation,maven
I am a new user to Maven, as I am trying to use it to build apache spark on amazon EC2 VMs. I have mannually installed java version 1.7.0 on the VMs. However as I was running the Maven, the following error occurs: Failed to execute goal net.alchim31.maven:scala-maven-plugin:3.2.0:testCompile (scala-test-compile-first) on...
c++,compilation,console-application,compiler-optimization
I wrote a very simple program to see how it would behave when allocating many objects in memory. It runs fine and will consume all of my computer's memory given enough time, unless the cout statement is removed. Without that line, the program will simply exit right after initialization. Why?...
csv,compilation,output
I am trying to do something for my company. Basically what I need to do is Compile all the csv in a folder into one master file. From the master file, output potential error code found in the master file to the user. The key thing of this is to...
java,eclipse,swing,compilation,jgrasp
I decided to take a java class and the prof wants all the .java files to run in jGrasp but I am much more familiar with eclipse so I've been using that. I have two files who will compile fine in eclipse but when I open their .java files in...
java,php,compilation,compiler-errors,sandbox
I have a web app running on a LAMP stack that allows users to write java code into an HTML form, but depending on whether or not that code compiles successfully, I want to do different things. The way I have it currently is that the PHP program would generate...
html5,compilation,minko
I have followed all steps mentioned in Compiling the SDK for HTML5 to compile the Minko framework to HTML5. When I run the batch file build_html5.bat, i have this error 000000000000000), RtlUserThreadStart() + 0x21 bytes(s) clang++.exe: error: clang frontend command failed with exit code 255 (use -v to see invocation)...
angularjs,compilation
I have a directive attached to an input field that calls $compile(element)(scope); in its Link method. Everything works well, except when trying to use the following: ng-class="{ 'has-error' : frm.first_name.$invalid && frm.last_name.$dirty }" The $invalid property updates, but $dirty (and $pristine) always retain their initial values. plnkr example I'm not...