![]() The point is that the effort required to clean up your C-style code may be less than theĮffort required to mix C and C++, and as a bonus you get cleaned up C-style code. The down-side is that you’ll need to update yourĬ-style code in certain ways, basically because the C++ compiler is more careful/picky than your CĬompiler. Possibly -hopefully!- discover some bugs) in your C-style code. That pretty much eliminates the need to mix C and C++, plus it will cause you to be more careful (and In addition, you’ll need to read the rest of this section to find out how to make your C functions callable by C++īTW there is another way to handle this whole thing: compile all your code (even your C-style code) using a C++Ĭompiler. Your C and C++ compilers probably need to come from the same vendor and have compatible versions (e.g., so they. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |