compilation

libtool error building thrift 0.9.1 on Ubuntu 13.04

我怕爱的太早我们不能终老 提交于 2019-12-04 16:24:03
问题 Building thrift 0.9.1 (support C, C++, java, C#, perl, python) on Ubuntu 13.04 I am getting this error. ./configure run without any options, make run without any options... Making all in test make[2]: Entering directory `/home/dvb/sw/thrift-0.9.1/test' Making all in nodejs make[3]: Entering directory `/home/dvb/sw/thrift-0.9.1/test/nodejs' make[3]: Nothing to be done for `all'. make[3]: Leaving directory `/home/dvb/sw/thrift-0.9.1/test/nodejs' Making all in cpp make[3]: Entering directory `

How to compile Cocos2d-X with Marmalade?

喜夏-厌秋 提交于 2019-12-04 14:15:07
Does any body know a tutorial, or a three simple step in order to compile the code the I wrote with Cocos2d-x with Marmalade? I want to take the code I already compiled and used in Cocos2d-X, insert into a marmalade project, and compile. In lots of places is written as easy, but I have difficult with this. I'll really appreciate if someone has some easy step to follow: "Maramalade + cocos2d-x for dummies style :) " Thanks, Adrian. I think this post on Marmalade forum may help you. The latest version include project mkb for helloworld and tests follow them. 来源: https://stackoverflow.com

how to link header files in c++

核能气质少年 提交于 2019-12-04 13:52:08
问题 I'm new to programming in C++ with header files. This is my current code: //a.h #ifndef a_H #define a_H namespace hello { class A { int a; public: void setA(int x); int getA(); }; } #endif //a.cpp #include "a.h" namespace hello { A::setA(int x) { a=x; } int A::getA() { return a; } } //ex2.cpp #include "a.h" #include<iostream> using namespace std; namespace hello { A* a1; } using namespace hello; int main() { a1=new A(); a1->setA(10); cout<<a1->getA(); return 1; } When I try to compile it with

How can I use CodeBlocks with the most recent versions of the VC++ compiler?

给你一囗甜甜゛ 提交于 2019-12-04 13:44:34
问题 I need to use C::B with a recent version of MS VC++ compiler like the ones in VS2015 or VS2017, and eventually future ones, but C::B does not offer such option. The most recent VC++ version that C::B allows the user to choose from its list, in the Settings, is VC++2010 (MSVC++10.0) wich is quite old. After some search I didn't find an explanation to overcome the problem. Not even C::B site offers a solution. How can I do that? 回答1: After some attempts I made with C::B settings and VC++

Play framework. no need to compile

会有一股神秘感。 提交于 2019-12-04 13:12:08
问题 I was introduced to the Play framework, and one of the amazing things I found about it is that there is no need to compile the project. You only need to save the edited files and reload the webpage. I've been taught that Java source code is compiled to bytecode and then compiled with the JIT compiler, so what is the magic inside of the Play framework? 回答1: When running in DEV mode, Play works by checking the last modified date of the java files, and cross referencing them with the .class

How would a DOM-less,statically typed, ahead-of-time-compiled javascript code compare to native code performance-wise?

≯℡__Kan透↙ 提交于 2019-12-04 12:49:34
The traditional answer to "why is Javascript slower than native code?" is: "Because it's interpreted". The problem with this claim is that interpretation is not a quality of the language itself. As a matter of fact, nowadays most Javascript code is being JITed, still, this isn't even close to native speed. What if we remove the interpretation factor from the equation and make Javascript AOT compiled? Will it then match the performance of native code? If yes, why isn't this widely done over the web*? If no, where is the performance bottleneck now? If the new bottleneck is DOM, what if we

CompileAssemblyFromDom throws access denied exception

孤者浪人 提交于 2019-12-04 12:42:28
The code: using (var codeProvider = new CSharpCodeProvider()) { var compilerParameter = new CompilerParameters( _assemblies, assemblyName, false) { GenerateInMemory = true, CompilerOptions = "/optimize" }; var compilerResults = codeProvider.CompileAssemblyFromDom( compilerParameter, templateResults.Select(r => r.GeneratedCode) .ToArray()); } It throws exception: CS1567 Error generating Win32 resource: Access is denied. What does it mean? I get this working. The problem was that assemblyName was file name not path, so I changed assemblyName = Path.Combine(Path.GetTempPath(), assemblyName); And

Java: Is method name/signature resolution done statically (compile-time)?

非 Y 不嫁゛ 提交于 2019-12-04 12:37:38
I encountered an interesting problem today which I thought was not possible in Java. I compiled my java code against version 2.6 of jgroups but used version 2.12 at runtime (tomcat web app deployment). I got the following error org.jgroups.Message.<init>(Lorg/jgroups/Address;Lorg/jgroups/Address;Ljava/io/Serializable;) Assuming that the API would have change since then, I thought of porting my code to jgroups-2.12, but to my surprise the code compiled fine with jgroups-2.12 and when I replaced the new jar (without changing a single line in my code, just compiling against jgroups-2.12 instead

Ant rebuilding library projects every time

你说的曾经没有我的故事 提交于 2019-12-04 12:33:51
问题 I have an Android project that includes two Android Library projects. I'm using the command ant debug to build the project and it takes around 1min and 20sec. I've counted that 17 seconds are used to compile the first android library project and 42 seconds are used to compile the second android library project. Since these two dependency projects are rarely updated it's not necessary to compile them each time. How can I avoid ant compiling the two Android library projects each build? 回答1: Add

Compile error while compiling libyaml under windows 7

六眼飞鱼酱① 提交于 2019-12-04 12:30:45
I am trying to compile libyaml under Windows 7 with MingW. I have tried to compile 0.1.2 and 0.1.3 but I get this error: api.c:579: error: failure in redeclaration of 'yaml_token_delete': dllimport'd symbol lacks external linkage. api.c:579: confused by earlier errors, bailing out Have anyone else seen this error? Do you guys and gals know how to fix it? There is a patch floating around the ruby installer community that I'm hoping points to a fix here . I had to manually patch the yaml-0.1.3 include/yaml.h file, changing the line: ... #ifdef WIN32 ... to ... #if defined(__MINGW32__) # define