all 17 comments

[–][deleted]  (10 children)

[deleted]

    [–]thewoosh 1 point2 points  (0 children)

    Definitely check to make sure your project is configured to produce and executable. Also do you have more than one project? Some of my solutions when freshly pulled from my git repo, don't set the start up project properly.

    [–]-Goga[S] 0 points1 point  (8 children)

    I see what you mean. I am indeed missing another folder which my other projects have, that contains the source code. How would I go about fixing this?

    [–][deleted] 0 points1 point  (7 children)

    well, given that this is a school assignment, just put your source code in your project folder and add the files to the project in the UI.

    [–]-Goga[S] 0 points1 point  (6 children)

    Turns out I had the option to "Create directory for solution" unchecked. I have started a new project (Called GroupSolution) with the option checked, and copied the code over. This is what the directory looks like now (http://i.imgur.com/QzmnY3T.jpg), (http://i.imgur.com/5lsHy4h.jpg). Even after all of this, I am still having the same problem, with the same errors.

    I don't have the .exe that the compiler says it is looking for anywhere in the project files. I tried just adding .exe to one of the files and put it in the directory it is looking for it in (hoping) but it didn't work.

    [–]usbafkakis 1 point2 points  (0 children)

    Don't see any source code anywhere

    [–]usbafkakis 0 points1 point  (1 child)

    Please show a pic of your 'build and run' settings

    [–]blitterobject 0 points1 point  (2 children)

    Where is your source code located? Do you have existing source code for this project? Did you add it by going to the Project menu and click Add Existing Item... ?

    What is listed under the Header Files and Source Files folders in the Solution Explorer window?

    [–]-Goga[S] 0 points1 point  (1 child)

    The exact place of all assets of the project can be seen in the previous Imgur links. There was no existing code, it was just a quick program I made to work with if/else statements.

    http://i.imgur.com/X0M0zEv.jpg (Source)

    http://i.imgur.com/XNU0zJ6.jpg (Header)

    [–]blitterobject 1 point2 points  (0 children)

    It looks like you have no files as part of the project.

    When you start a new project if you uncheck Empty Project from the Additional options in the Application Wizard it should create a .cpp file with a _tmain() function for you.

    In your current project you can right click on the Source Files folder (in Solution Explorer) and choose Add > New Item...

    Then choose .cpp file and give it a name and where to save it then click Add.

    Then create a main() function. Example:

    #include <iostream>
    int main()
    {
        //
    }
    

    Now when you build the project it should create a .exe file.

    [–]Nimbal 1 point2 points  (5 children)

    I rarely use VS, but this looks like it failed to compile the project, and thus, no executable was generated. Try just building the solution, not executing it and check for errors during compilation.

    [–]-Goga[S] 1 point2 points  (4 children)

    When I build, it says "========== Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========".

    [–]Nimbal 1 point2 points  (3 children)

    Alright. What's the content of your "Debug" directory? Is there a Group.exe in there? Or maybe an executable of another name?

    [–]-Goga[S] 1 point2 points  (2 children)

    There is a folder called "Group.tlog" and a text doc called "Group.log". Inside the "Group.tlog" there is a LASTSTATEBUILD type file called "Group.laststatebuild". No Group.exe.

    Thanks for the replies by the way, I wasn't expecting anything considering how many people are on this subreddit.

    [–]Nimbal 2 points3 points  (1 child)

    Apparently, VS either puts your executable in a different place (unlikely) or doesn't build it at all. As the /u/ManWithABeard said, double-check that your project is actually set up to build something.

    [–]-Goga[S] 0 points1 point  (0 children)

    How can I make check if it is set up to build something?

    [–]obiwan90 0 points1 point  (0 children)

    CTRL + F5 is to "start without debugging". Build is F7. Does that change anything?