Tool Needed

Reply

Join Date: Aug 2004
Posts: 6
Reputation: vivekgalatage is an unknown quantity at this point 
Solved Threads: 0
vivekgalatage vivekgalatage is offline Offline
Newbie Poster

Tool Needed

 
1
  #1
Sep 7th, 2004
Hi

i want to convert my C project to C++. so does anyone knows any tool that converts a C program to C++
Reply With Quote Quick reply to this message  
Join Date: May 2004
Posts: 256
Reputation: FireNet will become famous soon enough FireNet will become famous soon enough 
Solved Threads: 6
FireNet's Avatar
FireNet FireNet is offline Offline
Posting Whiz in Training

Re: Tool Needed

 
1
  #2
Sep 7th, 2004
The Brain - the one and only
See what you can, remember what you need

Fourzon | Earn via Coding
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 1,620
Reputation: kc0arf is a jewel in the rough kc0arf is a jewel in the rough kc0arf is a jewel in the rough 
Solved Threads: 50
Team Colleague
kc0arf kc0arf is offline Offline
Posting Virtuoso

Re: Tool Needed

 
0
  #3
Sep 7th, 2004
Hello,

You shouldn't need it, unless you have a bunch of libraries, or are using depreciated methods to implement your thingy. C++ is an extension (add-in) to C, and you can get printf and a bunch of other functions to work just fine within it.

Now, if you are looking for unified code, then I think it is going to be a manual process indeed. IN that case, you could convert your libraries one at a time, as they should still link fine. I am not aware of any big hiccups here.

Christian
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 436
Reputation: Chainsaw is an unknown quantity at this point 
Solved Threads: 10
Chainsaw's Avatar
Chainsaw Chainsaw is offline Offline
Unprevaricator

Re: Tool Needed

 
1
  #4
Sep 7th, 2004
Compilers are usually set up to compile files with ".c" extensions as C and ".cpp" as C++; so if you are going to add C++ only stuff, the first thing to do is rename your .c files as .cpp. (and update the project file accordingly)

Once you do that, you should be able to build and run, and then you can incrementally add/change things to use C++ syntax extensions.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC