Vista??

This is a discussion on Vista?? within the C++ Programming forums, part of the General Programming Boards category; Is Vista the reason why I am having trouble compiling on Dev-c++, and on visaul c++ 2008? Should I switch ...

  1. #1
    human jerkey dead_captain's Avatar
    Join Date
    Jan 2008
    Location
    509
    Posts
    37

    Vista??

    Is Vista the reason why I am having trouble compiling on Dev-c++, and on visaul c++ 2008? Should I switch back to XP Pro?

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    I'm sorry, my crystal ball is undergoing repairs.

    You could help us (and thus yourself) by describing your trouble.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    human jerkey dead_captain's Avatar
    Join Date
    Jan 2008
    Location
    509
    Posts
    37
    When I try to compile using Dev-c++ I get a .h header file that pops up in a new tab, not even allowing the compile to take place, all that is in the code is #include<iostream>. This never happened before using XP.

    I downloaded Visaul C++ 2008 to see if the compiler was just out dated. When I try on Visaul I just keep getting compile error that aren't there.

    Code:
    int main(int argc, char* argv[])
    (
    	return 0;
    )
    error C2059: syntax error : ')' error C2143: syntax error : missing ')' before ';'
    error C2059: syntax error : 'return'

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,434
    That's because you're using ( ), where you should be using { }
    Code:
    {}
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  5. #5
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,590
    On a side note you must run MSVS 2005 as administrator in Vista or you will run into issues. The startup code for 2005 pops up a dialog explaining this.

    Keep in mind that startup and compiling in Vista is about twice as slow as in XP. I'm not quite sure why.

  6. #6
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    Keep in mind that everything in Vista is about twice as slow as in XP . . . .

    When I try to compile using Dev-c++ I get a .h header file that pops up in a new tab, not even allowing the compile to take place, all that is in the code is #include<iostream>. This never happened before using XP.
    Did you add Dev-C++'s gcc to the path? I think you have to do it manually in Vista. What happens when you close the iostream view? Where is your source code located?
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  7. #7
    human jerkey dead_captain's Avatar
    Join Date
    Jan 2008
    Location
    509
    Posts
    37
    Quote Originally Posted by Salem View Post
    That's because you're using ( ), where you should be using { }
    Code:
    {}
    thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. corruption, decay, Vista Gateway laptop
    By CodeMonkey in forum Tech Board
    Replies: 5
    Last Post: 06-13-2009, 01:50 PM
  2. Newbee Q: reg. MFC dlg button & Vista UAC shield icon
    By colbyringeisen in forum Windows Programming
    Replies: 3
    Last Post: 12-29-2008, 04:16 PM
  3. Sound worked in XP; not in Vista
    By lostpuppy in forum Windows Programming
    Replies: 6
    Last Post: 08-12-2008, 12:25 AM
  4. get "application data" directory in xp, vista
    By sgh in forum Windows Programming
    Replies: 8
    Last Post: 05-12-2008, 02:48 AM
  5. First Vista virus
    By mrafcho001 in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 08-11-2005, 10:39 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21