Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / April 2007

Tip: Looking for answers? Try searching our database.

C coding using VStudio compiler?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rcederberg - 01 Apr 2007 06:06 GMT
Is it possible to use the VStudio C++ compiler for C? I am doing some C
programming and wonder if there is a way for me to use the compiler in
VStudio to compile my C code, preferably from the command line?

---
Richard
workaholic - 01 Apr 2007 09:39 GMT
Of course you can,just choose the console application at the beginning,
or just open a *.c file with VS IDE, then compile it.

> Is it possible to use the VStudio C++ compiler for C? I am doing some C
> programming and wonder if there is a way for me to use the compiler in
> VStudio to compile my C code, preferably from the command line?
>
> ---
> Richard
Richard - 01 Apr 2007 22:09 GMT
[Please do not mail me a copy of your followup]

=?Utf-8?B?cmNlZGVyYmVyZw==?= <rcederberg@discussions.microsoft.com> spake the secret code
<F47373C0-1228-4B19-AD0A-0C020629DE06@microsoft.com> thusly:

>Is it possible to use the VStudio C++ compiler for C? [...]

Use the C++ project type and choose an empty project.  Then do "Add
existing item..." for that project to add your .c and .h files.

I'm doing this right now with FractInt and it works great.  You may
get a lot of warnings about insecure C string functions.  You can turn
those off with a #pragma.
Signature

"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
     <http://www.xmission.com/~legalize/book/download/index.html>

       Legalize Adulthood! <http://blogs.xmission.com/legalize/>


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.