compilation

Diagnosing Scala compile error “value to is not a member of Int”

≯℡__Kan透↙ 提交于 2019-12-22 11:24:31
问题 I made a code change within a Scala class that had been working fine. Upon trying to compile the modification, the compiler spit out the error message, "value to is not a member of Int" relating to this (pre-existing) line of code: for (i <- 0 to cColumn -1) { ... } Doing some research, I came across some bug reports on the "to" method - and also that "to" is apparently a method provided within the intWrapper class(?). So, based upon that info, I started looking at my class's import

Visual Studio 2010 is Eating My DLLs! - referenced third party dlls missing after build

久未见 提交于 2019-12-22 11:04:48
问题 Please help I am pulling my hair out over this: I have a Visual Studio ASP.NET MVC solution in which a project references a third party DLL, log4net in this case. My solution tree is as follows: GenericLibrary MyApp.NHibernate MyApp.Library MyApp.WebUI MyApp.WebUI is the main start-up MVC web project and has references to GenericLibrary , MyApp.NHibernate and MyApp.Library . MyApp.NHibernate has references to all the NHibernate bits including log4net. Now the problem is when I compile my

What is the default PHP configuration?

血红的双手。 提交于 2019-12-22 11:04:00
问题 What are the default PHP --configure flags, that are set when doing a standard LAMP install via tasksel? I have to recompile PHP to include process control for my buddy, but I haven't been able to find a list of all flags that come by "default". 回答1: You can do php -i | grep config -i this should return what are the configure used by taskel. Backup your php.ini before you proceed with re-compilation... PS: you might need to download PHP source for compilation 回答2: If you're trying to recreate

grunt-contrib-handlebars - Output is different than when I run the handlebars npm task

雨燕双飞 提交于 2019-12-22 10:28:13
问题 Thank you in advance for your time and help. I'm trying to precompile handlebars (.hbs) templates using grunt-contrib-handlebars When I run the run task I end up with this: this["JST"] = this["JST"] || {}; this["JST"]["app/templates/err.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) { this.compilerInfo = [4,'>= 1.0.0']; helpers = this.merge(helpers, Handlebars.helpers); data = data || {}; var buffer = "", stack1, functionType="function", escapeExpression=this

Linking partially static and partially dynamic in GCC

霸气de小男生 提交于 2019-12-22 10:19:02
问题 I'm trying to compile a very simple (as simple as hello world) C program using both dynamic and static linking with GCC. I want to know how to do this in general, so my minimal test example is simply trying to link libc as static and libm dynamically. I've come across at least the following other questions regarding the same topic: GCC: static linking only some libraries Static link of shared library function in gcc Some of the answers therein suggest things such as using -Wl,-Bstatic and -Wl

Images in iPhone app appear in Simulator, but not when compiled to device

无人久伴 提交于 2019-12-22 09:23:48
问题 I am learning iPhone development, and have built a simple app that has an image that changes to another image when you tap it. If i build it to the simulator, it works fine, but if i build it to the device the images dont appear. i feel like they aren't being copied across. I have checked they have been named correctly and i have made sure i imported them to 'resources' I dont think it is a problem with the code because i added a thing to also make text appear when the image is tapped, and

Compile error: unresolved overloaded function type

笑着哭i 提交于 2019-12-22 08:49:52
问题 I try to compile the following with g++ 4.7.2: template <typename T> struct A { struct B { T t; template<T B::*M> T get() { return this->*M; } }; B b; T get() { return b.get<&B::t>(); } }; int main() { A<int> a; a.get(); } It gives me test.cpp: In member function ‘T A<T>::get()’: test.cpp:15:23: error: expected primary-expression before ‘)’ token test.cpp: In instantiation of ‘T A<T>::get() [with T = int]’: test.cpp:22:8: required from here test.cpp:15:23: error: invalid operands of types ‘

The type or namespace 'MyNamespace' does not exist etc

谁说胖子不能爱 提交于 2019-12-22 08:44:49
问题 I have the usual type or namespace name does not exist error, except that I have referenced the assembly, the using statement does not show as incorrect and the classes I am referencing are public. In fact, I reference and using the same assembly in a different solution to do the same thing and it works fine. This is VS2010 by the way. Any ideas anyone? Ed 回答1: I have discovered the answer to this problem if anyone else is interested. In my main application I target the .NET Framework 4

Compiling c++ and cuda code with MinGW in QTCreator

点点圈 提交于 2019-12-22 08:37:31
问题 Im trying to compile simple cuda program (i took source code from Compiling Cuda code in Qt Creator on Windows) This is my .pro file: TARGET = Cuda # Define output directories DESTDIR = release OBJECTS_DIR = release/obj CUDA_OBJECTS_DIR = release/cuda # Sourcefiles SOURCES += main.cpp # This makes the .cu files appear in your project OTHER_FILES += vectorAddition.cu # CUDA settings <-- may change depending on your system CUDA_SOURCES += vectorAddition.cu CUDA_SDK = "C:/Cuda/CudaSamples" #

How can I make the compilation log create a new window in Emacs?

做~自己de王妃 提交于 2019-12-22 08:30:16
问题 If I only have one window showing in emacs and use M-x compile, the window splits in two and I can watch the compile buffer easily. However, if I have more windows showing, the compilation log takes over one of the others, which I find irritating. How can I make emacs always split a new window to show the compilation log? Edit: A bit more information from my reading that I've been doing. It looks like compile.el calls display-buffer, which only splits a window if it is current full width. Is