ReadNext error..?

This is a discussion on ReadNext error..? within the C Programming forums, part of the General Programming Boards category; ok im getting 2 errors for this missing prototype for ReadNext and undefined reference to _ReadNext Code: CurrentRec++; ReadNext(CurrentRec); am ...

  1. #1
    Registered User Rare177's Avatar
    Join Date
    May 2004
    Posts
    214

    ReadNext error..?

    ok im getting 2 errors for this
    missing prototype for ReadNext
    and
    undefined reference to _ReadNext

    Code:
    CurrentRec++;
    ReadNext(CurrentRec);
    am i using it the wrong way or something?

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    2,934
    ReadNext() is not a function in the standard C library. If you have multiple source files (.c), maybe it's in one of those.

  3. #3
    Registered User
    Join Date
    Oct 2001
    Posts
    2,934
    Or perhaps you defined ReadNext() below the main() function. In which case, you need to add a prototype for it above main(). Something like:

    void ReadNext( int rec );

    Basically just take the first line where you defined it, and copy it somewhere above main(), and add a semicolon on the end.

  4. #4
    Registered User Rare177's Avatar
    Join Date
    May 2004
    Posts
    214
    yeh its not , its a win32 api functions.sorry bout that

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 09:18 PM
  2. An error is driving me nuts!
    By ulillillia in forum C Programming
    Replies: 5
    Last Post: 04-04-2009, 10:15 PM
  3. Making C DLL using MSVC++ 2005
    By chico1st in forum C Programming
    Replies: 26
    Last Post: 05-28-2008, 02:17 PM
  4. Connecting to a mysql server and querying problem
    By Diod in forum C++ Programming
    Replies: 8
    Last Post: 02-13-2006, 10:33 AM
  5. Couple C questions :)
    By Divx in forum C Programming
    Replies: 5
    Last Post: 01-28-2003, 01:10 AM

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