Results 1 to 3 of 3

Thread: Deprecated header

  1. #1
    Join Date
    Apr 2009
    Beans
    310

    Deprecated header

    #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.

    I get this above error when I use a c++ compiler on some c code; the c code compiles perfectly with gcc. I am aware that it is telling me that I am using a deprecated header.

    According to the line number it is the header

    <complex.h>

    in the c code. What is the new header to replace complex.h?

    Newport_j

  2. #2
    Join Date
    Feb 2010
    Beans
    91

    Re: Deprecated header

    <complex>

  3. #3
    Join Date
    Jun 2007
    Location
    Malvern, UK
    Beans
    992
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Deprecated header

    and you might have to add:
    Code:
    using namespace std;
    at the top (if you havent already).

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •