CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    Join Date
    Jan 2006
    Location
    Singapore
    Posts
    6,765

    Re: compile only one .cpp file???

    I hope jdqie finds this entertaining enough to motivate him/her to continue learning C++
    C + C++ Compiler: MinGW port of GCC
    Build + Version Control System: SCons + Bazaar

    Look up a C/C++ Reference and learn How To Ask Questions The Smart Way
    Kindly rate my posts if you found them useful

  2. #17
    Join Date
    Oct 2008
    Location
    Cologne, Germany
    Posts
    756

    Re: compile only one .cpp file???

    Quote Originally Posted by OReubens View Post
    i += !isEasier - isEasier;

    Probably the best one to make people scratch their heads twice figuring out what this does.
    i admit and i like it
    win7 x86, VS 2008 & 2010, C++/CLI, C#, .NET 3.5 & 4.0, VB.NET, VBA... WPF is comming

    remeber to give feedback you think my response deserves recognition? perhaps you may want to click the Rate this post link/button and add to my reputation

    private lessons are not an option so please don't ask for help in private, I won't replay

    if you use Opera and you'd like to have the tab-button functionality for the texteditor take a look at my Opera Tab-UserScirpt; and if you know how to stop firefox from jumping to the next control when you hit tab let me know

  3. #18
    Join Date
    Apr 2000
    Location
    Belgium (Europe)
    Posts
    4,626

    Re: compile only one .cpp file???

    Quote Originally Posted by laserlight View Post
    I hope jdqie finds this entertaining enough to motivate him/her to continue learning C++
    Oh let's humour him and provide him with the answer.

    DevStudio works with projects. It doesn't do the "single .cpp" thing by design, and it's something you have to live with.

    The underlying idea behind it is that a single .cpp doesn't really tell the compiler and linker what it is supposed to do...
    Do you want a windows console exe ? A GUI exe ? A dll ? A 32bit or a 64 bit one ? Ascii or Unicode ?

    You could have defaults for all, or you could just require a file that has all those configuration options in it... Lo and behold, that's exactly what a project file does.

  4. #19
    Join Date
    Dec 2009
    Posts
    2

    Re: compile only one .cpp file???

    okay thanks

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured