Thread: How does this compile on your machine?

  1. #1
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708

    How does this compile on your machine?

    I just need the following compiler output for this, plus the compiler you're running, if you don't mind.

    Code:
     int main() {
     _10;
     }
    Thanks.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

  2. #2
    Banal internet user
    Join Date
    Aug 2002
    Posts
    1,380
    VC++.NET Standard
    __________________________________________________

    ------ Build started: Project: Test1, Configuration: Debug Win32 ------

    Compiling...
    main.cpp
    c:\Documents and Settings\Administrator\My Documents\Visual Studio Projects\Test1\main.cpp(2) : error C2065: '_10' : undeclared identifier

    Build log was saved at "file://c:\Documents and Settings\Administrator\My Documents\Visual Studio Projects\Test1\Debug\BuildLog.htm"
    Test1 - 1 error(s), 0 warning(s)


    ---------------------- Done ----------------------

    Build: 0 succeeded, 1 failed, 0 skipped

  3. #3
    Banal internet user
    Join Date
    Aug 2002
    Posts
    1,380
    same thing in DevC++ too....

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Undeclared Identifier under Codewarrior

  5. #5
    Banal internet user
    Join Date
    Aug 2002
    Posts
    1,380
    Should it have done something?

  6. #6
    Blank
    Join Date
    Aug 2001
    Posts
    1,034
    Variables and functions that start with _ are supposed
    to reserved for the compiler. It's possible it could do something.

  7. #7
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    >> Should it have done something?

    Nope. Well, it should compile with errors, of course...I'm trying to use the compiler errors to display info to the programmer, simplified, something like:

    int main(){
    RANGE(WHITE_BRUSH);
    }

    ...would give me the total of stock brushes available to a windows application by passing just a single known value. Sounds like macro hell, huh? Anyway, I just wanted to know if the number shows in the error gutter on any given compiler...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Turing Machine
    By Brad C in forum Tech Board
    Replies: 2
    Last Post: 08-05-2005, 08:22 PM
  2. Porting from 32 bit machine to 64 bit machine!
    By anoopks in forum C Programming
    Replies: 10
    Last Post: 02-25-2005, 08:02 PM
  3. Designing State Machine
    By axon in forum Tech Board
    Replies: 3
    Last Post: 11-06-2003, 12:13 PM
  4. Replies: 4
    Last Post: 11-14-2001, 10:28 AM
  5. how do i compile a program that deals w/classes?
    By Shy_girl_311 in forum C++ Programming
    Replies: 5
    Last Post: 11-11-2001, 02:32 AM