Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Visual-Studio IDE GCC
Hi all,
 
I am trying to switch from Eclipse to Visual Studio to compile some of my projects more comfortably. This is not a new problem I guess.
 
My need is as follows:
- be able to manage all source files in a project using the Solution Explorer;
- be able to specify compilation switches, either globally but preferably per file;
- be able to launch a compilation as a normal Build, using the external compiler;
- dependencies should be handled, as well as error message output;
- jumping to the location of compilation errors in the source code would be a great plus;
- at present time, linking and building the executable is not mandated.
 
I know that VS supports NMAKE builds, but that does not tell me how to create and maintain makefiles for my purpose.
 
Suggestions are welcome.
Posted 31-Oct-12 1:24am
Comments
Richard MacCutchan at 31-Oct-12 9:56am
   
Visual Studio use 'projects' rather than make files, but it does have the ability to convert them into NMAKE files. Why not just use the built in compiler?
YvesDaoust at 31-Oct-12 11:16am
   
Because I need my code to be compliant with another compiler.
 
How do you turn a VS project into a makefile ??
Richard MacCutchan at 31-Oct-12 11:30am
   
You can do that and still compile it with Microsoft's C++ compiler; I have done so in the past. It may need a few extra #defines but it is not a big deal.
 
Once you have your project set up then I think there is a menu option somewhere to export to a make file; I only have VC++ Express which does not have this.
YvesDaoust at 31-Oct-12 11:49am
   
I must compile with all my compilers (6 or 7 of them) to check portability. This is my daily preoccupation. I'd like to simplify my configuration by avoiding Eclipse.
It indeed seems that VC6 was able to export makefiles. But I don't see this feature in later versions :( And I wonder if that would fit with my requirement #1.
Richard MacCutchan at 31-Oct-12 12:12pm
   
As far as I can discover Visual Studio does not make this easy. Maybe staying with eclipse is a better option. In my experience of building the same project on multiple platforms, using Make was always the easiest method for all the Unix & Linux flavours, and having a VS Project for the Windows version. But I still had to use other IDEs along with Visual Studio.
YvesDaoust at 31-Oct-12 12:55pm
   
I want Visual Studio. My productivity with Eclipse is much lower, this is why I want to bypass it. It is slow and error prone. Make is not in order.
Richard MacCutchan at 31-Oct-12 13:45pm
   
Your choice.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 195
1 ProgramFOX 130
2 Maciej Los 105
3 Sergey Alexandrovich Kryukov 105
4 Afzaal Ahmad Zeeshan 82
0 OriginalGriff 6,564
1 Sergey Alexandrovich Kryukov 6,048
2 DamithSL 5,228
3 Manas Bhardwaj 4,717
4 Maciej Los 4,150


Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 31 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100