Is there any way to define a contsant variable for an entire namespace, rather than just within a class? For example:
namespace MyNamespace
{
public const string MY_CONST = "Test";
static class Program
{
}
}
Gives a compile error as follows:
Expected class, delegate, enum, interface, or struct
i floow this step by step: http://beautifulisbetterthanugly.com/posts/2009/aug/19/compile-ssl-115-python-25-or-lower/
but not successful ,and this is my error:
how do do this ,
thanks
Hi, I need to know a way to show a message or something like that when I compile my program and the user or password are wrong, because when I do this nothing happens.
I'm making a system that save logs.
log4net just using C#. if you can help me I'd appreciate.
thanks!
Let's assume that I have files a.cpp b.cpp and file c.h. Both of the cpp files include the c.h file. The header file contains a bunch of const int definitions and when I compile them I get no errors and yet I can access those const as if they were global variables. So the question, why don't I get any compilation errors if I have multiple const definitions as well as these const int's having global-like scope?
Hi All
I've just created a little app that programmatically compiles code using the C# Compiler, and it works brilliantly. But, one thing that I need it to do is compile Windows.Forms code. Like, I can create a console app with it, but I can't create a GUI-based form. Here's the link that got me started:
http://support.microsoft.com/kb/304655
Can somebody please help?
Thank you :)
Apple doesn't want anyone to create iPhone apps outside of the Xcode/Objective-C environment. How can they actually enforce this?
If the non Xcode IDE, for example Unity, compiles to an iPhone executable, how will Apple know which dev environment you used to create the app? Can they have Xcode compile some sort of signature into the executable that no one knows about?
I don't normally use VB, and even less vba for excel, but I'm writing a function inside a macro and seem to not understand even the basics of creating a function
For example
Public Function test() As Integer
return 1
End Function
This gives a compile error.
This is profoundly stupid, but how do I make a function return an integer in vba?
Hi All,
I need to compile C++ program from My C# application. In there I need to open the cl.exe when i press button. Can any one give me some sample code.
Thanks
What steps are needed to compile Version Information inside a windows DLL from the command line. I have been looking at VersionInfo files, but could not figure out how to link them to the DLL.
Thank you
Hi
Is there any way to cast to a dynamic generic interface..
Site s = new Site();
IRepository<Site> obj = (IRepository<s.GetType()>)ServiceLocator.Current.GetInstance(t)
obviously the above won't compile with this cast. Is there anyway to do a dynamic cast of a generic interface. I have tried adding a non generic interface but the system is looses objects in the Loc container.
Thanks
Phil
We have recently downloaded, installed and compiled gcc-3.0.4 code. gcc compiler has built successfully and we where able to compile some same test cpp file. I would like to know how we can modify gcc source code so that we add additional run time debugging statements like the binary in execution compiled by my gcc should print below statement in a log file:
filename.cpp::FunctionName#linenumber-statement
or any additional information that I can insert via this tailored compiler code Any references would be highly appreciable.
Long story short: I want to add the --core-library flag at compile time to include a library that depends on some javax libraries that aren't included in the android platform. I have attempted the walkthrough here: http://commons.apache.org/scxml/usecases/scxml-stopwatch-on-android.html but nothing ever changed on the emulator.
I don't think I can repackage the libraries I'm after because I cannot amend the callers to call the new packages without violating a license agreement.
Please, someone, point me in the right direction.
I'm trying to write something like this:
type 'a 'b xxx = {aaa: 'a: bbb: 'b: ccc: int};;
It does not compile. Is it just syntax error, or they don't allow multiple paramters on type ? Then why ?
Compiling VIM on Mountain Lion does not work for me. I compile VIM with the following sequence:
hg clone https://vim.googlecode.com/hg/ vim
cd vim
./configure --enable-rubyinterp --with-features=huge -prefix=/usr
make
I then try to start the compiled binary with src/vim, but it crashes like this:
$ src/vim
Vim: Caught deadly signal SEGV
Vim: Finished.
Segmentation fault: 11
What am I missing here?
Why doesn't the u-infinity appear under the limit when I compile? Instead it is appearing to the right of the limit. How do I correct this?
\frac{1}{\lim_{u \rightarrow \infty}}
hey guys i have a question regarding amzi prolog with eclipse,
Im running a .pro file which executes a breadth first search and if queue gets too long,
the following error message appears:
system_error 1021 Control stack full.
Compile code or increase .cfg
parameter 'control'
If so, how may i run the compiled code under eclipse? I've tried running the project but the listener just ends without accepting any queries....?
I need to analyze a document and compile statistics as to how many times each a sequence of words is used (so the analysis is not on single words but of batch of recurring words). I read that compression algorithms do something similar to what I want - creating dictionaries of blocks of text with a piece of information reporting its frequency.
It should be something similar to http://www.codeproject.com/KB/recipes/Patterns.aspx
Do you have anything written in C#?
In Java, how can I construct a Type object for Map<String, String>?
System.out.println(Map<String, String>.class);
doesn't compile. One workaround I can think of is
private Map<String, String> dummy() { throw new Error(); }
Type mapStringString = Class.forName("ThisClass").getMethod("dummy", null).getGenericReturnType();
Is this the correct way?
Hi there,
I was wondering if there is a way to conditionally compile entire namespaces in C#. Or am I left with having to explicitly decorate each source file within the namespace with the preprocessor directives to exclude it? In sub-versions of my application the code in various namespace is simply not required and I would like it excluded.
Thanks in advance!
Hi,
I need to install matplotlib in a remote linux machine, and I am a normal user there.
I downlodad the source and run
python setup.py build
but I get errors, related with numpy, which is not installed, so I decieded to install it first. I download and compile with
python setup.py build
My question now is, how do I tell to teh matplotlib installation where the numpy files have been installed?
Thanks
I am trying to compile a package on ubuntu 8.1
when executing this command: ./configure I get the follwoing error:
checking for Boost headers version = 103700... no
configure: error: cannot find Boost headers version = 103700
knowing that I installed needed boost packages using these command:
$ apt-get install libboost-dev libboost-graph-dev libboost-iostreams-dev
Can anybody help please?
I have gcc installed in c:/programfiles (also set as a path variable), and i have all the necessary files for gtk from http://www.gtk.org/download-windows.html, glib,gtk,pango,atk and cairo. Although I have no clue as to how to compile a c program using gtk with the gcc compiler. How do I set everything up so that it works?. (I don't know where each zip file goes.?) basically I don't really know where start.
Hello
I am trying to modify one of the default files that comes with tomcat SessionExample.java, and trying to compile it but I get an error.
javac -classpath "E:\Program Files\Apache Software Foundation\Apache Tomcat 6.0.18\lib\servlet-api.jar" SessionExample.java
Gives me this error
SessionExample.java:26: package util does not exist
import util.HTMLFilter;
^
SessionExample.java:90: cannot find symbol
symbol : variable HTMLFilter
location: class SessionExample
out.println(HTMLFilter.filter(name) + " = "
^
SessionExample.java:91: cannot find symbol
symbol : variable HTMLFilter
location: class SessionExample
+ HTMLFilter.filter(value) + "");
^
3 errors
Thank you
I've googled for creation of namespaces and found some very useful examples, what these examples didn't have is how do I compile and implement my created namespace on my system so I can include it from my various applications.
So for example, if I create a namespace to load a config file from my application path and insert it to an array, Do i need to include the namespace on any project I use or is there a way to make it part of my environment?