compilation

How to build x64 and x86 projects that reference same projects

回眸只為那壹抹淺笑 提交于 2019-12-10 21:59:17
问题 I have three projects, ProjectA (exe) , ProjectB (exe) and ProjectD (class library) Project A references the System.Data.OracleClient.dll and ProjectD. Project B just references ProjectD. The 32-bit client version of oracle is installed and therefore ProjectA has to be a 32-bit application. Project B can be built as a 64-bit application. Project A build settings: Platform: Active (x86) Platform target: x86 Project B build settings: Platform: Active (Any CPU) Platform target: Any CPU My

Qt compiler flags order

↘锁芯ラ 提交于 2019-12-10 21:54:06
问题 My goal is to get rid of some types of compiler warnings. I found out that I can do that by adding compiler flags in my .pro file: QMAKE_CXXFLAGS += -Wno-unused-variable -Wno-reorder The problem is that they are added before flags that are generated by Qt build system. I've examined my compiler output: g++-4.2 -c -pipe -Wno-unused-variable -Wno-reorder -g -gdwarf-2 -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -Wall -W -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB So as you can see -Wall

Enabling flags (Wall, pedantic) for C/C++ compilation within Eclipse

依然范特西╮ 提交于 2019-12-10 21:37:07
问题 I am using Eclipse to write C/C++ programs. I would like to compile my code using the -Wall and -pedantic flags. How do I enable these flags within Eclipse so they are used by default whenever I compile a C/C++ program? 回答1: Go to Eclipse -> Project Explorer -> your project -> context menu -> Properties. A dialog appears. In the left pane, open "C/C++ Build" -> Settings. In the right pane, ensure that tab "Tool Settings" is selected -> Under "GCC C++ Compiler" select "Warnings" -> check the

How does the compiler resolve the address of variable declared after a variable-length array?

核能气质少年 提交于 2019-12-10 21:12:06
问题 Suppose I have the following function, which makes use of a variable-length array: void func(int size) { int var1; int arr[size]; int var2; ... } How does the compiler determine the address of var2 ? The only way that I can think of is by placing arr after var1 and var2 . But in that case, what if there were several variable-length arrays? Placing all of them after the "normal" variables would only help resolving the address of the first one. My implicit assumption here is that all the local

Scala Compiliation error with intellij

独自空忆成欢 提交于 2019-12-10 20:36:36
问题 I'm trying to compile a mixed java-scala code using intelliJ 14.1.4 but it keeps giving me this error: Error Compiling SBT component 'compiler-interface-2.9.2-52.0' I have tried to down grade my scala-compiler version but this didn't helped. any help would be appreciated. 回答1: I had the same issue: Error Compiling the SBT component 'compiler-interface-2.11.8-53.0' I was running Java 9,jdk-9.0.4, I fixed this by going back to Java 8, jdk1.8.0_161 回答2: Do not believe Intellij compiler. Make

Compiling RCurl from source on Windows

允我心安 提交于 2019-12-10 20:26:45
问题 As there is no Windows binary for v1.95-4.3 yet, I need to install/compile the RCurl package from source on Windows 8.1. (64 bit). Could someone tell me Which version of cURL I need Where the various files such as libcurl.dll etc. need to be placed exactly Does the x64 directory mentioned in the error message below correspond to the x64 directory of the R installation? > install.packages("RCurl", type="source") trying URL 'http://cran.rstudio.com/src/contrib/RCurl_1.95-4.3.tar.gz' Content

Is older version of flex SDK really required?

≡放荡痞女 提交于 2019-12-10 20:24:11
问题 I am configuring one already done project on my system which uses old flex sdk. following is my POM <FLEX_HOME>${build.flex3sdk.path}</FLEX_HOME> <flash.player.version>10</flash.player.version> <flex.sdk.version>4.1.0.16248</flex.sdk.version> I have latest flex SDK the version for this flex is "Version 4.5.1 build 21328". I am getting compile time error. Does a flex Mojo is dependent on the version of flex SDK ? why even changing the above POM to following is not helping me resolve the error?

How to compile classes to JDK1.5 when ant is running in JDK1.6

旧巷老猫 提交于 2019-12-10 19:33:34
问题 My development environment is running in JDK1.6, and I need to compile some classes so they are compatible with a client running JDK1.5. How would I do this with the 'javac' ant target? 回答1: Command line : javac -target 1.5 sourcefiles Ant: < javac srcdir="${src} destdir="${build}" target="1.5" /> 回答2: <javac source="1.5"... /> 来源: https://stackoverflow.com/questions/169044/how-to-compile-classes-to-jdk1-5-when-ant-is-running-in-jdk1-6

How do I compile and run a particular .java file in a package from CMD?

丶灬走出姿态 提交于 2019-12-10 19:09:10
问题 While there have been many questions related to this, I couldn't find one that specifically answers this. This is the file structure of my source code in Eclipse. Now I want to run serverStart.java in some machines, and clientStart.java in some other machines. It has to be compiled and run from command line (CMD) from the source code. I am not allowed to use Eclipse. What command do I use to compile and run the project? Should I create a jar file for this, or use javac? (I tried using javac

org.apache.jasper.JasperException: Unable to compile class for JSP

别来无恙 提交于 2019-12-10 18:55:13
问题 I'm new to using libraries, but i need to be able to send an email to users who forget their password. I'm trying to use the JavaMail and Apache Commons Email to implement this. However, I think I must be importing the libraries wrongly. When I try to send an email, I get the following message: Apr 17, 2011 11:54:33 AM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for