compilation

Library tries to include <string.h> but includes “string.h” from my project, how to prevent?

大城市里の小女人 提交于 2020-01-05 03:08:06
问题 I have a string.h in my project added it to my header search path with -I (because I'm using CMake and compiling from the project root directory rather than the directory where string.h is located). The project uses an external library that tries to #include <string.h> (the standard C header) in one of its header files that I include, and accidentally ends up including my string.h (because it was on the header search path that inclusion with <> uses). Here's the (edited) error message that

How do I compile a C/C++ program through windows command prompt?

核能气质少年 提交于 2020-01-05 02:55:09
问题 Im new to the C/C++ programming language an so far have used the Code::blocks program for writing and compiling programs. However I need to know how to compile a program via windows command prompt as I need to access the assembly code created. My compilers are mingw32-gcc.exe, mingw32-g++.exe 回答1: Please read Compile Programs with MinGW -- A Guide for New Users. To make gcc produce assembler code, use -S option: -S Stop after the stage of compilation proper; do not assemble. The output is in

Problems installing MySQL-python-1.2.3c1 on Mac Snow Leopard

和自甴很熟 提交于 2020-01-05 02:55:08
问题 I am having a problem installing the Python MySQL connector (MySQL-python-1.2.3c1) on my Mac OSX Snow Leopard. System State I have manually compiled an installed: mysql-5.1.41 This seems to work fine, as I can create and query a database from the commandline. I have compiled: MySQL-python-1.2.3c1 I first set the following in the site.cfg file: mysql_config = /usr/local/mysql/bin/mysql_config I then built and compiled MySQL-python-1.2.3c1 following their guide: sudo python setup.py build sudo

determine argument type from __VA_ARGS__ in compile time

吃可爱长大的小学妹 提交于 2020-01-04 08:15:38
问题 I wish to determine the types of the parameters passed to a function using VA_ARGS in order to route it to the right handler, but in compile time (and not inside a function with va_args()). by determine type i mean i need to know if the trace contains only integers or has strings in it as well, but i wish it will be in compile time. for example: #define TRACE_HANDLER(type_branch) (Invoke_ ## type_branch) #define TYPE_ARGS(args) ______//Determine if all arguments are uint32________ #define

Issue with compiling a program into an EXE, VB 6

蹲街弑〆低调 提交于 2020-01-04 07:37:09
问题 I have recently edited a fellow student's data collection software to my specifications. The program works fine when I run within Visual Basic 6, however ideally I would like to compile the program into an .exe file so I can run it from any PC. However, when I select the option to turn it into an exe, I get the following error while its compiling: Compile Error: Sub or Function not defined. I was curious why my program will run from within Visual Basic, but can't compile into an exe. Any

Building Java with ANT from Team Build Extensions 2010

无人久伴 提交于 2020-01-04 07:11:14
问题 I have a basic C# project, but I want to kick off an ANT build (which compiles some very basic java code) and also fires a junit test. How can I find out from Team Build 2010 (TFS 2010 basically), if the junit test fails? If it does, I will fail the TFS build. I have the build extensions and I am using TFS 2010. However, the documentation for this is not existant. Thanks 回答1: You can use the Exec Activity to call an exe to build and do the tests. However you may want to look at Final Builder

Do you prefer compiled or scripted languages? [closed]

限于喜欢 提交于 2020-01-04 06:23:12
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago . Since this is wide community using all kind of different technologies, it seems like appropriate place to ask this. Do you like to

Wondering whether I need to installll JDK 1.6 & 1.7 together?

不羁岁月 提交于 2020-01-04 05:34:08
问题 Can I use JDK 1.7 to compile the code written in JDK 1.6? Is Java strict downward compatible? Do I need to keep JDK 1.6 and JDK 1.7 together in the same machine? 回答1: Can I use JDK 1.7 to compile the code written in JDK 1.6? Yes. Is Java strict downward compatible? If the cross-compilation options are specified when compiling. Those are most notably: -source -target -bootclasspath - which requires an rt.jar of the JRE (not JDK) being targeted 回答2: Can I use JDK 1.7 to compile the code

getting error not all code paths return value by c# compiler

牧云@^-^@ 提交于 2020-01-04 05:09:15
问题 This is a basic string reverse program and I want to do some level of exception handling in it. But during compilation it gives me an error "NOt all code paths return value. I am not able to find out why public static string Reverse(string s) { try { if (string.IsNullOrEmpty(s)) { throw new NullReferenceException(); } char[] c = s.ToCharArray(); int start = 0; int end = c.Length - 1; char temp; while (start < end) { temp = c[start]; c[start] = c[end]; c[end] = temp; start++; end--; } return

getting error not all code paths return value by c# compiler

廉价感情. 提交于 2020-01-04 05:08:28
问题 This is a basic string reverse program and I want to do some level of exception handling in it. But during compilation it gives me an error "NOt all code paths return value. I am not able to find out why public static string Reverse(string s) { try { if (string.IsNullOrEmpty(s)) { throw new NullReferenceException(); } char[] c = s.ToCharArray(); int start = 0; int end = c.Length - 1; char temp; while (start < end) { temp = c[start]; c[start] = c[end]; c[end] = temp; start++; end--; } return