Compiler Problems

Started by
5 comments, last by Masamune 21 years, 1 month ago
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 am like you...I have no name.
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
Anything you write in C, a C++ compiler will work on. C is a subset of C++.
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?
I am like you...I have no name.
Google is your friend.

-Neophyte
quote:Original post by Masamune
Where can I find a VB compiler?


Your local computer store will probably have a copy of VB.


Qui fut tout, et qui ne fut rien
Invader''s Realm
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).

This topic is closed to new replies.

Advertisement