whats wrong with visual studio?

This is a discussion on whats wrong with visual studio? within the Tech Board forums, part of the Community Boards category; hello all, im having a problem with my Visual studio 2008 , i recently tried to move my project to ...

  1. #1
    بابلی ریکا Masterx's Avatar
    Join Date
    Nov 2007
    Location
    Somewhere nearby,Who Cares?
    Posts
    492

    whats wrong with visual studio?

    hello all, im having a problem with my Visual studio 2008 , i recently tried to move my project to VC++ environment ( from codeblocks) , after making a console project and then adding files, when i try to compile the project i get the error :
    http://i39.tinypic.com/1z4xtle.jpg
    which as you can see ,says:"The system can not find the file specified"
    i also have the same problem with another project ( GUI this time), it gives me the same error message !

    i have this kind of error with all of my projects in C++ or VC++, i dont know why this is happening!
    and this is another screen shot showing the same error happening for another project this time a Visual C++ project!
    http://master.huricane.googlepages.com/error2.JPG

    any help?
    Last edited by Masterx; 06-19-2009 at 09:54 AM.
    Highlight Your Codes
    The Boost C++ Libraries (online Reference)

    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.."
    Bill Bryson


  2. #2
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,158
    If you bother to look in the output window (I can see it in the screenshot) you can see that the build failed.

    I'm not sure, but that might result in your .exe not being found
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  3. #3
    بابلی ریکا Masterx's Avatar
    Join Date
    Nov 2007
    Location
    Somewhere nearby,Who Cares?
    Posts
    492
    Quote Originally Posted by brewbuck View Post
    If you bother to look in the output window (I can see it in the screenshot) you can see that the build failed.

    I'm not sure, but that might result in your .exe not being found
    tanx, so how am i supposed to solve that ? and what on earth made the build to fail ?
    Highlight Your Codes
    The Boost C++ Libraries (online Reference)

    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.."
    Bill Bryson


  4. #4
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,158
    Quote Originally Posted by Masterx View Post
    tanx, so how am i supposed to solve that ? and what on earth made the build to fail ?
    Maybe the error messages will help?
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  5. #5
    بابلی ریکا Masterx's Avatar
    Join Date
    Nov 2007
    Location
    Somewhere nearby,Who Cares?
    Posts
    492
    Quote Originally Posted by brewbuck View Post
    Maybe the error messages will help?
    sorry i dont get it , if i could i wouldnt post in first place im not familiar with VS , ive always worked with CB and or DevCpp
    Last edited by Masterx; 06-19-2009 at 06:43 PM.
    Highlight Your Codes
    The Boost C++ Libraries (online Reference)

    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.."
    Bill Bryson


  6. #6
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,639
    How are we supposed to help you with no error messages and no code???

  7. #7
    بابلی ریکا Masterx's Avatar
    Join Date
    Nov 2007
    Location
    Somewhere nearby,Who Cares?
    Posts
    492
    Quote Originally Posted by rags_to_riches View Post
    How are we supposed to help you with no error messages and no code???
    did you check the first post? and see the screenshots! ?
    talking about source code! this doesnt make any difference .
    from a simple hello world program to a GUI hex editor , they are all the same, i get the same error!
    Highlight Your Codes
    The Boost C++ Libraries (online Reference)

    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.."
    Bill Bryson


  8. #8
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,639
    You're not "listening."

    Your build failed, but you haven't provided the errors which are causing your build to fail. They're not on the screenshots.

  9. #9
    بابلی ریکا Masterx's Avatar
    Join Date
    Nov 2007
    Location
    Somewhere nearby,Who Cares?
    Posts
    492
    Quote Originally Posted by rags_to_riches View Post
    You're not "listening."

    Your build failed, but you haven't provided the errors which are causing your build to fail. They're not on the screenshots.
    my bad , im sorry , i misunderstood you, yeah i checked that there is an error when linking :
    1>------ Build started: Project: CLA Emulator, Configuration: Debug Win32 ------
    1>Linking...
    1>mapgetlinefromfile.obj : error LNK2005: _main already defined in main.obj
    1>F:\Coding Stuffs\Programming Stuff\Programming Center\C++\Project CLA\CLA WIP\Microsoft Visual Studio Projects\CLA Emulator\Debug\CLA Emulator.exe : fatal error LNK1169: one or more multiply defined symbols found
    1>Build log was saved at "file://f:\Coding Stuffs\Programming Stuff\Programming Center\C++\Project CLA\CLA WIP\Microsoft Visual Studio Projects\CLA Emulator\CLA Emulator\Debug\BuildLog.htm"
    1>CLA Emulator - 2 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    i noticed that Microsoft's Visual C++ compiler tends to compile whatever .cpp it finds it the project no matter whether it was referenced and used in the project or not! unlike the codeblocks! that was my problem!
    Last edited by Masterx; 06-19-2009 at 10:22 PM.
    Highlight Your Codes
    The Boost C++ Libraries (online Reference)

    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.."
    Bill Bryson


  10. #10
    بابلی ریکا Masterx's Avatar
    Join Date
    Nov 2007
    Location
    Somewhere nearby,Who Cares?
    Posts
    492
    i corrected that . now it compiles fine
    Highlight Your Codes
    The Boost C++ Libraries (online Reference)

    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.."
    Bill Bryson


  11. #11
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,167
    You can exclude files from being compiled by right-clicking a file and select properties. There you can select an option to exclude it.
    Might be worth knowing.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.
    For information on how to enable C++11 on your compiler, look here.
    よく聞くがいい!私は天才だからね! ^_^

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Another syntax error
    By caldeira in forum C Programming
    Replies: 31
    Last Post: 09-05-2008, 01:01 AM
  2. multiple errors generated by socket headers
    By nocturna_gr in forum Windows Programming
    Replies: 5
    Last Post: 12-16-2007, 05:33 PM
  3. Problem Compiling Program
    By wco5002 in forum C++ Programming
    Replies: 13
    Last Post: 11-06-2007, 11:56 AM
  4. Visual Studio Express for free
    By Frobozz in forum C# Programming
    Replies: 2
    Last Post: 04-29-2006, 09:59 PM
  5. visual studio 6 and visual studio.net difference
    By gemini_shooter in forum Tech Board
    Replies: 5
    Last Post: 02-04-2006, 12:32 AM

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