Frank,

Like Joe says, .C is generally considered C++, except by MSVC. In
MSVC, you can tell the compiler to treat a file like a C++ file (it is
somewhere in the compiler properties,  the flag is /TP or /Tp). cmake
sets this in generated msvc projects.

The special  -*- C++ -*- in the header files indicate to emacs that it
is a C++ file.

Best regards,
Wim.

2009/8/24 Frank Tiekink (IDE) <[email protected]>:
> Hi All,
>
>
>
> I have come across a few things setting up Wt projects that have caused
> unnecessary errors. Quite a few example files use different extensions than
> VS expects. E.g. files without extension or with .C as extension. The Wt
> projects in Visual Studio using these files produce errors, but setting the
> option compile as c++ resolves these issues. Is there a way to avoid these
> problems or should the files be renamed to .cpp and .hpp files in real live
> projects?
>
>
>
> I am not using cmake to construct the VS projects, should I?
>
>
>
> These files all have a text heading containing the following phrase:
>
>
>
> // This may look like C code, but it's really -*- C++ -*-
>
>
>
> Is there a reason why the .cpp extensions are not used?
>
>
>
> Frank Tiekink
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to