compilation

ASP.NET Web Application - compiling .cs files

人走茶凉 提交于 2019-12-11 06:47:52
问题 I guess I have been using the Web Site model ever since .NET 2.0 and never looked back. Now I'm using the Web Application mode on a few projects. How do you tell the compiler to compile .cs files in the project? I assume you can do this since the newer-MVC projects do it for the Controllers. I have a class, RestRouteHandler, that implements the IRouteHandler interface but because I think the .cs file is not being compiled I can't use it in my Global.asax. 回答1: Right-click the .cs file in the

How to compile a 64-bit dll written in C?

∥☆過路亽.° 提交于 2019-12-11 06:39:14
问题 I have a Java program which makes use of some native function calls to speed up video encoding. It requires a DLL, which I will write in C (I have just a test one right now). When I compile the DLL with cl /I "java-path/include" /"java-path/include/win32" -DL -ML Main.c -FeTest.dll it compiles, but I get a 32-bit DLL. After I did some research on the internet, I found out that I would need a 64-bit DLL instead. After more research, I have found this post which is the only one for C (even C++

Where do I starting to find the memory leak after porting from i386 to x86_64?

♀尐吖头ヾ 提交于 2019-12-11 06:29:25
问题 I successfully compiled and run Borealis under Fedora core 12 i386 Pentium dual core and g++ 4.1.1, Now I hope it can run under FC20 x86_64 i7 dual core. After modifying some codes( I think these modifications are nothing with its performation ) and installing several additional packages Borealis needs, I successfully compiled Borealis under FC20 x86_64 and it was able to run. But when running, I found that there was severe memory leakage , gnome-system-monitor displayed using memory changed

clang doesn't support atomic::is_lock_free for types larger than 32 bits?

☆樱花仙子☆ 提交于 2019-12-11 06:25:21
问题 I've got the following: struct A { int a[4]; }; struct B { int x, y; }; int main() { std::cout << std::boolalpha << "std::atomic<A> is lock free? " << std::atomic<A>{}.is_lock_free() << '\n' << "std::atomic<B> is lock free? " << std::atomic<B>{}.is_lock_free() << '\n'; } It compiles and works well, but if I raise the size of A: struct A { int a[5]; }; struct B { int x, y; }; int main() { std::cout << std::boolalpha << "std::atomic<A> is lock free? " << std::atomic<A>{}.is_lock_free() << '\n'

Cx_Freeze build is not including python libraries in zip file

拈花ヽ惹草 提交于 2019-12-11 06:24:14
问题 I'm in trouble with cx_Freeze 5.0 I'm working on: Windows 10 LTSB x64 Python 3.4.4 x86 PyQt5 PyWin32 x86 I never had any issue with this process until I reinstall my Windows10 installation... it was working great and now I can't figured it out why it's happening ... When I Freeze my python app (python setup.py build) script is copying the whole python libraries outside the python34.zip. The only thing I got inside python34.zip is *.pyc files (only this.. but a lot) I don't know why it doesnt

How to compile java code?

China☆狼群 提交于 2019-12-11 06:06:35
问题 I have a bunch of java files and I am running the following code in an attempt to compile them. "\Program Files\Java\jdk1.6.0_16\bin\javac" Main.java And I am being shown this error message Main.java:3: package colourtiler.patternsdoes not exist import colourtiler.patterns.draw; The code it isreferring to is located in the folder patters/PatternColour.java, how can I get it to include this file? thanks 回答1: You need to include its path in the javac/java's -cp or -classpath argument. E.g.

Prefix.pch not included at compilation time

≡放荡痞女 提交于 2019-12-11 05:59:32
问题 I have defined many constants in GlobalVar.h and other .h files. I import these files in the Prefix.pch file like this : // // Prefix header for all source files of the 'XXX' target in the 'XXX' project // #import "GlobalVar.h" [...] #ifndef __IPHONE_3_0 #warning "This project uses features only available in iPhone SDK 3.0 and later." #endif #ifdef __OBJC__ #import <UIKit/UIKit.h> #import <Foundation/Foundation.h> #import <CoreData/CoreData.h> #endif But when I compile the project all the

Just started C++: Undefined Symbol error on Compile

六月ゝ 毕业季﹏ 提交于 2019-12-11 05:54:22
问题 Here's the situation: I just started my first C++ class. I know nothing about C++ and despite this being the an intro to C++ class, the teacher has taught pretty much NO syntax for the language, just logic that we already know. Now he gave us a program description and said, "write it, lol." I understand the logic fine, but as I said before, I know nothing about C++. Thus I wrote it first in java (which I do know), and then once I got it working in java, I tried to code it over to C++. However

Qt's qmqtt comiplation issues on Windows 10

Deadly 提交于 2019-12-11 05:33:18
问题 I am trying to develop a simple POC using qmqtt but this module is not available in the Qt lib path. I have the latest Qt version installed, still it's not there. So, I am trying to compile it under Windows using mingw32 and I get undefined references from the qmqtt's source. Qt version:5.11.2 Below is the compilation log: E:\Xavier\qmqtt>mingw32-make cd src\ && ( if not exist Makefile E:\Xavier\Qt\5.11.2\mingw53_32\bin\qmake.exe -o Makefile E:\Xavier\qmqtt\src\src.pro ) && mingw32-make -f

Where do I find (and run) an executable compiled with a cabal sandbox?

一个人想着一个人 提交于 2019-12-11 05:19:53
问题 I'm compiling my myProgram.lhs with the use of a cabal sandbox (set up with cabal sandbox init ). I'm using a simplest approach I've come up with: cabal exec -- ghc myProgram or (having a rule in Makefile ) cabal exec -- make myProgram After that, in my source directory, appears myProgram.o , but not the executable myProgram . How do I run the resulting program? cabal exec -- ./myProgram doesn't work. Now, I've come up with a simplest approach to test it: cabal exec -- runghc myProgram.lhs