Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Masamune

Compiler Problems

This topic is 5587 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am trying to write some C in a C++ compiler. And for some reason it doesnt work... do i need to get a C compiler? The error says that it cannot execute for some reason.

Share this post


Link to post
Share on other sites
Advertisement
quote:
Original post by Masamune
I am trying to write some C in a C++ compiler. And for some reason it doesnt work... do i need to get a C compiler? The error says that it cannot execute for some reason.


I''m sorry, but that was not vague enough. Seriously though, can you please state the exact error you are receiving?



Qui fut tout, et qui ne fut rien
Invader''s Realm

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Anything you write in C, a C++ compiler will work on. C is a subset of C++.

Share this post


Link to post
Share on other sites
I finally figured it out, a stupid mistake on my part... thanks for the concern and trying to help. I do have another question on compilers though. Where can I find a VB compiler?

Share this post


Link to post
Share on other sites
quote:
Original post by Anonymous Poster
Anything you write in C, a C++ compiler will work on. C is a subset of C++.


No, it''s not. For example:

char cv[4] = "asdf";

is legal C, but illegal C++ (because there are more initializers than array elements).

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!