Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

New to Visual studio 2003/2005/2008

Options
  • 09-09-2008 5:06am
    #1
    Closed Accounts Posts: 140 ✭✭


    Dear all,

    Compiling c programs

    gcc -Wall -o myfile myfile.c (GCC linux and via Cygwin on windows)
    cl myfile.c (Microsoft Visual C++ command-line compiler)
    bcc32 myfile.c (Borland C/C++ compiler, Microsoft Windows)

    How about make or gmake in Windows ? I mean to ask how to make in Visual Studio 2003/2005/2008?

    for eg: gcc -o myfile myfile.c yields myfile which can be run via commandline

    in the same way, i need to make .exe file using Visual Studio.

    confused: I have make file which links objs, libraries and other dependences and makes a linux binary/osx binary (wrt Mac OSX). I want to make a windows executable for the C application I have.

    Thanks for your pointers here.


Comments

  • Registered Users Posts: 2,931 ✭✭✭Ginger


    Visual Studio is mainly for the .NET languages but you can use the compiler via the command line if you need to

    http://msdn.microsoft.com/en-us/library/610ecb4h.aspx

    I have very little experience with C++.NET(Managed C++) or even compiling plain C/C++ in Visual Studio.. Actually you can by changing the project properties to Compile as C/C++


  • Closed Accounts Posts: 140 ✭✭redhat_newbie


    Even I can opt to go for for Visual Studio 6. Are there any IDE's for compiling C programs for Windows. Would Borland / Eclipse would solve this ?

    Can anyone give me a short tutorial or link to it ? Or else let me know how to run Make or is there any equivalent of Make for Windows ?


  • Registered Users Posts: 2,931 ✭✭✭Ginger


    Plenty .. VS will do it, Borland will do it, possibly even gcc under cgywin (dunno what it will do!)

    Try http://www.bloodshed.net/
    Or http://www.mingw.org/


  • Registered Users Posts: 2,426 ✭✭✭ressem


    There is nmake included in visual studio for C++.

    A sample make file is provided at
    http://msdn.microsoft.com/en-us/library/x6bt6xe7(VS.80).aspx


    If you are interested in c# and the like, msbuild from the .net sdk is the de-facto recommendation. Or nant if you have a complicated build.


  • Closed Accounts Posts: 140 ✭✭redhat_newbie


    Thanks for the link and info Ressen.
    Application is based on C.

    Cheers to everyone.


  • Advertisement
Advertisement