Migrating from C to C++
Posted by: Denise Flinchbaugh
Date: January 25, 2011 05:38PM

We are starting a migration of our code from C to C++. As a first step, we are bringing up an environment where our developers can learn to use C++ (if they don't already know it). We are initially leaving our code as C but compiling/linking it as C++ - that is renaming all the files to have C++ extensions, modifying all the header files to have the "#ifdef __cplusplus extern "C" ....." logic, applying "extern C" logic as needed in the programs, using a C++ compiler (i.e. gcc/g++), etc.

My questions are in regards to MySQL API.

1. Can we still use the C Connector library but compile/link programs under the C++ compiler?

2. If so, are there any changes that need to be made (either to make files or code) to use it in this manner?

Thanks for your help in advance,
Denise

Options: ReplyQuote


Subject
Views
Written By
Posted
Migrating from C to C++
1010
January 25, 2011 05:38PM
522
January 29, 2011 07:09PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.