local function definitions are illegal

This is a discussion on local function definitions are illegal within the C++ Programming forums, part of the General Programming Boards category; Why would I get the error local function definitions are illegal? I set up a prototype then define the function ...

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    450

    local function definitions are illegal

    Why would I get the error local function definitions are illegal?

    I set up a prototype then define the function at the end of the program. It is a win32 prog.

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    You might be forgetting an end bracket somewhere. Why don't you post some code and we can have a look?
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  3. #3
    Registered User
    Join Date
    Jul 2003
    Posts
    450
    Yes it was a bracket, hard to spot but I found the little bug.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. In over my head
    By Shelnutt2 in forum C Programming
    Replies: 1
    Last Post: 07-08-2008, 07:54 PM
  2. doubt in c parser coding
    By akshara.sinha in forum C Programming
    Replies: 4
    Last Post: 12-23-2007, 01:49 PM
  3. <Gulp>
    By kryptkat in forum Windows Programming
    Replies: 7
    Last Post: 01-14-2006, 01:03 PM
  4. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 11:03 AM
  5. c++ linking problem for x11
    By kron in forum Linux Programming
    Replies: 1
    Last Post: 11-19-2004, 10:18 AM

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