Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

New to Visual studio 2003/2005/2008

  • 09-09-2008 05: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, Registered Users 2 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, Registered Users 2 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, Registered Users 2, Paid Member Posts: 2,427 ✭✭✭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