compilation

VSCode and MPI in WSL

心不动则不痛 提交于 2019-12-13 06:20:38
问题 I use MPI in a C program in Visual Studio Code on Windows. I compile and run it in WSL just fine, but VSCode warns me that it can't find mpi.h : I have installed libopenmpi-dev in WSL and added the header directories to VSCode's settings ( .vscode/c_cpp_properties.json ): { "configurations": [ { "name": "WSL", "includePath": [ "${workspaceFolder}/**", "/usr/lib/gcc/x86_64-linux-gnu/7/include", "/usr/local/include", "/usr/lib/gcc/x86_64-linux-gnu/7/include-fixed", "/usr/include/x86_64-linux

Command line MSBuild fails to compile code

六月ゝ 毕业季﹏ 提交于 2019-12-13 06:07:50
问题 Can anyone tell me why command-line msbuild fails to build this code? public SourceControlHandler(string sourceControlUser = null, string sourceControlPassword = null, string sourceControlDomain = null) { var client = new SvnClient(); if (!string.IsNullOrEmpty(SourceControlUser) && !string.IsNullOrEmpty(SourceControlPassword)) { client.Authentication.Clear(); client.Authenticatio​n.UserNameHandlers += delegate (object sender, Sv​nUserNameEventArgs e) { e.UserName = SourceControlUser; };

Project organization and cljsbuild config to require namespace

二次信任 提交于 2019-12-13 06:06:30
问题 How do I organize my project structure and configure cljsbuild to require my own namespace? For example in my project/src-cljs folder I have: └── project ├── file1 │ └── file1.cljs ├── file2 │ └── file2.cljs └─── required └── required.cljs I'd like file1.cljs (namespaced as file1.file1 ) and file2.cljs (namespaced as file2.file2 ) to require required.cljs (namespaced as required.required ). My :cljsbuild looks like: :cljsbuild {:builds [{:source-paths ["src-cljs/project/file1"] :compiler {

How to compile DEC UNIX v4.0 application source code in Linux?

て烟熏妆下的殇ゞ 提交于 2019-12-13 05:54:42
问题 I want to compile a source code but I have trouble in compile. cc -O2 -Olimit 2000 -g -migrate -assume -Zp1 noaligned_objects ... cc: error: 2000: No such file or directory cc: error: noaligned_objects: No such file or directory cc: error: unrecognized command line option ‘-migrate’ cc: error: unrecognized command line option ‘-assume’ cc: error: unrecognized command line option ‘-Zp1’ 回答1: Start with compiling it with no system-specific flags (i.e. by using gcc possibly with -I , -L , and -l

Keep timecode in ffmpeg?

房东的猫 提交于 2019-12-13 05:26:14
问题 Im running a script that makes proress 422 proxies for editing in ffmpeg, but the timecode on the files seems to get lost or nulled out. the parameters im using: ffmpeg -i file.mov -vcodec prores -profile:v 0 -an file.mov is there any way of preserving the timecode from the raw files? I've also come over ffmbc wich seems be more suited for this, but it's for linux only. Any way this can be compiled for osx? I'm on osx 10.8.4 Thanks in advanced! 回答1: from man page: http://ffmpeg.org/ffmpeg

Compile C++ in linux

戏子无情 提交于 2019-12-13 05:26:09
问题 I'm trying to compile a simple application in linux. My main.cpp looks something like #include <string> #include <iostream> #include "Database.h" using namespace std; int main() { Database * db = new Database(); commandLineInterface(*db); return 0; } Where Database.h is my header and has a corresponding Database.cpp. I get the following error when compiling: me@ubuntu:~/code$ g++ -std=c++0x main.cpp -o test /tmp/ccf1PF28.o: In function `commandLineInterface(Database&)': main.cpp:(.text+0x187)

Is covariant return type overriding according jls?

牧云@^-^@ 提交于 2019-12-13 05:04:54
问题 Just say, that point of my question is learn to understand jls. I believe that all in jls are true. Consider next snippet from jls: 8.4.8.1. Overriding (by Instance Methods) An instance method m1, declared in class C, overrides another instance method m2, declared in class A iff all of the following are true: C is a subclass of A. The signature of m1 is a subsignature (§8.4.2) of the signature of m2. Either: m2 is public, protected, or declared with default access in the same package as C, or

Find precompiled or compile Tcl/Tk Frameworks for macOS

送分小仙女□ 提交于 2019-12-13 04:39:45
问题 I am a beginner with Tcl/Tk, but I am already in need to deploy an .app with Tcl/Tk frameworks in it (because the .app needs to rely on its own Tcl/Tk version and not on macOS standard and old Tcl/Tk). Can somebody point me to where I can find precompiled Frameworks or to a step-by-step guide on how to compile them on macOS? Half a day of search has not been very fruitful in this regard. I guess my need is not at all very special, as I see many .apps shipping their own Tcl/Tk Frameworks. (PS:

How do I re-encode dynamically compiled bytes to text?

故事扮演 提交于 2019-12-13 04:39:39
问题 Consider the following(Sourced primarily from here): JavaCompiler compiler = ToolProvider.getSystemJavaCompiler( ); JavaFileManager manager = new MemoryFileManager( compiler.getStandardFileManager( null, null, null ) ); compiler.getTask( null, manager, null, null, null, sourceScripts ).call( ); //sourceScripts is of type List<ClassFile> And the following file manager : public class MemoryFileManager extends ForwardingJavaFileManager< JavaFileManager > { private HashMap< String, ClassFile >

MATLAB deploytool simulink Undefined function 'load_system'

随声附和 提交于 2019-12-13 04:35:40
问题 I am using a MATLAB m file code which loads a simulink file, runs it and evaluats it so many times inside a complicated parallel loop. It runs perfect at MATLAB environment. When compiling the code via deploytool command, installing it and running it from command line, I would have a difficult time. At the line where it is loading the model, mymodel= ... ; load_system(mymodel); I get the following error C:\Program Files\mymain\application>Warning: Name is nonexistent or not a directory: model