Search Results

Search found 5015 results on 201 pages for 'compiler construction'.

Page 109/201 | < Previous Page | 105 106 107 108 109 110 111 112 113 114 115 116  | Next Page >

  • Why use Visual Studio 6 for C++

    - by robUK
    Hello, I am just wondering why programmers who program in C++ for windows always use Visual Studio 6 instead of Visual Studio 2008? Isn't the compiler in 2008 much better than the one in VS6? The reason I ask as I have used many sdk's that are always written in VS6? Many thanks, Steve

    Read the article

  • Any reason to clean up unused imports in Java, other than reducing clutter?

    - by Kip
    Is there any good reason to avoid unused import statements in Java? As I understand it, they are there for the compiler, so lots of unused imports won't have any impacts on the compiled code. Is it just to reduce clutter and to avoid naming conflicts down the line? (I ask because Eclipse gives a warning about unused imports, which is kind of annoying when I'm developing code because I don't want to remove the imports until I'm pretty sure I'm done designing the class.)

    Read the article

  • Using .align in inline assemby

    - by tech74
    Hi, I'm using ".align 16 \n\t" in some inline ARM assembly that is implementing some loops to align it on a 16 byte boundary however gcc asm compiler is complaining that alignement is too large i want to implement -falign-loops=16 in asm for a particular loop Thanks

    Read the article

  • Unicode escaping in C/C++

    - by Geo
    Hi guys! I'm having a dispute with a colleague of mine. She says that the following: char* a = "\x000aaxz"; will/can be seen by the compiler as "\x000aa". I do not agree with her, as I think you can have a maximum number of 4 hex characters after the \x. Can you have more than 4 hex chars? Who is right here?

    Read the article

  • how do i avoid this linking error ?

    - by Yogesh
    if i have defined a global variable(with initialization) in header file, and included this file in two file and try to compile and link, compiler gives linking error ----------------- >>headers.h #ifndef __HEADERS #define __HEADERS int x = 10; #endif >>1.c #include "headers.h" main () { } --------------------- >>2.c #include "headers.h" fun () {}

    Read the article

  • AIX- Does not install shared lib

    - by kadeshpa
    I am able to build the shared object successfully using the holy native compiler "xlc" on AIX.It does build the shared object library but does not install the shared object library. Configure command is: ./configure --prefix=/PATH/to/install --exec-prefix=/PATH/to/install --enable-shared --enable-static=no --enable-module=so --build=powerpc-ibm-aix5.3.0.0 --host=powerpc-ibm-aix5.3.0.0 LDFLAGS="-G -shared" Any help would be appreciated?

    Read the article

  • c++ template and its element type

    - by David
    This is my template matrix class: template<typename T> class Matrix { public: .... Matrix<T> operator / (const T &num); } However, in my Pixel class, I didn't define the Pixel/Pixel operator at all! Why in this case, the compiler still compiles?

    Read the article

  • freeing a memory twice

    - by benjamin button
    Hi, AFAIAK, freeing a NULL will result in nothing.i mean nothing is being done by the compiler/no functionality is performed. Still i do see some statements where people say that one of the scenario,where a memory corruption can occur is "freeing a memory twice"? Is this still true?

    Read the article

  • Code blocks not linking extension SDL Libraries

    - by Code Learner
    CodeBlocks is not linking extension SDL Libraries like SDL_mixer and SDL_image? I followed Lazy Foo's tutorial for SDL 1.2 but I am compiling my program in SDL 2.0. The compiler is showing an error with the linking of the libraries though without the mixer library it is working. My linker setting look like this. //This is working -lmingw32 -lSDL2main -lSDL2 //But with the additional mixer library it is not working -lmingw32 -lSDL2main -lSDL2 -lSDL_mixer Please help!

    Read the article

  • Which is the fastest idiomatic way to add all vectors (in the math sense) inside a Scala list?

    - by davips
    I have two solutions, but one doesn't compile and the other, I think, could be better: object Foo extends App { val vectors = List(List(1,2,3), List(2,2,3), List(1,2,2)) //just a stupid example //transposing println("vectors = " + vectors.transpose.map (_.sum)) //it prints vectors = List(4, 6, 8) //folding vectors.reduce { case (a, b) => (a zip b) map { case (x, y) => x + y } } //compiler says: missing parameter type for exp. function; arg. types must be fully known }

    Read the article

  • How can I check for unused import in many Python files?

    - by Thierry Lam
    I remember when I was developing in C++ or Java, the compiler usually complains for unused methods, functions or imports. In my Django project, I have a bunch of Python files which have gone through a number of iterations. Some of those files have a few lines of import statement at the top of the page and some of those imports are not used anymore. Is there a way to locate those unused imports besides eyeballing each one of them in each file? All my imports are explicit, I don't usually write from blah import *

    Read the article

  • Why can't I make my parameter like this?

    - by mystify
    - (void)setPropertyValue:(const *void)inValue forID:(UInt32)propertyID { } The compiler doesn't like the const *void, for some reason. When I have that, it says: error: expected ')' before 'void' When I make the parameter like (UInt32)foo there is no problem. Does const *void only work in functions? I need a parameter which can be a "pointer to anything" like UInt32, Float64, etc.

    Read the article

  • What are the latest tools that I can use to write a DSL (Domain-specific language) in 2009 Sep?

    - by servicesxiaodai
    I looked into Logix and EasyExtend for Python. Logix hasn't been around for a while and it failed to install on Python 2.6. EasyExtend's tutorial is hopeless, the code in the tutorial doesn't even work. I am looking for something so I can write my DSL. My DSL will be used as a research tool. And I don't want to spend time learning all that parsing and compiler theory.

    Read the article

  • Constructor for an immutable struct

    - by Danvil
    Consider the following simple immutable struct: struct Stash { public int X { get; private set; } public Stash(int _x) { X = _x; } } This is not working, because the compiler wants me to initialize the "backing field" before I can access the property. How can I solve this?

    Read the article

  • How to see list of html-tidy errors in VIM for Windows?

    - by stumbling
    I am using Vim 7.2 on WinXP. I've tired to run tidy like this: :compiler tidy :make :copen When I do :copen it shows me no errors to jump to. I've seen references that shellpipe might need to be set a specific way, but that refers to an earlier version of VIM. How should I be using HTML-tidy with VIM, and do I need to mess with shellpipe to get it to work with WinXP?

    Read the article

  • How can I close a JFrame by click on a button?

    - by Roman
    I would like to have a button in my window such that if I click it (button) the window is closed. I found out that I can close a window in the following way: referenceToTheFrame.hide(); //hides the frame from view refToTheFrame.dispose(); //disposes the frame from memory But if I do this way, compiler complains: Note: myProgram.java uses or overrides a deprecated API Note: Recompile with -Xlint:deprication for details. Do I do something unsafe?

    Read the article

  • How to define custom exception class in Java, the easiest way?

    - by yegor256
    I'm trying to define my own exception class the easiest way, and this is what I'm getting: public class MyException extends Exception {} public class Foo { public bar() throws MyException { throw new MyException("try again please"); } } This is what Java compiler says: cannot find symbol: constructor MyException(java.lang.String) I had a feeling that this constructor has to be inherited from java.lang.Exception, isn't it?

    Read the article

  • Why I cannot call setSomething()?

    - by badgirl
    Hello. I dont know how to acces my method of my class ProjectNode, that is returned from ExplorerManager mgr like this: mgr.getRootContext().setSomething() getRootContext() returns Node object, but I put class ProjectNode (extends AbstractNode, abstractNode extends Node)into rootContext. The compiler does not want to eat that line of code. But it must!

    Read the article

  • Is this a correct syntax (c code found on wikipedia)?

    - by m4design
    I just found this code on wikipedia. Link: http://en.wikipedia.org/wiki/Sizeof#Use The code: /* the following code illustrates the use of sizeof * with variables and expressions (no parentheses needed), * and with type names (parentheses needed) */ char c; printf("%zu,%zu", sizeof c, sizeof(int)); It states that: "The z prefix should be used to print it, because the actual size can differ on each architecture." I tried it on my compiler, but it gives the following result: 'zu,zu'

    Read the article

  • where does main() return its value?

    - by piemesons
    I'm newly using CODE::BLOCKS+mingw compiler If I don't type return 0 at the end of program,I can see that main() is returning some integer,I learnt that main() returning 0 infers program executes successfully.I don't find any flaw in my code, why is it returning some integer? secondly any function returns its value to its function call, to where does main() return its value?

    Read the article

< Previous Page | 105 106 107 108 109 110 111 112 113 114 115 116  | Next Page >