Thread: Have no idea how to compile c++, please help (newbie qn)

  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    1

    Have no idea how to compile c++, please help (newbie qn)

    I have a bunch of source code in c++ for several different things. All I need to do is compile the code so I can run the programs. Whenever I try to open the .sln file in Visual Studio to compile the code I get the following error:

    ===

    "The application for project 'project_directory\project_name.csproj' is not installed

    Make sure the application for the project type (.csproj) is installed"

    ===

    I have installed every windows dev tool you can download, Visual Basic 2005 express, Visual C# express, .NET Framework SDK v2.0 etc. Tried googling but didn't find a solution. I have no idea how to program, all I need to do is compile the source code.

    Does anyone know how to fix the above error message?? like I said I have no idea how to program so I just need a basic solution to compile. any help is really appreciated

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Csproj means it's a C# project, so you need to open it using the C# Edition. It's not C++.
    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.

  3. #3
    Hardware Engineer
    Join Date
    Sep 2001
    Posts
    1,398
    I have no idea how to program, all I need to do is compile the source code.
    This can be a difficult thing, even for an experienced programer!

    ...I could be wrong. These could be simple programs, and if they are all from the same source/programmer everything may go smoothly once you get your compiler configured to work with this set of source files. But if you can't get it working, the following will help you to understand why it's so difficult...

    To begin with, compilers are usually a pain to configure and learn to use. I've used several different compilers, and whenever I've started with a new compiler, it's usually taken me several hours to a day to get "Hello World" compiling correctly. ("Hello World" is the simpilest possible program.)

    So if these are C# programs, find a C# tutorial, copy the "Hello World" example from the tutorial and get it working first, before you try any "real programs". Here is the Cprograming.com C++ tutorial, in case you need the C++ version of "Hello World".

    And, it would be unusual for any "random" real-world program to compile on the first try with any "random" compiler. Programmers really hate it when they are handed some old-unknown program to modify/update. It can take hours or days just to get the existing program to compile before you can start your modifications.

    Unlike textbook examples (which are usually small and hopefully written to the language standard), real-world programs are usually complex with many source files and frequently contain special (non-standard) library functions. And, it may require a special compiler configuration/setup. If you are lucky, everything will be well documented, or someone with "inside information" can help you. But, frequently you just have to work-through the problems one-by-one. Sometimes the programmer will have to re-write parts of the code, if the required function-library is not available, or if there's something that just doesn't work on the particular compiler.

  4. #4
    Registered User jian2587's Avatar
    Join Date
    Feb 2008
    Location
    NY
    Posts
    11
    You have installed Visual C#, so I think it should work. How about this, don't open the sln file, instead, try opening the .csproj file. It should launch Visual C# IDE. Then goto menu build->build solution.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Code won't compile
    By monkles in forum C Programming
    Replies: 3
    Last Post: 05-28-2009, 01:45 PM
  2. Tutorial Idea
    By sean in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 03-30-2002, 11:26 PM
  3. header file compile error
    By Unregistered in forum C Programming
    Replies: 5
    Last Post: 02-23-2002, 06:28 AM
  4. Replies: 4
    Last Post: 11-14-2001, 10:28 AM
  5. how do i compile a program that deals w/classes?
    By Shy_girl_311 in forum C++ Programming
    Replies: 5
    Last Post: 11-11-2001, 02:32 AM