VisualC++ Enterprise, here's the code, where's the prob?

This is a discussion on VisualC++ Enterprise, here's the code, where's the prob? within the C++ Programming forums, part of the General Programming Boards category; HI folks, first time on the board. Before I begin, let me say that I'm not a C or C++ ...

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    3

    VisualC++ Enterprise, here's the code, where's the prob?

    HI folks, first time on the board. Before I begin, let me say that I'm not a C or C++ programmer. I'm trying to compile a .cpp file with Visual C++ enterprise edition. The code was automatically generated by another application. The help files of the application indicate that an ANSI compatible compiler is required. I've attatched the code to the post, could someone tell me why it is that this will not compile on my machine? I would appreciate it.
    Attached Files Attached Files

  2. #2
    Blank
    Join Date
    Aug 2001
    Posts
    1,034
    You should have #include <math.h> at the top
    of the program. That should get rid of some of the errors but _finite I don't think is ansi.

  3. #3
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,139
    Plus this is only a function, not a whole program. It's missing a main function.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  4. #4
    Registered User
    Join Date
    Dec 2001
    Posts
    3

    Thanks Guys!

    As it turns out, there needed to be an include of <math.h> and <float.h> in order for it to compile correctly. I appreciate all the help!

  5. #5
    Registered User
    Join Date
    Dec 2001
    Posts
    3
    Oops, and also needed to remove the L0: through L:15....

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Proposal: Code colouring
    By Perspective in forum A Brief History of Cprogramming.com
    Replies: 28
    Last Post: 05-14-2007, 08:23 AM
  2. Values changing without reason?
    By subtled in forum C Programming
    Replies: 2
    Last Post: 04-19-2007, 11:20 AM
  3. Updated sound engine code
    By VirtualAce in forum Game Programming
    Replies: 8
    Last Post: 11-18-2004, 12:38 PM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 06:06 PM
  5. Replies: 4
    Last Post: 01-16-2002, 12:04 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21