Author: Pat King
Date: 07:18:09 11/30/01
Go up one level in this thread
On November 30, 2001 at 02:19:22, Russell Reagan wrote: >Does a program (not limited to only chess programs) compile differently if it's >compiled as a C program rather than a C++ program? For example, if a program is >written in straight C, but has a .cpp extention, MSVC++ will compile it as C++ >(to the best of my knowledge), and I'm wondering if there is any difference at >all between the compilation of a C program when compiled as C++ versus a C >program compiled as C. The big difference I can think of off-hand is the libraries the compiler tries to link to. Certainly trying to link a C++ program w/o specifying the right libraries causes a mess. Going the other way around is probably easier. But why don't you want to put the right extension on the file in the first place?
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.