Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C > Re: That's odd....
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 18 Topic 26054 of 26977
Post > Topic >>

Re: That's odd...

by Jensen Somers <jensen.somers@[EMAIL PROTECTED] > May 4, 2008 at 11:53 AM

Hello,

apaticul@[EMAIL PROTECTED]
 wrote:
> On May 4, 12:11 am, "Jim Langston" <tazmas...@[EMAIL PROTECTED]
> wrote:
>> apati...@[EMAIL PROTECTED]
 wrote:
>>> Now that I can compile ".cpp" files in Microsoft's Visual C++ 2008
>>> I still can't figure out how to compile a ".c" file, since
>>> every time I do it, the extension is changed to ".c.cpp"
>>> Any tips? (I mean here, those folks that have been used Visual C++
>>> before, because I need
>>> some advice on concrete terms, such as: "go to View-Other Windows- etc
>>> etc" than click here, etc )
>>> Thanks in advance.
>> In the save as dialog, drop down the "Save as type..." and select "C
source
>> file (.C)"
>>
>> --
>> Jim Langston
>> tazmas...@[EMAIL PROTECTED]
> 
> Jim Langston, I'll get bet to you in a bit, as soon as I will check
> another option,
> so far, the problem is, the only way I succeeded in compiling a file
> (which was a .cpp file)
> was when I've used the feature "Precompiled Header File", and this one
> seems to be a ".cpp" Header File.
> I will try to see if I can skip this step, so I might be able to save
> my hello.c file
> in a proper format (.c)
> I can't remember all the steps I've used when I failed before to "save
> as .c"
> (which became .c.cpp anyhow) so I could follow-up with you, Jim,
> but I will retry it.

Make sure that, when you create a project, you make it an empty project
without 
precompiled header files. They are of no need when just programming C.

When that's done you should be able to create a new source file and just
make 
sure you save it as a .c file. (Typing the extension alone works for me).
Another 
thing you might want to do is to change one of the project settings (under
C/C++ 
- Advanced) to "Compile as C code". I have found that it might cause
issues when 
compiling it as C++ code.

Also note that VS2008 does not sup****t all the C99 features like a simple
boolean 
type and it will throw a lot of warnings where it has it's own
implementations of 
certain functions (like strcpy -> strcpy_s).
When you want to redistribute your application you will also have to make
sure 
people have the C runtime libraries (vcredist) of which you can find
downloads on 
the MSDN website.

- Jensen
 




 18 Posts in Topic:
That's odd...
apaticul@[EMAIL PROTECTED  2008-05-03 22:43:50 
Re: That's odd...
dj3vande@[EMAIL PROTECTED  2008-05-04 05:47:05 
Re: [OT] That's odd...
"Jim Langston"   2008-05-03 23:11:23 
Re: That's odd...
apaticul@[EMAIL PROTECTED  2008-05-03 23:13:39 
Re: That's odd...
Richard Heathfield <rj  2008-05-04 07:45:54 
Re: That's odd...
"Default User"   2008-05-04 19:14:57 
Re: That's odd...
apaticul@[EMAIL PROTECTED  2008-05-03 23:22:00 
Re: That's odd...
Jensen Somers <jensen.  2008-05-04 11:53:48 
Its all good now Re: That's odd...
apaticul@[EMAIL PROTECTED  2008-05-04 01:10:43 
Re: That's odd...
apaticul@[EMAIL PROTECTED  2008-05-04 01:36:33 
Re: Its all good now Re: That's odd...
apaticul@[EMAIL PROTECTED  2008-05-04 01:50:41 
Re: Its all good now Re: That's odd...
newbie.unix@[EMAIL PROTEC  2008-05-04 06:56:39 
Re: Its all good now Re: That's odd...
apaticul@[EMAIL PROTECTED  2008-05-04 20:22:08 
Re: Its all good now Re: That's odd...
CBFalconer <cbfalconer  2008-05-05 02:29:31 
Re: Its all good now Re: That's odd...
apaticul@[EMAIL PROTECTED  2008-05-05 04:25:11 
Re: Its all good now Re: That's odd...
Keith Thompson <kst-u@  2008-05-05 09:31:13 
Re: Its all good now Re: That's odd...
"Herbert Rosenau&quo  2008-05-06 19:01:56 
Re: Its all good now Re: That's odd...
CBFalconer <cbfalconer  2008-05-05 18:43:03 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 3:38:14 CDT 2008.