compilation

VB6 compilation from command line

爱⌒轻易说出口 提交于 2019-12-21 13:41:35
问题 Anyone knows how to compile a vb6 webclass dll from a command line? I am trying to build a tool for automating version building, but it fails with an 'Compile Error in File '[file name]', Line xxxx : Variable not defined' alert displayed. 回答1: Known bug: SYMPTOMS When you use command line arguments to compile a Microsoft Visual Basic project that contains WebClass designers, you may encounter errors. CAUSE When you use the command line argument /MAKE to compile the application, if the

Can Roslyn be used to generate dynamic method similar to DynamicMethod IL generation

断了今生、忘了曾经 提交于 2019-12-21 12:30:57
问题 I have been using DynamiMethod to generate the IL using method.GetILGenerator(); This works well but is of course very hard to use since you generally don't want to work with low level IL in a high level language like C#. Now since there is Roslyn I though I can use that instead. I have tried to figure out how to use Roslyn to do similar thing: generate a dynamic method and then create a delegate for it. The only way I was able to do that is to have full class like this SyntaxTree syntaxTree

creating a targeted OBJ folder for a project in Visual Studio

こ雲淡風輕ζ 提交于 2019-12-21 10:16:13
问题 Is it possible to create a targeted OBJ file path much like you can do for a BIN folder? You can set the output path in the Project's properties. Example paths would be: Bin\Debug\Windows Phone 7\ Bin\Debug\NETMF\ Bin\Debug....\ A use case here is if I have multiple projects that target different platforms. On compiling, the OBJ file is shared instead of separated out like the bin folders are. When compiling, you hit race conditions where the OBJ folder is being leveraged at the same time and

Compiling VLC on Linux: Error couldnt find Lua

蹲街弑〆低调 提交于 2019-12-21 09:09:03
问题 I am trying to compile VLC for Linux. When I run the configure script, I am getting the error message configure: error: Could not find lua. Lua is needed for some interfaces (rc, telnet, http) as well as many other custom scripts. Use --disable-lua to ignore this error. I have lua on my system. I ran lua -v and got Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio whereis lua gives /usr/bin/lua /usr/lib/lua /usr/share/lua /usr/share/man/man1/lua.1.gz Which looks to be a standard location.

Compiling VLC on Linux: Error couldnt find Lua

喜欢而已 提交于 2019-12-21 09:08:43
问题 I am trying to compile VLC for Linux. When I run the configure script, I am getting the error message configure: error: Could not find lua. Lua is needed for some interfaces (rc, telnet, http) as well as many other custom scripts. Use --disable-lua to ignore this error. I have lua on my system. I ran lua -v and got Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio whereis lua gives /usr/bin/lua /usr/lib/lua /usr/share/lua /usr/share/man/man1/lua.1.gz Which looks to be a standard location.

Identical Java sources compile to binary differing classes

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-21 07:55:38
问题 Can anyone explain how identical Java sources can end up compiling to binary differing class files? The question arises from the following situation: We have a fairly large application (800+ classes) which has been branched, restructured then reintegrated back into the trunk. Prior to reintegration, we merged the trunk into the branch, which is standard procedure. The end result was a set of directories with the branch sources and a set of directories with the trunk sources. Using Beyond

gcc -mpreferred-stack-boundary option

a 夏天 提交于 2019-12-21 07:19:29
问题 I want to know what's the use of -mpreferred-stack-boundary option during compilation in GNU compiler. I've checked the documentation but the explanation is lost on me. Could someone please explain it. 回答1: I want to know what's the use of -mpreferred-stack-boundary option during compilation in GNU debugger. The option has absolutely nothing to do with the debugger. It affects generated code in your binary. By default, GCC will arrange things so that every function, immediately upon entry,

Does the C++ code compile to assembly codes?

眉间皱痕 提交于 2019-12-21 07:01:30
问题 Does C++ code compile to assembly code? If we have C++ code, will we be able to get assembly code? 回答1: The vast majority of C++ compilers will convert the C++ source into object files (machine code with enough control information to be linked into an executable). They may actually generate assembly language as an interim step and even use a separate assembler for processing the assembler source, but you'll generally never see that. For example, you have to actually go out of your way to get

Speed up compile time with SSD

家住魔仙堡 提交于 2019-12-21 06:56:16
问题 I want to try to speed up my compile-time of our C++ projects. They have about 3M lines of code. Of course, I don't need to always compile every project, but sometimes there are lot of source files modified by others, and I need to recompile all of them (for example, when someone updates an ASN.1 source file). I've measured that compiling a mid-project (that does not involves all the source files) takes about three minutes. I know that's not too much, but sometimes it's really boring waiting

How to get your head around C++ linking/dependencies?

大兔子大兔子 提交于 2019-12-21 05:08:13
问题 I'm a Java developer and I never have to worry about including files or messing with BUILD files. Whenever I need to write C++ code, things get more complicated. I can think of creating *.h files as interfaces in Java, but figuring out how to write the build file and what order classes should be included in gives me a headache. Is there a simple way to think of this? How do you know when to include something or how to separate things out properly. For example, what is generally a good way to